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;
60 voice->resampler.ratio = 1.0f;
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++) {
184 }
while (next !=
NULL);
292 fxBus->
gain = value & 0x7FFF;
329 pvoice->envMixer.volume = 1;
330 pvoice->resampler.delta = 0;
367 pvoice->decoder.sample = 0;
379 decoder->
loop.count = 0;
380 decoder->
loop.end = 0;
381 decoder->
loop.start = 0;
390 decoder->
loop.count = 0;
391 decoder->
loop.end = 0;
392 decoder->
loop.start = 0;
405 if (envMixer->
segEnd != 0) {
417 resampler->
ratio = pitchRatio;
426 pvoice->decoder.sample = 0;
438 pvoice->decoder.loop.count = 0;
439 pvoice->decoder.loop.end = 0;
440 pvoice->decoder.loop.start = 0;
449 pvoice->decoder.loop.count = 0;
450 pvoice->decoder.loop.end = 0;
451 pvoice->decoder.loop.start = 0;
481 if (envMixer->
cvolL == 0) {
484 if (envMixer->
cvolR == 0) {
491 envMixer->
volume =
SQ(volume) >> 0xF;
514 if (envMixer->
cvolL == 0) {
517 if (envMixer->
cvolR == 0) {
544 if (envMixer->
cvolL == 0) {
547 if (envMixer->
cvolR == 0) {
574 if (envMixer->
cvolL == 0) {
577 if (envMixer->
cvolR == 0) {
602 if (envMixer->
cvolL == 0) {
605 if (envMixer->
cvolR == 0) {
760 for (i = 0; i < (
u32)(hp->len) >> 2; i++) {
761 ((
u32*)hp->base)[i] = 0;
769 if (&heap->base[heap->len] >=
newCur) {
782 for (i = 0; i < size; i++) {
BSS s32 PopupMenu_SelectedIndex
volatile u8 AuSynUseStereo
struct Instrument * instrument
s32 au_fx_param_hdl(AuFX *fx, s16 index, s16 paramID, s32 value)
void au_update_clients_for_video_frame(void)
this is called once per video frame update (50 or 60 times per second)
void au_update_clients_for_audio_frame(void)
this is called per audio frame generated by alAudioFrame (every 184 audio samples) there will be mult...
Acmd * au_pull_fx(AuFX *fx, Acmd *cmdBusPos, s16, s16)
Applies a chain of delay-line based effects to audio and mixes into output.
void au_fx_create(AuFX *fx, u8 mode, ALHeap *heap)
void au_fx_load_preset(AuFX *fx, u8 effectType)
Acmd * au_pull_voice(AuPVoice *pvoice, Acmd *cmdBufPos)
void au_set_delay_time(s32 numFrames)
void au_bus_set_effect(u8 busID, u8 effectType)
u16 au_bus_get_volume(u8 busID)
f32 au_syn_get_pitch(u8 voiceIdx)
void au_pvoice_set_bus(u8 voiceIdx, s8 busID)
void au_use_global_volume(void)
void au_syn_set_volume_delta(u8 voiceIdx, s16 vol, s32 delta)
void au_disable_channel_delay(void)
s16 au_syn_get_wetamt(u8 voiceIdx)
AuSynDriver * gActiveSynDriverPtr
BSS s16 * AuDelayBufferAux
void au_driver_init(AuSynDriver *driver, ALConfig *config)
BSS s16 * AuDelayBufferMain
void au_delay_right_channel(u8 busID)
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)
void au_syn_start_voice_params(u8 voiceIdx, u8 busID, Instrument *instrument, f32 pitchRatio, s16 vol, u8 pan, u8 fxMix, s32 delta)
u8 au_syn_get_pan(u8 voiceIdx)
void au_syn_stop_voice(u8 voiceIdx)
void au_set_global_volume(s16 volume)
void au_set_stereo_enabled(b8 enabled)
void au_bus_set_fx_params(u8 busID, s16 delayIndex, s16 paramID, s32 value)
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_bus_set_volume(u8 busID, u16 value)
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_driver_release(void)
void au_syn_set_pan_fxmix(u8 voiceIdx, u8 pan, u8 fxMix)
s16 au_get_global_volume(void)
void au_delay_left_channel(u8 busID)
s32 au_syn_get_bus(u8 voiceIdx)
s32 au_syn_get_playing(u8 voiceIdx)
s32 au_syn_get_volume_left(u8 voiceIdx)
void au_init_delay_channel(s16 channel)
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)