5static s16 _getVol(s16 arg0, s32 arg1, s16 arg2, u16 arg3);
22#define AU_EQPOW_MID_IDX 64
23#define AU_EQPOW_MAX_IDX 127
26 ALHeap* heap = config->
heap;
86 for (i = 0; i < config->
num_bus; i++) {
119Acmd*
alAudioFrame(Acmd* cmdList, s32* cmdLen, s16* outBuf, s32 outLen) {
131 cmdListPos = cmdList;
153 if (fxBus->
tail != NULL) {
156 fxBus->
head = pvoice;
158 fxBus->
tail = pvoice;
164 if (fxBus->
head != NULL) {
167 if (fxBus->
head != NULL) {
174 }
while (next != NULL);
239 n_aInterleave(cmdListPos++);
245 *cmdLen = (cmdListPos - cmdList);
270 fxBus->
gain = arg1 & 0x7FFF;
297 pvoice->
busId = busId;
341 pvoice->
busId = busId;
352 decoder->
loop.count = 0;
353 decoder->
loop.end = 0;
354 decoder->
loop.start = 0;
368 decoder->
loop.count = 0;
369 decoder->
loop.end = 0;
370 decoder->
loop.start = 0;
375 envMixer->
motion = AL_PLAYING;
383 if (envMixer->
segEnd != 0) {
395 resampler->
ratio = pitch;
459 if (envMixer->
cvolL == 0) {
462 if (envMixer->
cvolR == 0) {
469 envMixer->
volume =
SQ(volume) >> 0xF;
492 if (envMixer->
cvolL == 0) {
495 if (envMixer->
cvolR == 0) {
522 if (envMixer->
cvolL == 0) {
525 if (envMixer->
cvolR == 0) {
552 if (envMixer->
cvolL == 0) {
555 if (envMixer->
cvolR == 0) {
580 if (envMixer->
cvolL == 0) {
583 if (envMixer->
cvolR == 0) {
601 return pvoice->
busId;
727 s32 alignBytes = 0x10 - ((s32)base & 0xF);
729 if (alignBytes != 0x10) {
730 hp->base = base + alignBytes;
738 for (i = 0; i < (u32)(hp->len) >> 2; i++) {
739 ((u32*)hp->base)[i] = 0;
745 u8* newCur = &heap->cur[
ALIGN16(count * size)];
747 if (&heap->base[heap->len] >= newCur) {
755void alCopy(
void* src,
void* dst, s32 size) {
760 for (i = 0; i < size; i++) {
765static s16 _getVol(s16 ivol, s32 samples, s16 ratem, u16 ratel) {
767 samples = samples >> 3;
771 tmpl = ratel * samples;
773 tmpl += ratem * samples;
void au_update_players_main(void)
void au_update_clients_2(void)
void au_bus_set_volume(u8 index, u16 arg1)
void au_set_global_volume(s16 arg0)
f32 au_syn_get_pitch(u8 voiceIdx)
void au_use_global_volume(void)
void au_syn_set_volume_delta(u8 voiceIdx, s16 vol, s32 delta)
BSS u8 AuDelayedVoiceGroup
void au_disable_channel_delay(void)
s16 au_syn_get_wetamt(u8 voiceIdx)
AuSynDriver * gActiveSynDriverPtr
void au_delay_right_channel(u8 groupIdx)
void au_pvoice_set_bus(u8 index, s8 busId)
BSS s16 * AuDelayBufferAux
void au_driver_init(AuSynDriver *driver, ALConfig *config)
BSS s16 * AuDelayBufferMain
void au_syn_set_fxmix(u8 voiceIdx, u8 fxMix)
Acmd * alAudioFrame(Acmd *cmdList, s32 *cmdLen, s16 *outBuf, s32 outLen)
void alHeapInit(ALHeap *hp, u8 *base, s32 len)
u8 au_syn_get_pan(u8 voiceIdx)
void au_syn_stop_voice(u8 voiceIdx)
void func_80056D5C(u8 bStereoSound)
void au_syn_set_pitch(u8 voiceIdx, f32 pitch)
s32 au_syn_get_volume_right(u8 voiceIdx)
AuSynDriver * gSynDriverPtr
void alCopy(void *src, void *dst, s32 size)
void au_set_delay_time(s32 arg0)
void au_syn_set_pan(u8 voiceIdx, u8 pan)
s16 au_syn_get_dryamt(u8 voiceIdx)
void * alHeapAlloc(ALHeap *heap, s32 count, s32 size)
void au_syn_start_voice(u8 voiceIdx)
void au_bus_set_fx_params(u8 index, s16 delayIndex, s16 paramID, s32 value)
void au_driver_release(void)
void au_delay_channel(s16 arg0)
u16 au_bus_get_volume(u8 index, u16 arg1)
void au_bus_set_effect(u8 index, u8 effectType)
void au_syn_set_pan_fxmix(u8 voiceIdx, u8 pan, u8 fxMix)
void au_syn_start_voice_params(u8 voiceIdx, u8 busId, Instrument *instrument, f32 pitch, s16 vol, u8 pan, u8 fxMix, s32 delta)
s16 au_get_global_volume(void)
void au_delay_left_channel(u8 groupIdx)
s32 au_syn_get_bus(u8 voiceIdx)
s32 au_syn_get_playing(u8 voiceIdx)
s32 au_syn_get_volume_left(u8 voiceIdx)
void au_syn_set_mixer_params(u8 voiceIdx, s16 volume, s32 delta, u8 pan, u8 fxMix)
void au_syn_set_wavetable(u8 voiceIdx, Instrument *instrument)
Acmd * au_pull_voice(AuPVoice *pvoice, Acmd *cmdBufPos)
volatile u8 AuSynUseStereo
struct Instrument * instrument
s32 au_fx_param_hdl(AuFX *fx, s16 index, s16 paramID, s32 value)
void func_8005904C(AuFX *fx, u8 effectType)
void func_80058E84(AuFX *fx, u8 mode, ALHeap *heap)
Acmd * au_pull_fx(AuFX *fx, Acmd *cmdBusPos, s16, s16)