mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-12-10 18:12:40 +00:00
parent
2a36b14dcd
commit
8f0099cd85
1 changed files with 1 additions and 0 deletions
|
|
@ -2253,6 +2253,7 @@ void get_currently_playing_sound(u8 bank, u8 *numPlayingSounds, u8 *numSoundsInB
|
||||||
* Called from threads: thread5_game_loop
|
* Called from threads: thread5_game_loop
|
||||||
*/
|
*/
|
||||||
void stop_sound(u32 soundBits, f32 *pos) {
|
void stop_sound(u32 soundBits, f32 *pos) {
|
||||||
|
pos = smlua_get_vec3f_for_play_sound(pos);
|
||||||
u8 bank = (soundBits & SOUNDARGS_MASK_BANK) >> SOUNDARGS_SHIFT_BANK;
|
u8 bank = (soundBits & SOUNDARGS_MASK_BANK) >> SOUNDARGS_SHIFT_BANK;
|
||||||
if (bank >= SOUND_BANK_COUNT) { return; }
|
if (bank >= SOUND_BANK_COUNT) { return; }
|
||||||
u8 soundIndex = sSoundBanks[bank][0].next;
|
u8 soundIndex = sSoundBanks[bank][0].next;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue