Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
Z2SoundStarter.h
Go to the documentation of this file.
1#ifndef Z2SOUNDSTARTER_H
2#define Z2SOUNDSTARTER_H
3
4#include "JSystem/JAudio2/JAISoundStarter.h"
5
6struct Z2SoundStarter : public JAISoundStarter, public JASGlobalInstance<Z2SoundStarter> {
7 Z2SoundStarter(bool setInstance);
8 void setPortData(JAISoundHandle* handlePtr, u32 portNum, u16 data, s8 childIndex);
9 u16 getPortData(JAISoundHandle* handlePtr, u32 portNum, s8 childIndex);
10
11 virtual ~Z2SoundStarter() {}
12 virtual bool startSound(JAISoundID soundID, JAISoundHandle* handlePtr, const JGeometry::TVec3<f32>* posPtr);
13 virtual bool startSound(JAISoundID soundID, JAISoundHandle* handlePtr,
14 const JGeometry::TVec3<f32>* posPtr, u32 mapinfo, f32 fxMix,
15 f32 pitch, f32 volume, f32 pan, f32 dolby, u32 moveSteps);
16};
17
19 return JASGlobalInstance<Z2SoundStarter>::getInstance();
20}
21
22#endif /* Z2SOUNDSTARTER_H */
Z2SoundStarter * Z2GetSoundStarter()
Definition Z2SoundStarter.h:18
Definition Z2SoundStarter.h:6
virtual bool startSound(JAISoundID soundID, JAISoundHandle *handlePtr, const JGeometry::TVec3< f32 > *posPtr)
Definition Z2SoundStarter.cpp:8
u16 getPortData(JAISoundHandle *handlePtr, u32 portNum, s8 childIndex)
Definition Z2SoundStarter.cpp:86
virtual ~Z2SoundStarter()
Definition Z2SoundStarter.h:11
Z2SoundStarter(bool setInstance)
Definition Z2SoundStarter.cpp:5
void setPortData(JAISoundHandle *handlePtr, u32 portNum, u16 data, s8 childIndex)
Definition Z2SoundStarter.cpp:71