name audio.c, board/audio.c, board/basic_space, match files (#571)

* name audio.c and board/audio.c

* fix audio, complete board/basic_space, battle

* revert changes that broke build

* completely finish New and NewMore.cp, for some reason NewMore fails checksum

* finally match NewMore.cp
This commit is contained in:
CreateSource 2025-03-15 08:36:13 -04:00 committed by GitHub
parent 4ee46b3396
commit eb11f9c23f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 42 additions and 22 deletions

View file

@ -475,13 +475,13 @@ void HuAudDllSndGrpSet(u16 ovl) {
}
}
void HuAudSndGrpSetSet(s16 data_size) {
void HuAudSndGrpSetSet(s16 dataSize) {
void *buf;
OSTick osTick;
s32 numPlay;
s32 err;
if (sndGroupBak != data_size) {
if (sndGroupBak != dataSize) {
msmMusStopAll(1, 0);
msmSeStopAll(1, 0);
osTick = OSGetTick();
@ -492,11 +492,11 @@ void HuAudSndGrpSetSet(s16 data_size) {
numPlay = msmSeGetNumPlay(1);
OSReport("Timed Out! Mus %d:SE %d\n", msmMusGetNumPlay(1), numPlay);
}
OSReport("GroupSet %d\n", data_size);
sndGroupBak = data_size;
OSReport("GroupSet %d\n", dataSize);
sndGroupBak = dataSize;
err = msmSysDelGroupAll();
buf = HuMemDirectMalloc(HEAP_DATA, msmSysGetSampSize(1));
err = msmSysLoadGroupSet(data_size, buf);
err = msmSysLoadGroupSet(dataSize, buf);\
OSReport("***********GroupSet Error %d\n", err);
HuMemDirectFree(buf);
}