Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JASBasicInst.h
Go to the documentation of this file.
1#ifndef JASBASICINST_H
2#define JASBASICINST_H
3
6
7struct JKRHeap;
8
30
35struct JASInst {
36 virtual ~JASInst() {}
37 virtual bool getParam(int, int, JASInstParam*) const = 0;
38 virtual u32 getType() const = 0;
39};
40
45struct JASBasicInst : public JASInst {
46 struct TKeymap {
47 /* 80298250 */ ~TKeymap();
48 /* 802982D4 */ TKeymap() { mHighKey = -1; }
49 void setHighKey(int key) { mHighKey = key; }
50
51 /* 0x0 */ s32 mHighKey;
52 /* 0x4 */ u16 field_0x4;
53 /* 0x6 */ u16 field_0x6;
54 /* 0x8 */ f32 field_0x8;
55 /* 0xC */ f32 field_0xc;
56 };
57
58 /* 80298014 */ JASBasicInst();
59 /* 8029819C */ void setKeyRegionCount(u32, JKRHeap*);
60 /* 8029821C */ void setOsc(int, JASOscillator::Data const*);
61 /* 8029822C */ TKeymap* getKeyRegion(int);
62
63 /* 8029807C */ virtual ~JASBasicInst();
64 /* 802980F8 */ virtual bool getParam(int, int, JASInstParam*) const;
65 /* 802982E0 */ virtual u32 getType() const { return 'BSIC'; };
66
69
70 /* 0x04 */ f32 mVolume;
71 /* 0x08 */ f32 mPitch;
72 /* 0x0C */ JASOscillator::Data const* field_0xc[2];
73 /* 0x10 */ u32 mKeymapCount;
74 /* 0x14 */ TKeymap* mKeymap;
75};
76
77
78#endif /* JASBASICINST_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JKRHeap.h:16
Definition JASBasicInst.h:46
void setHighKey(int key)
Definition JASBasicInst.h:49
u16 field_0x6
Definition JASBasicInst.h:53
~TKeymap()
Definition JASBasicInst.cpp:75
u16 field_0x4
Definition JASBasicInst.h:52
f32 field_0x8
Definition JASBasicInst.h:54
TKeymap()
Definition JASBasicInst.h:48
f32 field_0xc
Definition JASBasicInst.h:55
s32 mHighKey
Definition JASBasicInst.h:51
Definition JASBasicInst.h:45
f32 mPitch
Definition JASBasicInst.h:71
u32 mKeymapCount
Definition JASBasicInst.h:73
virtual u32 getType() const
Definition JASBasicInst.h:65
void setKeyRegionCount(u32, JKRHeap *)
Definition JASBasicInst.cpp:53
void setVolume(f32 volume)
Definition JASBasicInst.h:67
virtual bool getParam(int, int, JASInstParam *) const
Definition JASBasicInst.cpp:25
void setOsc(int, JASOscillator::Data const *)
Definition JASBasicInst.cpp:61
TKeymap * getKeyRegion(int)
Definition JASBasicInst.cpp:66
TKeymap * mKeymap
Definition JASBasicInst.h:74
JASOscillator::Data const * field_0xc[2]
Definition JASBasicInst.h:72
virtual ~JASBasicInst()
Definition JASBasicInst.cpp:19
void setPitch(f32 pitch)
Definition JASBasicInst.h:68
JASBasicInst()
Definition JASBasicInst.cpp:10
f32 mVolume
Definition JASBasicInst.h:70
Definition JASBasicInst.h:13
u8 field_0x1c
Definition JASBasicInst.h:26
u16 field_0x18
Definition JASBasicInst.h:24
JASInstParam()
Definition JASBasicInst.h:14
u8 field_0x1e
Definition JASBasicInst.h:28
JASOscillator::Data ** field_0x14
Definition JASBasicInst.h:23
u8 field_0x1d
Definition JASBasicInst.h:27
u16 field_0x1a
Definition JASBasicInst.h:25
Definition JASBasicInst.h:35
virtual u32 getType() const =0
virtual bool getParam(int, int, JASInstParam *) const =0
virtual ~JASInst()
Definition JASBasicInst.h:36
Definition JASOscillator.h:37
Definition JASSoundParams.h:10
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8