Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
Z2SoundMgr.h
Go to the documentation of this file.
1#ifndef Z2SOUNDMGR_H
2#define Z2SOUNDMGR_H
3
7
8u16 seqCallback(JASTrack* track, u16 command);
9
10class Z2SoundMgr : public JASGlobalInstance<Z2SoundMgr> {
11public:
12#if PLATFORM_GCN
13 static const int MAX_CATEGORIES = 9;
14#else
15 static const int MAX_CATEGORIES = 10;
16#endif
17
18 Z2SoundMgr();
19 void calc();
20 void setIIR(JAISound* sound, const s16* iir);
21 void setFilterOff(JAISound* sound);
22 void resetFilterAll();
23 void mixOut();
24 void framework();
25 void pauseAllGameSound(bool paused);
26 void stopSoundID(JAISoundID soundID);
27 void stopSync();
28 void stop();
29 void initParams();
30 void multiVolumeSoundID(JAISoundID soundID, f32 volume);
31 bool isPlayingSoundID(JAISoundID soundID);
32
33 virtual bool startSound(JAISoundID soundID, JAISoundHandle* handle, const JGeometry::TVec3<f32>* posPtr);
34
35 JAISeMgr* getSeMgr() { return &seMgr_; }
36 const JAISeMgr* getSeMgr() const { return &seMgr_; }
37 JAISeqMgr* getSeqMgr() { return &seqMgr_; }
38 const JAISeqMgr* getSeqMgr() const { return &seqMgr_; }
40
41private:
42 /* 0x004 */ JAISeMgr seMgr_;
43 /* 0x728 */ JAISeqMgr seqMgr_;
45 /* 0x80C */ JAISoundID soundID_;
46}; // Size: 0x810
47
48#if VERSION != VERSION_SHIELD_DEBUG
49STATIC_ASSERT(sizeof(Z2SoundMgr) == 0x810);
50#endif
51
55
56#endif /* Z2SOUNDMGR_H */
Z2SoundMgr * Z2GetSoundMgr()
Definition Z2SoundMgr.h:52
u16 seqCallback(JASTrack *track, u16 command)
Definition Z2SoundMgr.cpp:21
STATIC_ASSERT(sizeof(Z2SoundMgr)==0x810)
Definition JAISeMgr.h:93
Definition JAISeqMgr.h:15
Definition JAISound.h:15
Definition JAISound.h:43
Definition JAISound.h:264
Definition JAIStreamMgr.h:15
Definition JASGadget.h:12
static T * getInstance()
Definition JASGadget.h:31
Definition Z2SoundMgr.h:10
void calc()
Definition Z2SoundMgr.cpp:191
virtual bool startSound(JAISoundID soundID, JAISoundHandle *handle, const JGeometry::TVec3< f32 > *posPtr)
Definition Z2SoundMgr.cpp:119
void setFilterOff(JAISound *sound)
Definition Z2SoundMgr.cpp:226
JAISeMgr * getSeMgr()
Definition Z2SoundMgr.h:35
JAISeqMgr seqMgr_
Definition Z2SoundMgr.h:43
void mixOut()
Definition Z2SoundMgr.cpp:274
void stopSoundID(JAISoundID soundID)
Definition Z2SoundMgr.cpp:337
const JAISeMgr * getSeMgr() const
Definition Z2SoundMgr.h:36
JAIStreamMgr * getStreamMgr()
Definition Z2SoundMgr.h:39
void framework()
Definition Z2SoundMgr.cpp:307
JAISeMgr seMgr_
Definition Z2SoundMgr.h:42
const JAISeqMgr * getSeqMgr() const
Definition Z2SoundMgr.h:38
void pauseAllGameSound(bool paused)
Definition Z2SoundMgr.cpp:312
void setIIR(JAISound *sound, const s16 *iir)
Definition Z2SoundMgr.cpp:203
JAISoundID soundID_
Definition Z2SoundMgr.h:45
void resetFilterAll()
Definition Z2SoundMgr.cpp:247
JAIStreamMgr streamMgr_
Definition Z2SoundMgr.h:44
Z2SoundMgr()
Definition Z2SoundMgr.cpp:110
bool isPlayingSoundID(JAISoundID soundID)
Definition Z2SoundMgr.cpp:381
void stop()
Definition Z2SoundMgr.cpp:355
void multiVolumeSoundID(JAISoundID soundID, f32 volume)
Definition Z2SoundMgr.cpp:370
JAISeqMgr * getSeqMgr()
Definition Z2SoundMgr.h:37
void stopSync()
Definition Z2SoundMgr.cpp:343
static const int MAX_CATEGORIES
Definition Z2SoundMgr.h:13
void initParams()
Definition Z2SoundMgr.cpp:361
signed short int s16
Definition types.h:9
float f32
Definition types.h:25
unsigned short int u16
Definition types.h:10
Definition JASTrack.h:24
Definition JGeometry.h:75