summaryrefslogtreecommitdiff
path: root/include/JSystem/JAudio
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2024-04-13 23:27:13 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2024-04-13 23:27:13 -0400
commit778ff46ab2266bcff82eec8d963286d48e7ee152 (patch)
tree753d54e5dbcc18657dd581a613eff2b35611b0bf /include/JSystem/JAudio
parenta7a4984a89a0aa3c0a7fee71197bb2d55c83d352 (diff)
copy JStudio_JStage progress from pikmin2
Diffstat (limited to 'include/JSystem/JAudio')
-rw-r--r--include/JSystem/JAudio/JAIBasic.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/JSystem/JAudio/JAIBasic.h b/include/JSystem/JAudio/JAIBasic.h
index 51e29320..62ceb049 100644
--- a/include/JSystem/JAudio/JAIBasic.h
+++ b/include/JSystem/JAudio/JAIBasic.h
@@ -2,10 +2,10 @@
#define JAIBASIC_H
#include "JSystem/JUtility/JUTAssert.h"
-#include "dolphin/mtx/vec.h"
#include "JSystem/JAudio/JAIBankWave.h"
+#include "JSystem/JAudio/JAISound.h"
+#include "dolphin/mtx/vec.h"
-class JAISound;
class JKRSolidHeap;
namespace JAInter {
@@ -87,8 +87,16 @@ public:
return JAInter::BankWave::checkAllWaveLoadStatus();
}
+ // this might be wrong, it matches but the size doesn't seem to match the debug map
bool checkEnablePrepare(u32 flags) { return !(flags & 0xc0000000) && !(flags & 0x00000c00); }
+ void prepareSoundVec(u32 flags, JAISound** pSound, Vec* pos, u32 r7, u32 r8, u8 r9) {
+ startSoundVec(flags, pSound, pos, r7, r8, r9);
+ if (*pSound) {
+ (*pSound)->setPrepareFlag(1);
+ }
+ }
+
// TODO
void addInitOnCodeSeScene(u32, u32) {}
void getAudioCamera() {}
@@ -99,7 +107,6 @@ public:
void getWaveLoadStatus(s32) {}
void initAudio(JKRSolidHeap*, u32, u8) {}
void loadSceneWave(s32, s32) {}
- void prepareSoundVec(u32, JAISound**, Vec*, u32, u32, u8) {}
void setInitDataInfo(char*) {}
void setInitOnCodeSeScene(u32*) {}