Functions | |
| void | snd_notify_engine_ready (ALHeap *heap) |
| void | snd_legacy_sound_dispatch (u32 id) |
| Unused Seems to be an early function that accepts a command to play any kind of audio asset,. | |
| void | snd_bgm_clear_legacy_commands (BGMPlayer *player) |
| Part of an unused system for inter-thread communication with a BGM player using commands. | |
| void | snd_bgm_enqueue_legacy_command (u32 cmd) |
| Unused Part of an unused system for inter-thread communication with a BGM player using commands. | |
| void | snd_start_sound (s32 soundID, u8 volume, u8 pan) |
| void | snd_start_sound_with_shift (s32 soundID, u8 volume, u8 pan, s16 pitchShift) |
| void | snd_adjust_sound (s32 soundID, u8 volume, u8 pan) |
| void | snd_adjust_sound_with_shift (s32 soundID, u8 volume, u8 pan, s16 pitchShift) |
| void | snd_stop_sound (s32 soundID) |
| void | snd_reset (void) |
| void | snd_start_sound_raw (s32 soundID, s16 volume, s16 pitchShift, s32 pan) |
| AuResult | snd_load_ambient (s32 ambSoundID) |
| AuResult | snd_ambient_play (s32 index, s32 fadeInTime) |
| AuResult | snd_ambient_stop_quick (s32 index) |
| AuResult | snd_ambient_stop_slow (s32 index, s32 fadeOutTime) |
| AuResult | snd_ambient_pause (s32 index, s32 fadeOutTime) |
| AuResult | snd_ambient_resume (s32 index, s32 fadeInTime) |
| AuResult | snd_ambient_is_stopped (s32 index) |
| AuResult | snd_ambient_fade_out (s32 index, s32 arg1) |
| AuResult | snd_ambient_set_volume (s32 index, s32 time, s32 volume) |
| AuResult | snd_ambient_disable (s32 index) |
| AuResult | snd_ambient_enable (s32 index) |
| void | snd_ambient_radio_setup (s32 index) |
| AuResult | snd_ambient_radio_stop (s32 time) |
| AuResult | snd_ambient_radio_select (s32 index) |
| AuResult | snd_song_load (s32 songID, s32 playerIndex) |
| return value may be either an AuResult error code OR a valid songName | |
| AuResult | snd_song_request_play_default (s32 songName) |
| Unused – snd_song_request_play but always uses BGM_VARIATION_0. | |
| AuResult | snd_song_request_play (s32 songName, s32 variation) |
| Called from bgm_control to start playing a particular song + variation. | |
| AuResult | snd_song_stop (s32 songName) |
| void | snd_song_stop_all (void) |
| AuResult | snd_song_is_playing (s32 songName) |
| AuResult | snd_song_request_fade_in (s32 songName, s32 variation, s32 fadeInTime, s32 startVolume, s32 endVolume) |
| Called from bgm_control to fade in a particular song + variation. | |
| AuResult | snd_song_request_fade_in_default (s32 songName, s32 fadeInTime, s32 startVolume, s32 endVolume) |
| Unused. | |
| AuResult | snd_song_request_fade_out (s32 songName, s32 fadeTime, AuCallback callback) |
| AuResult | snd_song_push_stop (s32 songName) |
| AuResult | snd_song_request_pop (s32 songName) |
| AuResult | snd_song_request_snapshot (s32 songName) |
| AuResult | snd_song_request_push_fade_out (s32 songName, s32 fadeTime) |
| AuResult | snd_song_request_pause (s32 songName) |
| AuResult | snd_song_request_unpause (s32 songName) |
| AuResult | snd_song_set_volume_quiet (s32 songName) |
| AuResult | snd_song_set_volume_full (s32 songName) |
| AuResult | snd_song_set_linked_mode (s32 songName, bool mode) |
| AuResult | snd_song_get_playing_info (s32 songName, BGMHeader **outFile, BGMPlayer **outPlayer) |
| AuResult | snd_song_set_playback_rate (s32 songName, f32 rate) |
| AuResult | snd_song_set_detune (s32 songName, s32 detune) |
| AuResult | snd_song_set_track_volumes (s32 songName, MusicTrackVols trackVolSet) |
| AuResult | snd_song_clear_track_volumes (s32 songName, MusicTrackVols trackVolSet) |
| AuResult | snd_song_set_track_vol_mute (s32 songName, s32 trackIdx) |
| AuResult | snd_song_set_track_vol_quiet (s32 songName, s32 trackIdx) |
| AuResult | snd_song_set_track_vol_full (s32 songName, s32 trackIdx) |
| void | snd_song_set_proximity_mix_far (s32 songName, s32 mix) |
| void | snd_song_set_proximity_mix_near (s32 songName, s32 mix) |
| void | snd_song_set_proximity_mix_full (s32 songName, s32 mix) |
| void | snd_song_poll_music_events (MusicEventTrigger **musicEvents, s32 *count) |
| void | snd_song_flush_music_events (void) |
| void | snd_song_trigger_music_event (s32 playerID, s32 trackIndex, s32 eventInfo) |
| void | snd_song_clear_music_events (void) |
| void | snd_register_callback (AuCallback func, s32 index) |
| void | snd_set_stereo (void) |
| void | snd_set_mono (void) |
| void | snd_set_bgm_volume (VolumeLevels volume) |
| void | snd_set_sfx_volume (VolumeLevels volume) |
| void | snd_set_sfx_reverb_type (s32 reverbType) |
| void | snd_enable_sfx (void) |
| void | snd_disable_sfx (void) |
Variables | |
| s32 | PreventBGMPlayerUpdate = false |
| While true, the audio thread skips BGM player updates. | |
| u16 | SoundEngineReady = 0 |
| u16 | AmbienceRadioChannel = 0 |
| u8 | TrackVols_JAN_Full [] |
| u8 | TrackVols_Unused1 [] |
| u8 | TrackVols_TIK_Shiver [] |
| u8 | TrackVols_Unused3 [] |
| u8 | TrackVols_KPA_Outside [] |
| u8 | TrackVols_KPA_1 [] |
| u8 | TrackVols_KPA_2 [] |
| u8 | TrackVols_KPA_3 [] |
| void snd_adjust_sound | ( | s32 | soundID, |
| u8 | volume, | ||
| u8 | pan ) |
| void snd_adjust_sound_with_shift | ( | s32 | soundID, |
| u8 | volume, | ||
| u8 | pan, | ||
| s16 | pitchShift ) |
Referenced by sfx_adjust_env_sound_params(), and sfx_update_env_sound_params().
| AuResult snd_ambient_disable | ( | s32 | index | ) |
Referenced by snd_ambient_radio_select().
| AuResult snd_ambient_enable | ( | s32 | index | ) |
Referenced by snd_ambient_radio_select().
| AuResult snd_ambient_fade_out | ( | s32 | index, |
| s32 | arg1 ) |
| AuResult snd_ambient_is_stopped | ( | s32 | index | ) |
Referenced by update_ambient_sounds().
| AuResult snd_ambient_pause | ( | s32 | index, |
| s32 | fadeOutTime ) |
Referenced by bgm_push_battle_song().
| AuResult snd_ambient_play | ( | s32 | index, |
| s32 | fadeInTime ) |
Referenced by snd_ambient_radio_setup(), and update_ambient_sounds().
| AuResult snd_ambient_radio_select | ( | s32 | index | ) |
Referenced by snd_ambient_radio_setup().
| void snd_ambient_radio_setup | ( | s32 | index | ) |
| AuResult snd_ambient_radio_stop | ( | s32 | time | ) |
| AuResult snd_ambient_resume | ( | s32 | index, |
| s32 | fadeInTime ) |
Referenced by bgm_pop_battle_song().
| AuResult snd_ambient_set_volume | ( | s32 | index, |
| s32 | time, | ||
| s32 | volume ) |
| AuResult snd_ambient_stop_quick | ( | s32 | index | ) |
Referenced by play_ambient_sounds(), snd_ambient_radio_stop(), and update_ambient_sounds().
| AuResult snd_ambient_stop_slow | ( | s32 | index, |
| s32 | fadeOutTime ) |
Referenced by snd_ambient_radio_stop(), and update_ambient_sounds().
| void snd_bgm_clear_legacy_commands | ( | BGMPlayer * | player | ) |
Part of an unused system for inter-thread communication with a BGM player using commands.
Use functions in bgm_control to manipualte gMusicControlData instead.
Referenced by au_bgm_player_init().
| void snd_bgm_enqueue_legacy_command | ( | u32 | cmd | ) |
Unused Part of an unused system for inter-thread communication with a BGM player using commands.
Use functions in bgm_control to manipualte gMusicControlData instead.
| void snd_disable_sfx | ( | void | ) |
Referenced by state_init_demo().
| void snd_enable_sfx | ( | void | ) |
Referenced by state_step_demo().
| void snd_legacy_sound_dispatch | ( | u32 | id | ) |
Unused Seems to be an early function that accepts a command to play any kind of audio asset,.
| AuResult snd_load_ambient | ( | s32 | ambSoundID | ) |
Referenced by update_ambient_sounds().
| void snd_notify_engine_ready | ( | ALHeap * | heap | ) |
Referenced by au_engine_init().
| void snd_register_callback | ( | AuCallback | func, |
| s32 | index ) |
| void snd_reset | ( | void | ) |
| void snd_set_bgm_volume | ( | VolumeLevels | volume | ) |
Referenced by bgm_reset_sequence_players(), and bgm_update_volume().
| void snd_set_mono | ( | void | ) |
Referenced by filemenu_main_handle_input(), and state_step_startup().
| void snd_set_sfx_reverb_type | ( | s32 | reverbType | ) |
Referenced by sfx_set_reverb_mode().
| void snd_set_sfx_volume | ( | VolumeLevels | volume | ) |
| void snd_set_stereo | ( | void | ) |
Referenced by filemenu_main_handle_input(), and state_step_startup().
| void snd_song_clear_music_events | ( | void | ) |
Referenced by au_engine_init(), and au_update_clients_for_video_frame().
| AuResult snd_song_clear_track_volumes | ( | s32 | songName, |
| MusicTrackVols | trackVolSet ) |
Referenced by bgm_clear_track_volumes().
| void snd_song_flush_music_events | ( | void | ) |
| AuResult snd_song_is_playing | ( | s32 | songName | ) |
Referenced by bgm_is_any_song_playing(), and bgm_update_music_control().
| AuResult snd_song_load | ( | s32 | songID, |
| s32 | playerIndex ) |
return value may be either an AuResult error code OR a valid songName
Referenced by bgm_update_music_control(), and snd_legacy_sound_dispatch().
| void snd_song_poll_music_events | ( | MusicEventTrigger ** | musicEvents, |
| s32 * | count ) |
| AuResult snd_song_push_stop | ( | s32 | songName | ) |
Referenced by bgm_update_music_control().
| AuResult snd_song_request_fade_in | ( | s32 | songName, |
| s32 | variation, | ||
| s32 | fadeInTime, | ||
| s32 | startVolume, | ||
| s32 | endVolume ) |
Called from bgm_control to fade in a particular song + variation.
Referenced by bgm_update_music_control().
| AuResult snd_song_request_fade_in_default | ( | s32 | songName, |
| s32 | fadeInTime, | ||
| s32 | startVolume, | ||
| s32 | endVolume ) |
Unused.
| AuResult snd_song_request_fade_out | ( | s32 | songName, |
| s32 | fadeTime, | ||
| AuCallback | callback ) |
Referenced by bgm_update_music_control().
| AuResult snd_song_request_pause | ( | s32 | songName | ) |
| AuResult snd_song_request_play | ( | s32 | songName, |
| s32 | variation ) |
Called from bgm_control to start playing a particular song + variation.
Referenced by bgm_update_music_control(), and snd_legacy_sound_dispatch().
| AuResult snd_song_request_play_default | ( | s32 | songName | ) |
Unused – snd_song_request_play but always uses BGM_VARIATION_0.
| AuResult snd_song_request_pop | ( | s32 | songName | ) |
Referenced by bgm_update_music_control().
| AuResult snd_song_request_push_fade_out | ( | s32 | songName, |
| s32 | fadeTime ) |
Referenced by bgm_update_music_control().
| AuResult snd_song_request_snapshot | ( | s32 | songName | ) |
Referenced by _bgm_set_song().
| AuResult snd_song_request_unpause | ( | s32 | songName | ) |
| AuResult snd_song_set_detune | ( | s32 | songName, |
| s32 | detune ) |
Referenced by bgm_set_linked_mode().
| AuResult snd_song_set_playback_rate | ( | s32 | songName, |
| f32 | rate ) |
Referenced by worker_update_phonograph_hud().
| void snd_song_set_proximity_mix_far | ( | s32 | songName, |
| s32 | mix ) |
Referenced by bgm_adjust_proximity().
| void snd_song_set_proximity_mix_full | ( | s32 | songName, |
| s32 | mix ) |
Referenced by bgm_adjust_proximity().
| void snd_song_set_proximity_mix_near | ( | s32 | songName, |
| s32 | mix ) |
Referenced by bgm_adjust_proximity().
| AuResult snd_song_set_track_vol_full | ( | s32 | songName, |
| s32 | trackIdx ) |
| AuResult snd_song_set_track_vol_mute | ( | s32 | songName, |
| s32 | trackIdx ) |
| AuResult snd_song_set_track_vol_quiet | ( | s32 | songName, |
| s32 | trackIdx ) |
| AuResult snd_song_set_track_volumes | ( | s32 | songName, |
| MusicTrackVols | trackVolSet ) |
Referenced by bgm_set_track_volumes().
| AuResult snd_song_set_volume_full | ( | s32 | songName | ) |
| AuResult snd_song_set_volume_quiet | ( | s32 | songName | ) |
| AuResult snd_song_stop | ( | s32 | songName | ) |
Referenced by _bgm_set_song(), bgm_fade_in_song(), and bgm_update_music_control().
| void snd_song_stop_all | ( | void | ) |
| void snd_song_trigger_music_event | ( | s32 | playerID, |
| s32 | trackIndex, | ||
| s32 | eventInfo ) |
Referenced by au_BGMCmd_FD_EventTrigger().
| void snd_start_sound | ( | s32 | soundID, |
| u8 | volume, | ||
| u8 | pan ) |
Referenced by animate_and_draw_record(), and appendGfx_records().
| void snd_start_sound_raw | ( | s32 | soundID, |
| s16 | volume, | ||
| s16 | pitchShift, | ||
| s32 | pan ) |
| void snd_start_sound_with_shift | ( | s32 | soundID, |
| u8 | volume, | ||
| u8 | pan, | ||
| s16 | pitchShift ) |
| void snd_stop_sound | ( | s32 | soundID | ) |
Referenced by action_update_sliding(), sfx_stop_env_sounds(), sfx_stop_sound(), and sfx_stop_tracking_env_sound_pos().
| u16 AmbienceRadioChannel = 0 |
Referenced by snd_ambient_radio_select(), snd_ambient_radio_setup(), and snd_ambient_radio_stop().
| s32 PreventBGMPlayerUpdate = false |
While true, the audio thread skips BGM player updates.
Used by the game thread to lock out BGM updates while modifying player state, to prevent race conditions.
Referenced by au_update_clients_for_audio_frame(), snd_notify_engine_ready(), snd_song_request_fade_in(), snd_song_request_fade_in_default(), snd_song_request_play(), snd_song_request_play_default(), and snd_song_request_pop().
| u16 SoundEngineReady = 0 |
Referenced by snd_legacy_sound_dispatch(), and snd_notify_engine_ready().
| u8 TrackVols_JAN_Full[] |
| u8 TrackVols_KPA_1[] |
| u8 TrackVols_KPA_2[] |
| u8 TrackVols_KPA_3[] |
| u8 TrackVols_KPA_Outside[] |
| u8 TrackVols_TIK_Shiver[] |
| u8 TrackVols_Unused1[] |
| u8 TrackVols_Unused3[] |