SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
SpkSound.hpp
1#pragma once
2
3#include <revolution.h>
4#include "JSystem/JSupport/JSUList.hpp"
5#include "JSystem/JAudio2/JASGlobal.hpp"
6
7class SpkSound;
8
10public:
11 void releaseSound();
12
13 SpkSound* mSound; // _0
14};
15
17public:
19
20 void setRelease(s32);
21 void setFadeOut(s32);
22 f32 calc(bool &);
23
24 f32 _0;
25 f32 _4;
26 f32 _8;
27 f32 _C;
28 f32 _10;
29 f32 _14;
30 f32 _18;
31 f32 _1C;
32};
33
34class SpkSound : public JSUPtrLink {
35public:
36 SpkSound();
37 ~SpkSound();
38
39 void update(f32);
40 void stop(s32);
41 void attachHandle(SpkSoundHandle *);
42 void releaseHandle();
43 bool start(s32, s32);
44 void unlock();
45 bool setWaveData(s32);
46
47 SpkSoundHandle* mSoundHandle; // _10
48 s32 _14;
49 u32 _18;
50 u32 _1C;
51 u32 _20;
52 u32 _24;
53 u32 _28;
54 u32 _2C;
55 s32 _30;
56 s32 _34;
57 s32 _38;
58 s32 _3C;
59 SpkSoundVolume mVolume; // _40
60};
61
62class SpkSoundHolder : JASGlobalInstance<SpkSoundHolder> {
63public:
65
66 bool update(s32);
67 bool updateEachSound(s32);
68
69 void startSound(s32, s32, SpkSoundHandle *);
70
71 void framework();
72
73 JSUList<SpkSound> mSoundList[4]; // _0
74 f32 _30[4];
75 f32 _40;
76 u32 _44;
77};