1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-11 03:39:59 +00:00

Better AudioMgr_StopAllSfx match (#1316)

* Better AudioMgr_StopAllSfx match

* Use same temp name

* remove volatile
This commit is contained in:
Derek Hensley 2022-07-13 11:20:36 -07:00 committed by GitHub
parent 354a2c29f8
commit beb56ad27a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,9 +5,9 @@ u8 sSfxBankIds[] = {
}; };
void AudioMgr_StopAllSfx(void) { void AudioMgr_StopAllSfx(void) {
u32 i; u8* bankIdPtr;
for (i = 0; (u32)(i < ARRAY_COUNT(sSfxBankIds)); i++) { for (bankIdPtr = &sSfxBankIds[0]; bankIdPtr < (sSfxBankIds + ARRAY_COUNT(sSfxBankIds)); bankIdPtr++) {
Audio_StopSfxByBank(sSfxBankIds[i]); Audio_StopSfxByBank(*bankIdPtr);
} }
} }