Naming a function (#2124)

* Naming a function

* Naming function

* Update functions.txt

* Update function name

* Update function name

* Update function name

* Update function name
This commit is contained in:
Ozero4
2024-09-05 14:57:30 +02:00
committed by GitHub
parent acb5c7f20c
commit 0b011033fc
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -533,7 +533,7 @@ void Audio_StopSfxByBank(u8 bankId) {
Audio_RemoveMatchingSfxRequests(0, &cmp);
}
void func_800F8884(u8 bankId, Vec3f* pos) {
void Audio_RemoveSfxFromBankByPos(u8 bankId, Vec3f* pos) {
SfxBankEntry* entry;
u8 entryIndex = gSfxBanks[bankId][0].next;
u8 prevEntryIndex = 0;
@@ -557,7 +557,7 @@ void func_800F8884(u8 bankId, Vec3f* pos) {
void Audio_StopSfxByPosAndBank(u8 bankId, Vec3f* pos) {
SfxBankEntry cmp;
func_800F8884(bankId, pos);
Audio_RemoveSfxFromBankByPos(bankId, pos);
cmp.sfxId = bankId << 12;
cmp.posX = &pos->x;
Audio_RemoveMatchingSfxRequests(1, &cmp);
@@ -568,7 +568,7 @@ void Audio_StopSfxByPos(Vec3f* pos) {
SfxBankEntry cmp;
for (i = 0; i < ARRAY_COUNT(gSfxBanks); i++) {
func_800F8884(i, pos);
Audio_RemoveSfxFromBankByPos(i, pos);
}
cmp.posX = &pos->x;
Audio_RemoveMatchingSfxRequests(2, &cmp);