Go to the source code of this file.
Definition at line 37 of file system.c.
Referenced by create_audio_system_obfuscated().
Definition at line 108 of file system.c.
Referenced by create_audio_system().
DMA callback for audio sample streaming; manages a DMA buffer cache.
Definition at line 194 of file system.c.
Referenced by nuAuDmaNew().
Definition at line 29 of file engine.c.
Referenced by au_pull_voice().
Definition at line 36 of file engine.c.
Referenced by create_audio_system().
this is called once per video frame update (50 or 60 times per second)
Definition at line 286 of file engine.c.
Referenced by alAudioFrame().
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.
Definition at line 210 of file engine.c.
Referenced by alAudioFrame().
Definition at line 308 of file engine.c.
Referenced by au_update_clients_for_audio_frame().
Definition at line 384 of file engine.c.
Definition at line 393 of file engine.c.
Referenced by au_bgm_player_update_playing(), au_bgm_reset_all_voices(), au_BGMCmd_FC_Branch(), au_mseq_player_stop(), au_mseq_player_update(), and au_mseq_restore_voices().
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) |
Definition at line 406 of file engine.c.
Referenced by au_bgm_player_update_playing(), au_mseq_player_update(), and au_mseq_restore_voices().
Definition at line 417 of file engine.c.
Referenced by au_bgm_process_init_song(), au_bgm_restore_copied_player(), and au_sfx_init().
Definition at line 453 of file engine.c.
Referenced by au_bgm_update_bus_volumes(), au_sfx_init(), and au_update_clients_for_audio_frame().
Definition at line 489 of file engine.c.
Referenced by au_update_clients_for_audio_frame().
| 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.
Definition at line 502 of file engine.c.
Referenced by au_bgm_player_update_playing(), au_BGMCmd_E8_TrackOverridePatch(), au_BGMCmd_F5_UseInstrument(), and au_mseq_player_update().
| void au_get_bgm_player_and_file | ( | u32 | playerIndex, |
| BGMHeader ** | outCurrentTrackData, | ||
| BGMPlayer ** | outPlayer ) |
Definition at line 518 of file engine.c.
Referenced by snd_song_load().
Definition at line 558 of file engine.c.
Referenced by snd_song_load().
Definition at line 618 of file engine.c.
Referenced by au_bgm_process_resume().
Definition at line 656 of file engine.c.
Referenced by au_bgm_process_resume(), and au_bgm_process_suspend().
Definition at line 665 of file engine.c.
Referenced by snd_load_ambient().
Definition at line 732 of file engine.c.
Referenced by au_bgm_process_resume().
Definition at line 745 of file engine.c.
Referenced by au_engine_init().
| AuResult au_fetch_SBN_file | ( | u32 | fileIdx, |
| AuFileFormat | format, | ||
| SBNFileEntry * | arg2 ) |
Definition at line 796 of file engine.c.
Referenced by au_engine_init(), au_load_BK_headers(), au_load_song_files(), and au_reload_song_files().
Definition at line 818 of file engine.c.
Referenced by au_engine_init().
Definition at line 837 of file engine.c.
Referenced by au_engine_init().
| InstrumentBank * au_get_BK_instruments | ( | BankSet | bankSet, |
| u32 | bankIndex ) |
Definition at line 895 of file engine.c.
Referenced by au_clear_instrument_group(), au_load_BK_to_bank(), and au_load_static_BK_to_bank().
| 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.
Definition at line 947 of file engine.c.
Referenced by au_load_aux_bank(), and au_load_BK_headers().
| 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.
Definition at line 1042 of file engine.c.
Referenced by au_load_BK_to_bank(), and au_load_static_BK_to_bank().
| 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.
Definition at line 1079 of file engine.c.
Definition at line 1150 of file engine.c.
Referenced by au_ambient_load(), au_load_BGM(), au_load_song_files(), and au_reload_song_files().
Definition at line 1169 of file engine.c.
Referenced by snd_set_bgm_volume(), and snd_set_sfx_volume().
Definition at line 1185 of file engine.c.
Referenced by snd_set_sfx_reverb_type().
Definition at line 1192 of file engine.c.
Referenced by snd_set_mono(), and snd_set_stereo().
Definition at line 1209 of file engine.c.
Referenced by au_ambient_load(), au_engine_init(), au_load_BK_headers(), au_load_BK_to_bank(), au_load_INIT(), au_load_PER(), au_load_PRG(), au_load_song_files(), au_load_static_BK_to_bank(), and au_reload_song_files().
Definition at line 1226 of file engine.c.
Referenced by au_mseq_manager_init(), and au_mseq_play_sequence().
Definition at line 1273 of file engine.c.
Referenced by au_bgm_process_suspend(), au_bgm_restore_copied_player(), au_load_PER(), and au_load_PRG().
| void au_driver_init | ( | AuSynDriver * | driver, |
| ALConfig * | config ) |
Definition at line 25 of file syn_driver.c.
Referenced by create_audio_system().
Definition at line 113 of file syn_driver.c.
Definition at line 272 of file syn_driver.c.
Referenced by nuAuPreNMIProc().
Definition at line 276 of file syn_driver.c.
Referenced by nuAuPreNMIProc().
Definition at line 280 of file syn_driver.c.
Referenced by nuAuPreNMIProc().
Definition at line 284 of file syn_driver.c.
Referenced by snd_set_mono(), and snd_set_stereo().
Definition at line 289 of file syn_driver.c.
Referenced by au_fade_set_volume().
Definition at line 295 of file syn_driver.c.
Definition at line 301 of file syn_driver.c.
Referenced by au_syn_begin_audio_frame().
Definition at line 309 of file syn_driver.c.
Definition at line 323 of file syn_driver.c.
Referenced by au_flush_finished_voices(), and au_syn_begin_audio_frame().
Definition at line 350 of file syn_driver.c.
| void au_syn_start_voice_params | ( | u8 | index, |
| u8 | reverbType, | ||
| Instrument * | table, | ||
| f32 | pitch, | ||
| s16 | vol, | ||
| u8 | pan, | ||
| u8 | fxMix, | ||
| s32 | delta ) |
Definition at line 357 of file syn_driver.c.
Referenced by au_syn_begin_audio_frame().
| void au_syn_set_wavetable | ( | u8 | voiceIdx, |
| Instrument * | table ) |
Definition at line 420 of file syn_driver.c.
Referenced by au_engine_init().
Definition at line 458 of file syn_driver.c.
Referenced by au_syn_begin_audio_frame().
Definition at line 464 of file syn_driver.c.
Referenced by au_syn_begin_audio_frame().
Definition at line 497 of file syn_driver.c.
Referenced by au_syn_begin_audio_frame().
Definition at line 527 of file syn_driver.c.
Referenced by au_reset_nonfree_voice(), and au_reset_voice().
Definition at line 557 of file syn_driver.c.
Referenced by alAudioFrame().
Definition at line 585 of file syn_driver.c.
Definition at line 614 of file syn_driver.c.
Definition at line 620 of file syn_driver.c.
Definition at line 626 of file syn_driver.c.
Definition at line 632 of file syn_driver.c.
Definition at line 638 of file syn_driver.c.
Definition at line 644 of file syn_driver.c.
Definition at line 650 of file syn_driver.c.
Definition at line 667 of file syn_driver.c.
Definition at line 684 of file syn_driver.c.
Referenced by au_syn_begin_audio_frame().
Definition at line 696 of file syn_driver.c.
Referenced by au_syn_begin_audio_frame().
Definition at line 711 of file syn_driver.c.
Referenced by au_syn_begin_audio_frame().
Definition at line 726 of file syn_driver.c.
Referenced by au_syn_begin_audio_frame().
Definition at line 732 of file syn_driver.c.
Referenced by au_engine_init().
Definition at line 765 of file syn_driver.c.
Referenced by au_driver_init(), au_engine_init(), au_filter_create(), au_fx_create(), au_load_BK_to_bank(), au_load_INIT(), au_load_static_BK_to_bank(), and create_audio_system().
(UNUSED) Immediately flush all voices which have finished playing.
These are normally released automatically during the start of each audio frame.
Initializes all voices in the audio system.
Sets default values and clears previous envelope state.
Definition at line 19 of file voice.c.
Referenced by au_engine_init().
Main envelope system update, called once per frame.
Progresses envelope state for all active voices.
Definition at line 37 of file voice.c.
Referenced by au_update_clients_for_audio_frame().
Applies volume update after a client-side volume change.
This is deferred to avoid modifying envelope state mid-step.
Definition at line 176 of file voice.c.
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. |
Definition at line 183 of file voice.c.
Referenced by au_update_voices(), au_voice_after_volume_change(), and au_voice_start().
| 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. |
Definition at line 187 of file voice.c.
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.
Definition at line 215 of file voice.c.
Referenced by au_update_voices(), and au_voice_start().
(UNUSED) Force recalculation of voice envelope volume during next update.
Definition at line 33 of file pull_voice.c.
Referenced by alAudioFrame().
| effectType | from enum AuEffectType |
Definition at line 138 of file reverb.c.
Referenced by au_driver_init().
Definition at line 158 of file reverb.c.
Definition at line 181 of file reverb.c.
Referenced by au_bus_set_effect(), and au_fx_create().
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. |
Definition at line 281 of file reverb.c.
Referenced by alAudioFrame().
Definition at line 416 of file reverb.c.
Referenced by au_bus_set_fx_params().