SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
include
Game
Speaker
SpkSound.hpp
1
#pragma once
2
3
#include <revolution.h>
4
#include "JSystem/JSupport/JSUList.hpp"
5
#include "JSystem/JAudio2/JASGlobal.hpp"
6
7
class
SpkSound
;
8
9
class
SpkSoundHandle
{
10
public
:
11
void
releaseSound();
12
13
SpkSound
* mSound;
// _0
14
};
15
16
class
SpkSoundVolume
{
17
public
:
18
SpkSoundVolume
();
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
34
class
SpkSound
:
public
JSUPtrLink {
35
public
:
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
62
class
SpkSoundHolder
: JASGlobalInstance<SpkSoundHolder> {
63
public
:
64
SpkSoundHolder
();
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
};
SpkSoundHandle
Definition
SpkSound.hpp:9
SpkSoundHolder
Definition
SpkSound.hpp:62
SpkSound
Definition
SpkSound.hpp:34
SpkSoundVolume
Definition
SpkSound.hpp:16
Generated by
1.10.0