Referenced by snd_load_ambient().
Referenced by au_syn_begin_audio_frame().
Referenced by au_fade_set_volume().
unused. resets all instruments in (bankIndex, bankSet) to default
Converts a linear pitch value (in cents) into a frequency ratio suitable for adjusting playback speed.
This function computes the playback rate corresponding to a pitch shift (up or down) in cents. Positive values increase pitch (higher frequency), and negative values decrease it. Recall 100 cents = 1 semitone, and therefore 1200 cents = 1 octave.
tuning | The pitch offset in cents, from +4095 (~ 40.95 semitones up) to -16383 (~ 163.83 semitones down) |
Referenced by au_bgm_player_update_playing(), au_mseq_player_update(), and au_mseq_restore_voices().
Referenced by au_bgm_process_suspend(), au_bgm_restore_copied_player(), au_load_PER(), and au_load_PRG().
Referenced by au_syn_begin_audio_frame().
Referenced by au_syn_begin_audio_frame().
Referenced by au_syn_begin_audio_frame().
void au_driver_init | ( | AuSynDriver * | driver, |
ALConfig * | config ) |
Referenced by create_audio_system().
Referenced by create_audio_system().
Referenced by au_bgm_adjust_volume().
Referenced by au_set_bus_volume_level().
Referenced by au_bgm_process_init_song(), au_bgm_restore_copied_player(), and au_sfx_init().
Referenced by au_bgm_player_init().
Referenced by au_bgm_update_bus_volumes(), au_sfx_init(), and au_update_clients_for_audio_frame().
Referenced by au_update_clients_for_audio_frame().
Referenced by au_update_clients_for_audio_frame().
AuResult au_fetch_SBN_file | ( | u32 | fileIdx, |
AuFileFormat | format, | ||
SBNFileEntry * | arg2 ) |
Referenced by au_engine_init(), au_load_BK_headers(), au_load_song_files(), and au_reload_song_files().
Referenced by au_filter_create().
(UNUSED) Immediately flush all voices which have finished playing.
These are normally released automatically during the start of each audio frame.
effectType | from enum AuEffectType |
Referenced by au_driver_init().
Referenced by au_bus_set_effect(), and au_fx_create().
Referenced by au_bus_set_fx_params().
void au_get_bgm_player_and_file | ( | u32 | playerIndex, |
BGMHeader ** | outCurrentTrackData, | ||
BGMPlayer ** | outPlayer ) |
Referenced by snd_song_load().
InstrumentBank * au_get_BK_instruments | ( | BankSet | bankSet, |
u32 | bankIndex ) |
Referenced by au_clear_instrument_group(), au_load_BK_to_bank(), and au_load_static_BK_to_bank().
Referenced by au_bgm_process_resume().
Referenced by nuAuPreNMIProc().
Instrument * au_get_instrument | ( | AuGlobals * | globals, |
BankSetIndex | bank, | ||
s32 | patch, | ||
EnvelopeData * | envData ) |
Note that bank is supplied as BankSetIndex and not BankSet, which means it will be used to perform a raw access into AuGlobals::bankSets.
This does not affect values above 3, but 1 and 2 differ.
Referenced by au_bgm_player_update_playing(), au_BGMCmd_E8_TrackOverridePatch(), au_BGMCmd_F5_UseInstrument(), and au_mseq_player_update().
Referenced by au_bgm_process_resume(), and au_bgm_process_suspend().
Referenced by au_engine_init().
Initializes all voices in the audio system.
Sets default values and clears previous envelope state.
Referenced by au_engine_init().
Referenced by au_ambient_load(), au_load_BGM(), au_load_song_files(), and au_reload_song_files().
BKFileBuffer * au_load_BK_to_bank | ( | s32 | bkFileOffset, |
BKFileBuffer * | bkFile, | ||
s32 | bankIndex, | ||
BankSet | bankSet ) |
Loads an instrument bank file from ROM, allocates memory if needed, and sets up instrument pointers.
Instruments in the bank will be configured to use DMA streaming for sample/codebook data. This is the standard loader for streamed instrument banks.
Referenced by au_load_aux_bank(), and au_load_BK_headers().
Referenced by au_engine_init().
Referenced by au_engine_init().
Referenced by au_engine_init().
Referenced by snd_song_load().
BKFileBuffer * au_load_static_BK_to_bank | ( | s32 * | inAddr, |
void * | outAddr, | ||
s32 | bankIndex, | ||
BankSet | bankSet ) |
UNUSED Loads an instrument bank file from ROM to a given buffer (allocates if needed), and sets up instrument pointers.
Instruments are configured to always bypass DMA: sample and codebook data is assumed to be already present in RAM. Use this only for banks whose sample data is guaranteed to be preloaded, not for standard streaming.
Referenced by au_mseq_manager_init(), and au_mseq_play_sequence().
Applies a chain of delay-line based effects to audio and mixes into output.
For each delay tap in the FX chain:
fx | Pointer to FX state (delay taps, buffers, etc.) |
ptr | Pointer to the current audio command list position. |
wetDmem | DMEM offset to mix wet output into. |
tempDmem | Base DMEM offset for temporary working buffers. |
Referenced by alAudioFrame().
Referenced by alAudioFrame().
Referenced by au_engine_init().
Referenced by au_pull_voice().
Referenced by au_bgm_process_resume().
Referenced by snd_set_bgm_volume(), and snd_set_sfx_volume().
Referenced by au_syn_begin_audio_frame().
Referenced by nuAuPreNMIProc().
Referenced by snd_set_sfx_reverb_type().
Referenced by snd_set_mono(), and snd_set_stereo().
void au_swizzle_BK_instruments | ( | s32 | bkFileOffset, |
BKFileBuffer * | file, | ||
InstrumentBank | instruments, | ||
u32 | instrumentCount, | ||
u8 | useDma ) |
Fixes up (swizzles) instrument pointers in a loaded bank, converting file-relative offsets to valid RAM pointers.
Sets whether each instrument uses DMA streaming or not, and updates pitch ratios to match output rate. Replaces NULL instruments with a default instrument to ensure all loaded patches point to valid data.
Referenced by au_load_BK_to_bank(), and au_load_static_BK_to_bank().
Referenced by au_update_clients_for_audio_frame().
Referenced by au_syn_begin_audio_frame().
Referenced by alAudioFrame().
Referenced by au_syn_begin_audio_frame().
Referenced by au_syn_begin_audio_frame().
Referenced by au_reset_nonfree_voice(), and au_reset_voice().
void au_syn_set_wavetable | ( | u8 | voiceIdx, |
Instrument * | table ) |
Referenced by au_engine_init().
void au_syn_start_voice_params | ( | u8 | index, |
u8 | reverbType, | ||
Instrument * | table, | ||
f32 | pitch, | ||
s16 | vol, | ||
u8 | pan, | ||
u8 | fxMix, | ||
s32 | delta ) |
Referenced by au_syn_begin_audio_frame().
Referenced by au_flush_finished_voices(), and au_syn_begin_audio_frame().
Referenced by snd_set_mono(), and snd_set_stereo().
this is called per audio frame generated by alAudioFrame (every 184 audio samples) there will be multiuple of these per video frame
this is called per audio frame generated by alAudioFrame (every 184 audio samples) there will be multiuple of these per video frame
Updates MSEQ, SFX, and BGM players for the current audio frame.
Referenced by alAudioFrame().
this is called once per video frame update (50 or 60 times per second)
Referenced by alAudioFrame().
Main envelope system update, called once per frame.
Progresses envelope state for all active voices.
Referenced by au_update_clients_for_audio_frame().
Referenced by nuAuPreNMIProc().
Applies volume update after a client-side volume change.
This is deferred to avoid modifying envelope state mid-step.
Referenced by au_update_voices().
Converts envelope step duration from microseconds to num samples delta.
Uses AU_FRAME_USEC as the base time slice, returning the number of audio samples corresponding to the provided duration.
msecs | Time duration in microseconds. |
Referenced by au_update_voices(), au_voice_after_volume_change(), and au_voice_start().
(UNUSED) Force recalculation of voice envelope volume during next update.
void au_voice_start | ( | AuVoice * | voice, |
EnvelopeData * | envData ) |
Starts a new voice with the given envelope data.
Initializes envelope state and prepares the press phase for playback.
voice | Pointer to the voice being started. |
envData | Envelope command lists (press and release) to use. |
Referenced by au_syn_begin_audio_frame().
Parses and executes envelope commands until a time interval is found.
Commands include setting multipliers, loop control, etc.
Referenced by au_update_voices(), and au_voice_start().
Referenced by create_audio_system_obfuscated().
DMA callback for audio sample streaming; manages a DMA buffer cache.
Referenced by nuAuDmaNew().
Referenced by create_audio_system().