10 if (
voice->stopPending) {
27 voice->volChangeTime = 0;
29 voice->timeIntervalIndex = 0;
31 voice->envelopeFlags = 0;
33 voice->releaseVolumeMult = 0x80;
68 if (*(
s8*)
voice->cmdPtr++ < 0) {
95 if (
voice->timeLeft == -1) {
104 if (
voice->timeLeft <= 0) {
108 voice->envelopeFlags = 0;
113 voice->timeLeft = -1;
114 voice->volChangeTime = -1;
127 if (
voice->volChangeTime != 0) {
186 voice->envelope.cmdListRelease =
envData->cmdListRelease;
187 voice->volMult = 0x80;
191 voice->envelopeFlags = 0;
192 voice->initialAmp = 0;
200 if (
voice->volChangeTime != 0) {
206 voice->releaseVolumeMult = 0x80;
215 if (((
s8)(
op = *
voice->cmdPtr++)) >= 0) {
228 if (
voice->volMult > 0x80) {
229 voice->volMult = 0x80;
230 }
else if (
voice->volMult < 0) {
240 if (
voice->loopCounter == 0 || --
voice->loopCounter != 0) {
void au_init_voices(AuGlobals *globals)
void au_voice_after_volume_change(AuVoice *voice)
void au_voice_set_vol_changed(AuVoice *voice)
void au_update_voices(AuGlobals *globals)
s32 au_voice_get_delta(s32 msecs)
void au_voice_start(AuVoice *voice, EnvelopeData *envData)
void au_update_stopped_voices(AuGlobals *globals)
u8 au_voice_step(AuVoice *voice)
void au_syn_stop_voice(u8 voiceIdx)
BSS s32 PopupMenu_SelectedIndex
s32 AuEnvelopeIntervals[]
@ AU_VOICE_SYNC_FLAG_PARAMS
@ AU_VOICE_ENV_FLAG_KEY_RELEASED
@ AU_VOICE_ENV_FLAG_VOL_CHANGED
@ AU_VOICE_ENV_FLAG_HANDLED_VOL_CHANGE