Files
perfect-dark/src/lib/lib_39c80.c
T
2021-11-19 22:50:16 +10:00

52 lines
1.1 KiB
C

#include <ultra64.h>
#include <n_libaudio.h>
#include "constants.h"
#include "bss.h"
#include "data.h"
#include "types.h"
void func00039cd0(N_ALCSPlayer *seqp)
{
s32 i;
seqp->chanMask = 0xffff;
for (i = 0; i < seqp->maxChannels; i++) {
seqp->chanState[i].unk0e = 0xff;
seqp->chanState[i].unk0d = 0xff;
}
}
void func00039d68(N_ALCSPlayer *seqp, u32 status)
{
n_alCSPSendMidi(seqp, 0, status | 0xb0, 0xfc, 0);
}
void func00039dac(N_ALCSPlayer *seqp, u32 arg1)
{
seqp->chanMask |= 1 << arg1;
n_alCSPSendMidi(seqp, 0, arg1 | 0xb0, 0xfc, 0xff);
}
void func00039e10(N_ALCSPlayer *seqp, u32 arg1, u8 arg2)
{
n_alCSPSendMidi(seqp, 0, arg1 | 0xb0, 0xff, arg2);
}
void func00039e5c(N_ALCSPlayer *seqp, s32 arg1, u8 arg2, u8 arg3)
{
n_alCSPSendMidi(seqp, 0, arg1 | 0xb0, 0xfd, arg3);
n_alCSPSendMidi(seqp, 0, arg1 | 0xb0, 0xff, arg2);
}
void func00039ecc(N_ALCSPlayer *seqp, u32 arg1, u8 arg2)
{
n_alCSPSendMidi(seqp, 0, arg1 | 0xb0, 0x41, arg2);
}
void func00039f18(N_ALCSPlayer *seqp, u32 arg1, u8 arg2)
{
n_alCSPSendMidi(seqp, 0, arg1 | 0xb0, 0xfc, arg2);
}