22#define AU_EQPOW_MID_IDX 64
23#define AU_EQPOW_MAX_IDX 127
49 for (i = 0; i <
config->num_pvoice; i++) {
54 voice->decoder.lastsam = 0;
55 voice->decoder.first = 1;
58 voice->resampler.delta = 0;
59 voice->resampler.first = 1;
60 voice->resampler.ratio = 1.0f;
62 voice->envMixer.first = 1;
64 voice->envMixer.volume = 1;
65 voice->envMixer.ltgt = 1;
66 voice->envMixer.rtgt = 1;
67 voice->envMixer.cvolL = 1;
68 voice->envMixer.cvolR = 1;
69 voice->envMixer.dryamt = 0;
70 voice->envMixer.wetamt = 0;
71 voice->envMixer.lratm = 1;
72 voice->envMixer.lratl = 0;
73 voice->envMixer.rratm = 1;
74 voice->envMixer.rratl = 0;
75 voice->envMixer.delta = 0;
76 voice->envMixer.segEnd = 0;
77 voice->envMixer.pan = 64;
86 for (i = 0; i <
config->num_bus; i++) {
174 }
while (next !=
NULL);
307 pvoice->envMixer.volume = 1;
308 pvoice->resampler.delta = 0;
309 pvoice->resampler.first = 1;
345 pvoice->decoder.sample = 0;
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;
383 if (envMixer->
segEnd != 0) {
395 resampler->
ratio = pitch;
404 pvoice->decoder.sample = 0;
411 pvoice->decoder.loop.count = 0;
412 pvoice->decoder.loop.end = 0;
413 pvoice->decoder.loop.start = 0;
427 pvoice->decoder.loop.count = 0;
428 pvoice->decoder.loop.end = 0;
429 pvoice->decoder.loop.start = 0;
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) {
738 for (i = 0; i < (
u32)(
hp->len) >> 2; i++) {
739 ((
u32*)
hp->base)[i] = 0;
747 if (&heap->base[heap->len] >=
newCur) {
760 for (i = 0; i < size; i++) {
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)
BSS s32 PopupMenu_SelectedIndex
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)