Go to the source code of this file.
Macros | |
#define | TUNE_SCALING_ARR_AMPLIFY_FINE 0 |
#define | TUNE_SCALING_ARR_AMPLIFY_COARSE 128 |
#define | TUNE_SCALING_ARR_ATTENUATE_FINE 160 |
#define | TUNE_SCALING_ARR_ATTENUATE_COARSE 288 |
#define | SBN_LOOKUP(i, fmt, e) (au_fetch_SBN_file(globals->mseqFileList[AmbientSoundIDtoMSEQFileIndex[i]], fmt, &e)) |
#define | AL_HEADER_SIG_BK 0x424B |
#define | AL_HEADER_SIG_CR 0x4352 |
#define | AL_HEADER_SIG_DR 0x4452 |
#define | AL_HEADER_SIG_SR 0x5352 |
Enumerations | |
enum | BKParseState { BK_READ_DONE = 0 , BK_READ_FETCH_HEADER = 11 , BK_READ_FETCH_DATA = 21 , BK_READ_SWIZZLE = 31 , BK_READ_PROCESS_CR = 101 , BK_READ_SWIZZLE_CR = 111 , BK_READ_PROCESS_DR = 201 , BK_READ_UNK_DR = 211 , BK_READ_PROCESS_SR = 301 , BK_READ_UNK_SR = 311 } |
Functions | |
void | func_80052E30 (u8 index) |
void | au_engine_init (s32 outputRate) |
void | au_update_clients_2 (void) |
void | au_update_players_main (void) |
void | au_syn_update (AuGlobals *globals) |
void | au_reset_nonfree_voice (AuVoice *voice, u8 index) |
void | au_reset_voice (AuVoice *voice, u8 voiceIdx) |
f32 | au_compute_pitch_ratio (s32 pitch) |
void | au_fade_init (Fade *fade, s32 time, s32 startValue, s32 endValue) |
void | au_fade_clear (Fade *fade) |
void | au_fade_update (Fade *fade) |
void | au_fade_set_volume (u8 busId, u16 volume, s32 busVolume) |
void | func_80053AC8 (Fade *fade) |
void | au_fade_set_vol_scale (Fade *fade, s16 value) |
void | func_80053B04 (Fade *fade, u32 arg1, s32 target) |
void | func_80053BA8 (Fade *fade) |
Instrument * | au_get_instrument (AuGlobals *globals, u32 bank, u32 patch, EnvelopeData *envData) |
void | au_get_bgm_player_and_file (u32 playerIndex, BGMHeader **outFile, BGMPlayer **outPlayer) |
void | au_get_bgm_player (u32 playerIndex, BGMPlayer **outPlayer) |
AuResult | au_load_song_files (u32 songID, BGMHeader *bgmFile, BGMPlayer *player) |
AuResult | func_80053E58 (s32 songID, BGMHeader *bgmFile) |
BGMPlayer * | func_80053F64 (s32 arg0) |
AuResult | au_ambient_load (u32 ambSoundID) |
BGMPlayer * | func_80054248 (u8 arg0) |
void | au_load_INIT (AuGlobals *arg0, s32 romAddr, ALHeap *heap) |
AuResult | au_fetch_SBN_file (u32 fileIdx, AuFileFormat format, SBNFileEntry *outEntry) |
void | au_load_PER (AuGlobals *globals, s32 romAddr) |
void | au_load_PRG (AuGlobals *arg0, s32 romAddr) |
s32 | snd_load_BGM (s32 arg0) |
InstrumentGroup * | au_get_BK_instruments (s32 bankGroup, u32 bankIndex) |
SoundBank * | au_load_BK_to_bank (s32 bkFileOffset, SoundBank *bank, s32 bankIndex, s32 bankGroup) |
void | au_swizzle_BK_instruments (s32 bkFileOffset, SoundBank *bank, InstrumentGroup instruments, u32 instrumentCount, u8 arg4) |
s32 * | func_80054AA0 (s32 *bkFileOffset, void *vaddr, s32 bankIndex, s32 bankGroup) |
s32 | snd_load_BK (s32 bkFileOffset, s32 bankIndex) |
void | func_80054C84 (s32 bankIndex, s32 bankGroup) |
void | func_80054CE0 (s32 arg0, u32 idx) |
s32 | func_80054D74 (s32 arg0, s32 arg1) |
void | func_80054DA8 (u32 bMonoSound) |
void | au_read_rom (s32 romAddr, void *buffer, u32 size) |
void | au_memset (void *dst, s32 size, u8 value) |
void | au_copy_bytes (s8 *src, s8 *dest, s32 size) |
void | au_copy_words (void *src, void *dst, s32 size) |
Variables | |
AuCallback | BeginSoundUpdateCallback |
BGMPlayer * | gBGMPlayerA |
BGMPlayer * | gBGMPlayerB |
BGMPlayer * | gBGMPlayerC |
SoundManager * | gSoundManager |
AuGlobals * | gSoundGlobals |
AmbienceManager * | gAuAmbienceManager |
u16 | D_80078530 [9] |
u8 | EnvelopePressDefault [] |
u8 | EnvelopeReleaseDefault [] |
f32 | AlTuneScaling [] |
#define TUNE_SCALING_ARR_AMPLIFY_FINE 0 |
Definition at line 376 of file 2e230_len_2190.c.
Referenced by au_compute_pitch_ratio().
#define TUNE_SCALING_ARR_AMPLIFY_COARSE 128 |
Definition at line 377 of file 2e230_len_2190.c.
Referenced by au_compute_pitch_ratio().
#define TUNE_SCALING_ARR_ATTENUATE_FINE 160 |
Definition at line 378 of file 2e230_len_2190.c.
Referenced by au_compute_pitch_ratio().
#define TUNE_SCALING_ARR_ATTENUATE_COARSE 288 |
Definition at line 379 of file 2e230_len_2190.c.
Referenced by au_compute_pitch_ratio().
#define SBN_LOOKUP | ( | i, | |
fmt, | |||
e ) (au_fetch_SBN_file(globals->mseqFileList[AmbientSoundIDtoMSEQFileIndex[i]], fmt, &e)) |
Definition at line 636 of file 2e230_len_2190.c.
Referenced by au_ambient_load().
#define AL_HEADER_SIG_BK 0x424B |
Definition at line 906 of file 2e230_len_2190.c.
Referenced by au_load_BK_to_bank(), and func_80054AA0().
#define AL_HEADER_SIG_CR 0x4352 |
Definition at line 907 of file 2e230_len_2190.c.
Referenced by au_load_BK_to_bank(), and func_80054AA0().
#define AL_HEADER_SIG_DR 0x4452 |
Definition at line 908 of file 2e230_len_2190.c.
Referenced by au_load_BK_to_bank().
#define AL_HEADER_SIG_SR 0x5352 |
Definition at line 909 of file 2e230_len_2190.c.
Referenced by au_load_BK_to_bank().
enum BKParseState |
Enumerator | |
---|---|
BK_READ_DONE | |
BK_READ_FETCH_HEADER | |
BK_READ_FETCH_DATA | |
BK_READ_SWIZZLE | |
BK_READ_PROCESS_CR | |
BK_READ_SWIZZLE_CR | |
BK_READ_PROCESS_DR | |
BK_READ_UNK_DR | |
BK_READ_PROCESS_SR | |
BK_READ_UNK_SR |
Definition at line 893 of file 2e230_len_2190.c.
void func_80052E30 | ( | u8 | index | ) |
Definition at line 18 of file 2e230_len_2190.c.
Referenced by au_pull_voice().
void au_engine_init | ( | s32 | outputRate | ) |
Definition at line 25 of file 2e230_len_2190.c.
Referenced by create_audio_system().
void au_update_clients_2 | ( | void | ) |
Definition at line 191 of file 2e230_len_2190.c.
Referenced by alAudioFrame().
void au_update_players_main | ( | void | ) |
Definition at line 261 of file 2e230_len_2190.c.
Referenced by alAudioFrame().
void au_syn_update | ( | AuGlobals * | globals | ) |
Definition at line 283 of file 2e230_len_2190.c.
Referenced by au_update_clients_2().
void au_reset_nonfree_voice | ( | AuVoice * | voice, |
u8 | index ) |
Definition at line 358 of file 2e230_len_2190.c.
void au_reset_voice | ( | AuVoice * | voice, |
u8 | voiceIdx ) |
Definition at line 368 of file 2e230_len_2190.c.
Referenced by au_amb_player_stop(), au_amb_player_update(), au_amb_restore_voices(), au_bgm_player_update_playing(), au_BGMCmd_FC_Jump(), and func_80050900().
f32 au_compute_pitch_ratio | ( | s32 | pitch | ) |
Definition at line 381 of file 2e230_len_2190.c.
Referenced by au_amb_player_update(), au_amb_restore_voices(), and au_bgm_player_update_playing().
void au_fade_init | ( | Fade * | fade, |
s32 | time, | ||
s32 | startValue, | ||
s32 | endValue ) |
Definition at line 392 of file 2e230_len_2190.c.
Referenced by au_bgm_dispatch_player_event(), au_sfx_init(), and func_8004DFD4().
void au_fade_clear | ( | Fade * | fade | ) |
Definition at line 407 of file 2e230_len_2190.c.
void au_fade_update | ( | Fade * | fade | ) |
Definition at line 413 of file 2e230_len_2190.c.
Referenced by au_update_clients_2().
void au_fade_set_volume | ( | u8 | busId, |
u16 | volume, | ||
s32 | busVolume ) |
Definition at line 428 of file 2e230_len_2190.c.
Referenced by au_sfx_init(), au_update_clients_2(), and func_8004E444().
void func_80053AC8 | ( | Fade * | fade | ) |
Definition at line 432 of file 2e230_len_2190.c.
Referenced by func_80054CE0().
void au_fade_set_vol_scale | ( | Fade * | fade, |
s16 | value ) |
Definition at line 440 of file 2e230_len_2190.c.
Referenced by au_bgm_player_init().
void func_80053B04 | ( | Fade * | fade, |
u32 | arg1, | ||
s32 | target ) |
Definition at line 447 of file 2e230_len_2190.c.
Referenced by func_8004E0F4().
void func_80053BA8 | ( | Fade * | fade | ) |
Definition at line 464 of file 2e230_len_2190.c.
Referenced by au_update_clients_2().
Instrument * au_get_instrument | ( | AuGlobals * | globals, |
u32 | bank, | ||
u32 | patch, | ||
EnvelopeData * | envData ) |
Definition at line 476 of file 2e230_len_2190.c.
Referenced by au_amb_player_update(), au_bgm_player_update_playing(), au_BGMCmd_E8_TrackOverridePatch(), and au_BGMCmd_F5_TrackVoice().
Definition at line 491 of file 2e230_len_2190.c.
Referenced by au_song_load().
void au_get_bgm_player | ( | u32 | playerIndex, |
BGMPlayer ** | outPlayer ) |
Definition at line 514 of file 2e230_len_2190.c.
Definition at line 531 of file 2e230_len_2190.c.
Referenced by au_song_load().
Definition at line 593 of file 2e230_len_2190.c.
Referenced by func_8004DE2C().
BGMPlayer * func_80053F64 | ( | s32 | arg0 | ) |
Definition at line 629 of file 2e230_len_2190.c.
Referenced by func_8004DCB8(), and func_8004DE2C().
AuResult au_ambient_load | ( | u32 | ambSoundID | ) |
Definition at line 638 of file 2e230_len_2190.c.
Referenced by snd_load_ambient().
BGMPlayer * func_80054248 | ( | u8 | arg0 | ) |
Definition at line 698 of file 2e230_len_2190.c.
Referenced by func_8004DE2C().
void au_load_INIT | ( | AuGlobals * | arg0, |
s32 | romAddr, | ||
ALHeap * | heap ) |
Definition at line 711 of file 2e230_len_2190.c.
Referenced by au_engine_init().
AuResult au_fetch_SBN_file | ( | u32 | fileIdx, |
AuFileFormat | format, | ||
SBNFileEntry * | outEntry ) |
Definition at line 763 of file 2e230_len_2190.c.
Referenced by au_engine_init(), au_load_BK_headers(), au_load_song_files(), and func_80053E58().
void au_load_PER | ( | AuGlobals * | globals, |
s32 | romAddr ) |
Definition at line 785 of file 2e230_len_2190.c.
Referenced by au_engine_init().
void au_load_PRG | ( | AuGlobals * | arg0, |
s32 | romAddr ) |
Definition at line 804 of file 2e230_len_2190.c.
Referenced by au_engine_init().
s32 snd_load_BGM | ( | s32 | arg0 | ) |
Definition at line 828 of file 2e230_len_2190.c.
InstrumentGroup * au_get_BK_instruments | ( | s32 | bankGroup, |
u32 | bankIndex ) |
Definition at line 862 of file 2e230_len_2190.c.
Referenced by au_load_BK_to_bank(), func_80054AA0(), and func_80054C84().
Definition at line 911 of file 2e230_len_2190.c.
Referenced by au_load_BK_headers(), and snd_load_BK().
void au_swizzle_BK_instruments | ( | s32 | bkFileOffset, |
SoundBank * | bank, | ||
InstrumentGroup | instruments, | ||
u32 | instrumentCount, | ||
u8 | arg4 ) |
Definition at line 1003 of file 2e230_len_2190.c.
Referenced by au_load_BK_to_bank(), and func_80054AA0().
s32 * func_80054AA0 | ( | s32 * | bkFileOffset, |
void * | vaddr, | ||
s32 | bankIndex, | ||
s32 | bankGroup ) |
Definition at line 1036 of file 2e230_len_2190.c.
s32 snd_load_BK | ( | s32 | bkFileOffset, |
s32 | bankIndex ) |
Definition at line 1109 of file 2e230_len_2190.c.
Referenced by au_ambient_load(), au_load_song_files(), func_80053E58(), and snd_load_BGM().
void func_80054C84 | ( | s32 | bankIndex, |
s32 | bankGroup ) |
Definition at line 1114 of file 2e230_len_2190.c.
void func_80054CE0 | ( | s32 | arg0, |
u32 | idx ) |
Definition at line 1126 of file 2e230_len_2190.c.
Referenced by func_800561A4(), and func_800561C4().
s32 func_80054D74 | ( | s32 | arg0, |
s32 | arg1 ) |
Definition at line 1142 of file 2e230_len_2190.c.
Referenced by func_800561E4().
void func_80054DA8 | ( | u32 | bMonoSound | ) |
Definition at line 1149 of file 2e230_len_2190.c.
Referenced by audio_set_mono(), and audio_set_stereo().
void au_read_rom | ( | s32 | romAddr, |
void * | buffer, | ||
u32 | size ) |
Definition at line 1166 of file 2e230_len_2190.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(), func_80053E58(), and func_80054AA0().
void au_memset | ( | void * | dst, |
s32 | size, | ||
u8 | value ) |
Definition at line 1183 of file 2e230_len_2190.c.
Referenced by au_amb_manager_init(), and au_amb_play_sequence().
void au_copy_bytes | ( | s8 * | src, |
s8 * | dest, | ||
s32 | size ) |
Definition at line 1222 of file 2e230_len_2190.c.
void au_copy_words | ( | void * | src, |
void * | dst, | ||
s32 | size ) |
Definition at line 1230 of file 2e230_len_2190.c.
Referenced by au_load_PER(), au_load_PRG(), func_8004DCB8(), and func_8004DFD4().
AuCallback BeginSoundUpdateCallback |
Definition at line 4 of file 2e230_len_2190.c.
Referenced by au_update_players_main().
BGMPlayer* gBGMPlayerA |
Definition at line 5 of file 2e230_len_2190.c.
Referenced by au_bgm_get_player_with_song_name(), au_bgm_stop_all(), au_engine_init(), au_get_bgm_player(), au_get_bgm_player_and_file(), au_update_clients_2(), au_update_players_main(), func_80054248(), func_80054CE0(), func_8005513C(), and snd_song_get_playing_info().
BGMPlayer* gBGMPlayerB |
Definition at line 6 of file 2e230_len_2190.c.
Referenced by au_bgm_get_player_with_song_name(), au_bgm_stop_all(), au_engine_init(), au_get_bgm_player(), au_get_bgm_player_and_file(), au_update_clients_2(), au_update_players_main(), func_80054248(), func_80054CE0(), func_8005513C(), and snd_song_get_playing_info().
BGMPlayer* gBGMPlayerC |
Definition at line 7 of file 2e230_len_2190.c.
Referenced by au_engine_init().
SoundManager* gSoundManager |
Definition at line 8 of file 2e230_len_2190.c.
Referenced by au_engine_init(), au_update_clients_2(), au_update_players_main(), disable_sounds(), enable_sounds(), func_80054248(), func_80054CE0(), func_80054D74(), snd_adjust_sound(), snd_adjust_sound_with_shift(), snd_reset(), snd_start_sound(), snd_start_sound_raw(), snd_start_sound_with_shift(), and snd_stop_sound().
AuGlobals* gSoundGlobals |
Definition at line 9 of file 2e230_len_2190.c.
Referenced by au_ambient_load(), au_engine_init(), au_fetch_SBN_file(), au_get_bgm_player_and_file(), au_get_BK_instruments(), au_load_song_files(), au_register_callback(), au_swizzle_BK_instruments(), au_update_clients_2(), au_update_players_main(), bgm_clear_music_events(), bgm_flush_music_events(), bgm_poll_music_events(), bgm_trigger_music_event(), func_80052E30(), func_80053E58(), func_80053F64(), func_80054C84(), func_80054DA8(), snd_load_BGM(), snd_load_BK(), and snd_song_get_playing_info().
AmbienceManager* gAuAmbienceManager |
Definition at line 10 of file 2e230_len_2190.c.
Referenced by au_amb_check_player_index(), au_amb_is_stopped(), au_amb_load_tracks_fade(), au_amb_pause(), au_amb_resume(), au_amb_set_disabled(), au_amb_set_volume(), au_amb_start(), au_amb_stop_quick(), au_amb_stop_slow(), au_ambient_load(), au_engine_init(), and au_update_clients_2().
|
extern |
Definition at line 289 of file sfx_player.c.
Referenced by func_80054CE0().
|
extern |
Definition at line 299 of file sfx_player.c.
Referenced by au_get_instrument().
|
extern |
Definition at line 304 of file sfx_player.c.
|
extern |
Definition at line 360 of file sfx_player.c.
Referenced by au_compute_pitch_ratio().