Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
Z2SoundHandles.h
Go to the documentation of this file.
1#ifndef Z2SOUNDHANDLES_H
2#define Z2SOUNDHANDLES_H
3
6
7// This should inherit JASPoolAllocObject (without which some functions in Z2SoundHandles.cpp badly mismatch)
8// but this inheritance causes the memPool_ to be generated in the first file that includes this header.
9// Perhaps this class definition should belong to a different header.
10class Z2SoundHandlePool : public JAISoundHandle, public JSULink<Z2SoundHandlePool> { // , public JASPoolAllocObject<Z2SoundHandlePool> {
11public:
14};
15
16class Z2SoundHandles : protected JSUList<Z2SoundHandlePool> {
17public:
20
22 void deleteHandlesPool();
25
26 bool isActive() const;
27
30
32
35 if (phandle != NULL) {
36 (*phandle)->stop(param_1);
37 }
38 }
39
40 void setPos(const JGeometry::TVec3<f32>& pos);
41
42 int getNumHandles() const { return getNumLinks(); }
43 Z2SoundHandlePool* getHandle(int index) { return (Z2SoundHandlePool*)getNth(index); }
44
45private:
46 /* 0xC */ u8 mNumHandles;
47};
48
49#endif /* Z2SOUNDHANDLES_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JAISoundHandles.h:14
Definition JSUList.h:96
JSULink< Z2SoundHandlePool > * getNth(int index)
Definition JSUList.h:117
u32 getNumLinks() const
Definition JSUList.h:121
Definition Z2SoundHandles.h:10
~Z2SoundHandlePool()
Definition Z2SoundHandles.h:13
Z2SoundHandlePool()
Definition Z2SoundHandles.h:12
Definition Z2SoundHandles.h:16
void setPos(const JGeometry::TVec3< f32 > &pos)
Definition Z2SoundHandles.cpp:137
~Z2SoundHandles()
Definition Z2SoundHandles.cpp:13
Z2SoundHandlePool * getHandle(int index)
Definition Z2SoundHandles.h:43
Z2SoundHandlePool * getLowPrioSound(JAISoundID pSoundId)
Definition Z2SoundHandles.cpp:87
int getNumHandles() const
Definition Z2SoundHandles.h:42
Z2SoundHandlePool * getHandleSoundID(JAISoundID pSoundId)
Definition Z2SoundHandles.cpp:33
void deleteHandlesPool()
Definition Z2SoundHandles.cpp:23
Z2SoundHandlePool * getFreeHandle()
Definition Z2SoundHandles.cpp:64
Z2SoundHandlePool * getHandleUserData(u32 pUserData)
Definition Z2SoundHandles.cpp:47
bool isActive() const
Definition Z2SoundHandles.cpp:123
Z2SoundHandles()
Definition Z2SoundHandles.cpp:9
void stopAllSounds(u32 fadeout)
Definition Z2SoundHandles.cpp:110
u8 mNumHandles
Definition Z2SoundHandles.h:46
void stopSound(JAISoundID soundID, u32 param_1)
Definition Z2SoundHandles.h:33
void initHandlesPool(u8 pNumHandles)
Definition Z2SoundHandles.cpp:17
static u8 pos[12]
Definition d_a_obj_kago.cpp:839
Definition d_a_obj_sekizoa.cpp:447
Definition JGeometry.h:55
unsigned long u32
Definition types.h:10
unsigned char u8
Definition types.h:8