Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JASBasicWaveBank.h
Go to the documentation of this file.
1#ifndef JASBASICWAVEBANK_H
2#define JASBASICWAVEBANK_H
3
6
12public:
13 virtual ~JASWaveHandle() {};
14 virtual const JASWaveInfo* getWaveInfo() const = 0;
15 virtual int getWavePtr() const = 0;
16};
17
23public:
24 /* 80298B88 */ virtual ~JASWaveBank() {};
25 virtual JASWaveHandle* getWaveHandle(u32) const = 0;
26 virtual JASWaveArc* getWaveArc(u32) = 0;
27 virtual u32 getArcCount() const = 0;
28};
29
35 struct TWaveHandle : public JASWaveHandle {
36 /* 802985E4 */ ~TWaveHandle() {}
37 /* 80298B64 */ int getWavePtr() const;
38 /* 80298C18 */ TWaveHandle() { mHeap = NULL; }
39 /* 80298C64 */ const JASWaveInfo* getWaveInfo() const { return &field_0x4; }
40 bool compareHeap(JASHeap* heap) const { return mHeap == heap;}
41
43 /* 0x28 */ JASHeap* mHeap;
44 };
45
47 /* 80298C4C */ TGroupWaveInfo() {
48 field_0x0 = 0xffff;
49 field_0x4 = -1;
50 }
51
52 /* 0x00 */ u16 field_0x0;
53 /* 0x04 */ int field_0x4;
54 };
55
57 /* 802989C0 */ TWaveGroup();
58 /* 80298A0C */ ~TWaveGroup();
59 /* 80298A84 */ void setWaveCount(u32, JKRHeap*);
60 /* 80298B04 */ void onLoadDone();
61 /* 80298B2C */ void onEraseDone();
62 /* 80298B54 */ u32 getWaveID(int) const;
63
66 /* 0x7C */ u16 mWaveCount;
67
68 u32 getWaveCount() const { return mWaveCount; }
69 };
70
71 /* 802984F8 */ JASBasicWaveBank();
72 /* 80298558 */ ~JASBasicWaveBank();
73 /* 80298640 */ TWaveGroup* getWaveGroup(u32);
74 /* 80298664 */ void setGroupCount(u32, JKRHeap*);
75 /* 80298710 */ void setWaveTableSize(u32, JKRHeap*);
76 /* 80298790 */ void incWaveTable(JASBasicWaveBank::TWaveGroup const*);
77 /* 8029883C */ void decWaveTable(JASBasicWaveBank::TWaveGroup const*);
78 /* 802988DC */ JASWaveHandle* getWaveHandle(u32) const;
79 /* 80298910 */ void setWaveInfo(JASBasicWaveBank::TWaveGroup*, int, u16, JASWaveInfo const&);
80 /* 80298C6C */ JASWaveArc* getWaveArc(u32 param_0) { return getWaveGroup(param_0); }
81 /* 80298C8C */ u32 getArcCount() const { return mGroupCount; }
82
83 /* 0x04 */ OSMutex field_0x4;
86 /* 0x24 */ u16 mHandleCount;
87 /* 0x26 */ u16 mGroupCount;
88
89 static u32 mNoLoad;
90};
91
92#endif /* JASBASICWAVEBANK_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JASHeapCtrl.h:17
Definition JASBasicWaveBank.h:22
virtual JASWaveHandle * getWaveHandle(u32) const =0
virtual ~JASWaveBank()
Definition JASBasicWaveBank.h:24
virtual u32 getArcCount() const =0
virtual JASWaveArc * getWaveArc(u32)=0
Definition JASBasicWaveBank.h:11
virtual int getWavePtr() const =0
virtual ~JASWaveHandle()
Definition JASBasicWaveBank.h:13
virtual const JASWaveInfo * getWaveInfo() const =0
Definition JKRHeap.h:16
Definition JASBasicWaveBank.h:46
int field_0x4
Definition JASBasicWaveBank.h:53
u16 field_0x0
Definition JASBasicWaveBank.h:52
TGroupWaveInfo()
Definition JASBasicWaveBank.h:47
Definition JASBasicWaveBank.h:56
~TWaveGroup()
Definition JASBasicWaveBank.cpp:181
TGroupWaveInfo * mCtrlWaveArray
Definition JASBasicWaveBank.h:65
TWaveGroup()
Definition JASBasicWaveBank.cpp:174
u32 getWaveCount() const
Definition JASBasicWaveBank.h:68
u32 getWaveID(int) const
Definition JASBasicWaveBank.cpp:211
void onLoadDone()
Definition JASBasicWaveBank.cpp:196
u16 mWaveCount
Definition JASBasicWaveBank.h:66
JASBasicWaveBank * mBank
Definition JASBasicWaveBank.h:64
void setWaveCount(u32, JKRHeap *)
Definition JASBasicWaveBank.cpp:187
void onEraseDone()
Definition JASBasicWaveBank.cpp:203
Definition JASBasicWaveBank.h:35
TWaveHandle()
Definition JASBasicWaveBank.h:38
const JASWaveInfo * getWaveInfo() const
Definition JASBasicWaveBank.h:39
~TWaveHandle()
Definition JASBasicWaveBank.h:36
int getWavePtr() const
Definition JASBasicWaveBank.cpp:219
JASWaveInfo field_0x4
Definition JASBasicWaveBank.h:42
JASHeap * mHeap
Definition JASBasicWaveBank.h:43
bool compareHeap(JASHeap *heap) const
Definition JASBasicWaveBank.h:40
Definition JASBasicWaveBank.h:34
OSMutex field_0x4
Definition JASBasicWaveBank.h:83
TWaveGroup * getWaveGroup(u32)
Definition JASBasicWaveBank.cpp:87
u16 mGroupCount
Definition JASBasicWaveBank.h:87
u16 mHandleCount
Definition JASBasicWaveBank.h:86
void setGroupCount(u32, JKRHeap *)
Definition JASBasicWaveBank.cpp:96
JASWaveArc * getWaveArc(u32 param_0)
Definition JASBasicWaveBank.h:80
TWaveGroup * mWaveGroupArray
Definition JASBasicWaveBank.h:85
~JASBasicWaveBank()
Definition JASBasicWaveBank.cpp:80
u32 getArcCount() const
Definition JASBasicWaveBank.h:81
void setWaveInfo(JASBasicWaveBank::TWaveGroup *, int, u16, JASWaveInfo const &)
Definition JASBasicWaveBank.cpp:161
void decWaveTable(JASBasicWaveBank::TWaveGroup const *)
Definition JASBasicWaveBank.cpp:136
void setWaveTableSize(u32, JKRHeap *)
Definition JASBasicWaveBank.cpp:108
void incWaveTable(JASBasicWaveBank::TWaveGroup const *)
Definition JASBasicWaveBank.cpp:119
JASWaveHandle * getWaveHandle(u32) const
Definition JASBasicWaveBank.cpp:149
JASBasicWaveBank()
Definition JASBasicWaveBank.cpp:71
static u32 mNoLoad
Definition JASBasicWaveBank.h:89
TWaveHandle * mWaveTable
Definition JASBasicWaveBank.h:84
Definition JASWaveArcLoader.h:40
Definition JASWaveInfo.h:10
Definition OSMutex.h:10
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9