summaryrefslogtreecommitdiff
path: root/include/egg/audio/eggAudioSystem.h
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2024-10-16 03:44:09 +0200
committerGitHub <noreply@github.com>2024-10-15 21:44:09 -0400
commitbf79fa17fbc106fd06c545732ad875275821376e (patch)
tree17249f9386cb4e6d174090772ac7fe2cb702a5d9 /include/egg/audio/eggAudioSystem.h
parent40b04ad7247e1d60ac99f62698e7c04388bfcdfc (diff)
Untangle eggAudio a bit (#61)
* Untangle eggAudio a bit * eggAudioRmtSpeakerMgr with a regswap * Fix eggAudioRmtSpeakerMgr (thanks Cuyler!) * eggAudioUtility with two regswaps
Diffstat (limited to 'include/egg/audio/eggAudioSystem.h')
-rw-r--r--include/egg/audio/eggAudioSystem.h36
1 files changed, 35 insertions, 1 deletions
diff --git a/include/egg/audio/eggAudioSystem.h b/include/egg/audio/eggAudioSystem.h
index f7b11811..b0e2f4a2 100644
--- a/include/egg/audio/eggAudioSystem.h
+++ b/include/egg/audio/eggAudioSystem.h
@@ -1,6 +1,40 @@
#ifndef EGG_AUDIO_SYSTEM_H
#define EGG_AUDIO_SYSTEM_H
-namespace EGG {} // namespace EGG
+#include <common.h>
+
+namespace EGG {
+
+class AudioSystem {
+public:
+ AudioSystem();
+ ~AudioSystem();
+
+ void fn_804B7270(s32 frame);
+ void fn_804B7370();
+ void fn_804B73D0(s32 frame);
+ void calc();
+
+ bool isField0x04Eq2() {
+ return field_0x04 == 2;
+ }
+
+ bool field0x08NotZero() {
+ return field_0x08 != 0;
+ }
+
+ bool field0x04NotZero() {
+ return field_0x04 != 0;
+ }
+
+ static AudioSystem *sInstanse; ///< sic
+
+private:
+ f32 field_0x00;
+ s32 field_0x04;
+ s32 field_0x08;
+};
+
+} // namespace EGG
#endif