1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-05 07:24:34 +00:00

Document code_800C3C20: Audio_StopAllSfx (#1309)

* Document code_800C3C20

* Associate it with AudioMgr to separate it from the audio library
This commit is contained in:
engineer124 2022-07-04 11:51:38 -04:00 committed by GitHub
parent ed0ab877c9
commit f2d4c3b10b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View file

@ -1,13 +1,13 @@
#include "global.h"
u8 D_8012D200[] = {
0, 1, 2, 3, 4, 5, 6,
u8 sSfxBankIds[] = {
BANK_PLAYER, BANK_ITEM, BANK_ENV, BANK_ENEMY, BANK_SYSTEM, BANK_OCARINA, BANK_VOICE,
};
void func_800C3C20(void) {
s32 i;
void AudioMgr_StopAllSfx(void) {
u32 i;
for (i = 0; (i < ARRAY_COUNT(D_8012D200)) & 0xFFFFFFFF; i++) {
Audio_StopSfxByBank(D_8012D200[i]);
for (i = 0; (u32)(i < ARRAY_COUNT(sSfxBankIds)); i++) {
Audio_StopSfxByBank(sSfxBankIds[i]);
}
}