mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 15:01:53 -04:00
221f40e609
* add "global.h" to files that use it * add MSL_C includes to files that use them * remove dolphin includes from headers that don't need them * remove JSupport includes from headers that don't need them * remove JKernel includes from headers that don't need them * remove JUtility includes from headers that don't need them * remove J3D includes from headers that don't need them * remove J2D includes from headers that don't need them * remove JAudio2 includes from headers that don't need them * remove Z2AudioLib includes from headers that don't need them * remove JMessage includes from headers that don't need them * remove JParticle includes from headers that don't need them * remove SComponent includes from headers that don't need them * remove dol includes from headers that don't need them * sort includes
37 lines
902 B
C++
37 lines
902 B
C++
#ifndef Z2SOUNDHANDLES_H
|
|
#define Z2SOUNDHANDLES_H
|
|
|
|
#include "JSystem/JAudio2/JAISound.h"
|
|
#include "JSystem/JAudio2/JAISoundHandles.h"
|
|
#include "JSystem/JSupport/JSUList.h"
|
|
#include "dolphin/types.h"
|
|
|
|
class Z2SoundHandlePool : public JAISoundHandle, JSULink<Z2SoundHandlePool> {};
|
|
|
|
class Z2SoundHandles : protected JSUList<Z2SoundHandlePool> {
|
|
public:
|
|
Z2SoundHandles();
|
|
~Z2SoundHandles();
|
|
|
|
void initHandlesPool(u8 pNumHandles);
|
|
void deleteHandlesPool();
|
|
void getFreeHandle();
|
|
void getLowPrioSound(JAISoundID);
|
|
|
|
bool isActive() const;
|
|
|
|
JAISoundHandle* getHandleSoundID(JAISoundID pSoundId);
|
|
JAISoundHandle* getHandleUserData(u32 pUserData);
|
|
|
|
void stopAllSounds(u32 fadeout);
|
|
|
|
void setPos(const JGeometry::TVec3<f32>& pos);
|
|
|
|
u32 getNumHandles() const { return this->getNumLinks(); }
|
|
|
|
private:
|
|
/* 0xC */ u8 mNumHandles;
|
|
};
|
|
|
|
#endif /* Z2SOUNDHANDLES_H */
|