mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-04 12:09:54 -04:00
24 lines
661 B
C
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;
|
|
}
|
|
}
|
|
}
|