Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JASWSParser.h
Go to the documentation of this file.
1#ifndef JASWSPARSER_H
2#define JASWSPARSER_H
3
5
6class JKRHeap;
7class JASWaveBank;
10
16public:
17 template<class T>
18 class TOffset {
19 public:
20 T* ptr(void const* param_0) {
22 }
23
24 private:
25 /* 0x0 */ u32 mOffset;
26 };
27
28 struct TCtrlWave {
29 /* 0x0 */ u32 _00;
30 };
31
32 struct TWave {
33 /* 0x00 */ u8 _00;
34 /* 0x01 */ u8 _01;
35 /* 0x02 */ u8 _02;
36 /* 0x04 */ f32 _04;
37 /* 0x08 */ u32 mOffset;
38 /* 0x0C */ u32 _0C;
39 /* 0x10 */ u32 _10;
40 /* 0x14 */ u32 _14;
41 /* 0x18 */ u32 _18;
42 /* 0x1C */ u32 _1C;
43 /* 0x20 */ s16 _20;
44 /* 0x22 */ s16 _22;
45 };
46
47 struct TWaveArchive {
48 /* 0x00 */ char mFileName[0x74]; // unknown length
50 };
51
53 /* 0x0 */ u8 _00[8];
55 };
56
57 struct TCtrl {
58 /* 0x0 */ u8 _00[4];
59 /* 0x4 */ u32 mWaveCount;
61 };
62
63 struct TCtrlScene {
64 /* 0x0 */ u8 _00[0xC];
66 };
67
68 struct TCtrlGroup {
69 /* 0x0 */ u8 _00[8];
70 /* 0x8 */ u32 mGroupCount;
72 };
73
81
82 /* 80298FB0 */ static u32 getGroupCount(void const*);
83 /* 80298FD8 */ static JASWaveBank* createWaveBank(void const*, JKRHeap*);
84 /* 80299034 */ static JASBasicWaveBank* createBasicWaveBank(void const*, JKRHeap*);
85 /* 80299264 */ static JASSimpleWaveBank* createSimpleWaveBank(void const*, JKRHeap*);
86
88};
89
90#endif /* JASWSPARSER_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JASWSParser.h:18
u32 mOffset
Definition JASWSParser.h:25
T * ptr(void const *param_0)
Definition JASWSParser.h:20
Definition JASWSParser.h:15
static u32 getGroupCount(void const *)
Definition JASWSParser.cpp:13
static JASBasicWaveBank * createBasicWaveBank(void const *, JKRHeap *)
Definition JASWSParser.cpp:34
static JASWaveBank * createWaveBank(void const *, JKRHeap *)
Definition JASWSParser.cpp:21
static JASSimpleWaveBank * createSimpleWaveBank(void const *, JKRHeap *)
Definition JASWSParser.cpp:80
static u32 sUsedHeapSize
Definition JASWSParser.h:87
Definition JASBasicWaveBank.h:22
Definition JKRHeap.h:16
static const double T[]
Definition k_tan.c:106
Definition JASBasicWaveBank.h:34
Definition JASSimpleWaveBank.h:8
Definition JASWSParser.h:68
u8 _00[8]
Definition JASWSParser.h:69
TOffset< TCtrlScene > mCtrlSceneOffsets[0]
Definition JASWSParser.h:71
u32 mGroupCount
Definition JASWSParser.h:70
Definition JASWSParser.h:63
u8 _00[0xC]
Definition JASWSParser.h:64
TOffset< TCtrl > mCtrlOffset
Definition JASWSParser.h:65
Definition JASWSParser.h:28
u32 _00
Definition JASWSParser.h:29
Definition JASWSParser.h:57
u32 mWaveCount
Definition JASWSParser.h:59
TOffset< TCtrlWave > mCtrlWaveOffsets[0]
Definition JASWSParser.h:60
u8 _00[4]
Definition JASWSParser.h:58
Definition JASWSParser.h:75
u8 _00[0xC]
Definition JASWSParser.h:76
TOffset< TWaveArchiveBank > mArchiveBankOffset
Definition JASWSParser.h:78
TOffset< TCtrlGroup > mCtrlGroupOffset
Definition JASWSParser.h:79
u32 mWaveTableSize
Definition JASWSParser.h:77
Definition JASWSParser.h:52
u8 _00[8]
Definition JASWSParser.h:53
TOffset< TWaveArchive > mArchiveOffsets[0]
Definition JASWSParser.h:54
Definition JASWSParser.h:47
char mFileName[0x74]
Definition JASWSParser.h:48
TOffset< TWave > mWaveOffsets[0]
Definition JASWSParser.h:49
Definition JASWSParser.h:32
u32 _1C
Definition JASWSParser.h:42
f32 _04
Definition JASWSParser.h:36
u8 _01
Definition JASWSParser.h:34
u8 _02
Definition JASWSParser.h:35
s16 _20
Definition JASWSParser.h:43
u32 _0C
Definition JASWSParser.h:38
s16 _22
Definition JASWSParser.h:44
u32 mOffset
Definition JASWSParser.h:37
u32 _10
Definition JASWSParser.h:39
u32 _18
Definition JASWSParser.h:41
u32 _14
Definition JASWSParser.h:40
u8 _00
Definition JASWSParser.h:33
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned char u8
Definition types.h:8