Files
perfect-dark/src/game/propsndstop.c
T
2022-06-14 18:57:57 +10:00

24 lines
661 B
C

#include <ultra64.h>
#include "constants.h"
#include "bss.h"
#include "lib/snd.h"
#include "lib/lib_317f0.h"
#include "data.h"
#include "types.h"
void propsndStop(void)
{
s32 i;
for (i = 0; i < (IS4MB() ? 30 : 40); i++) {
if (g_AudioChannels[i].flags & AUDIOCHANNELFLAG_ISMP3) {
snd0000fbc4(g_AudioChannels[i].soundnum26);
g_AudioChannels[i].flags &= ~AUDIOCHANNELFLAG_ISMP3;
g_AudioChannels[i].flags &= ~AUDIOCHANNELFLAG_0002;
} else if (g_AudioChannels[i].audiohandle && sndGetState(g_AudioChannels[i].audiohandle) != AL_STOPPED) {
audioStop(g_AudioChannels[i].audiohandle);
g_AudioChannels[i].flags &= ~AUDIOCHANNELFLAG_0002;
}
}
}