171 if (player !=
NULL) {
453 if (bgmFile !=
NULL) {
674 if (songName == bgmFile->
name) {
679 if (songName == bgmFile->
name) {
809 return snd_song_change_track_volume(songName,
trackIdx, 0);
866static const f32 padding[] = {0.0f};
BSS s32 PopupMenu_SelectedIndex
@ SND_MANAGER_STATE_DISABLED
@ SND_MANAGER_STATE_ENABLED
u8 cmdBufPending
Buffer for an unused (legacy) system for controlling the BGMPlayer from the main thread.
MusicEventTrigger * musicEventQueue
SoundManager * gSoundManager
AuGlobals * gSoundGlobals
AuCallback audioThreadCallbacks[2]
struct BGMHeader * dataBGM[2]
MusicEventTrigger * musicEventQueuePos
void au_bgm_set_proximity_mix(s32 songName, u32 mix)
AuResult au_bgm_set_linked_tracks(SongSwapLinkedRequest *request)
AuResult au_bgm_is_song_playing(s32 songName)
AuResult au_bgm_process_suspend(SongSuspendRequest *request, b32 skipStop)
void au_bgm_change_track_volume(BGMPlayer *player, s32 trackIdx, s16 time, u8 volume)
void au_bgm_set_track_volumes(BGMPlayer *player, u8 *trackVols, s32 mode)
AuResult au_bgm_process_fade_out(SongFadeOutRequest *request)
AuResult au_bgm_process_resume(SongResumeRequest *request)
AuResult au_bgm_stop_song(s32 songName)
void au_bgm_stop_all(void)
void au_bgm_set_playback_rate(BGMPlayer *player, f32 rate)
AuResult au_bgm_adjust_volume(SongStartRequest *request)
void au_bgm_player_set_detune(BGMPlayer *player, s32 detune)
AuResult au_bgm_process_init_song(SongStartRequest *request)
void au_sync_channel_delay_enabled(u32 arg0)
void au_set_bus_volume_level(s32 arg0, u32 idx)
void au_set_stereo_enabled(b8 enabled)
AuResult au_load_song_files(u32 arg0, BGMHeader *arg1, BGMPlayer *arg2)
AuResult au_ambient_load(u32 arg0)
void au_get_bgm_player_and_file(u32 playerIndex, BGMHeader **outCurrentTrackData, BGMPlayer **outPlayer)
s32 au_set_reverb_type(s32 arg0, s32 arg1)
VolumeLevels
Perceptual volume levels, 0 (mute) to 8 (max).
@ AU_ERROR_NULL_SONG_NAME
AuResult au_mseq_start(s32 index, s32 time)
void au_mseq_set_disabled(s32 index, s32 disable)
void au_mseq_stop_slow(s32 index, s32 time)
AuResult au_mseq_check_player_index(u32 index)
void au_mseq_load_tracks_fade(s32 arg0, s32 arg1)
void au_mseq_stop_quick(s32 index)
void au_mseq_resume(s32 index, s32 time)
AuResult au_mseq_check_stopped(s32 index)
void au_mseq_set_volume(s32 index, s32 time, s32 volume)
void au_mseq_pause(s32 index, s32 time)
void au_sfx_enqueue_event(SoundManager *manager, u32 soundID, s16 volume, s16 pitchShift, u8 pan)
void au_sfx_set_state(SoundManager *manager, s32 arg1)
#define ASCII_TO_U32(a, b, c, d)
AuResult snd_ambient_disable(s32 index)
void snd_stop_sound(s32 soundID)
u8 TrackVols_KPA_Outside[]
void snd_start_sound_with_shift(s32 soundID, u8 volume, u8 pan, s16 pitchShift)
AuResult snd_song_push_stop(s32 songName)
void snd_disable_sfx(void)
AuResult snd_song_request_fade_out(s32 songName, s32 fadeTime, AuCallback callback)
u8 TrackVols_TIK_Shiver[]
AuResult snd_load_ambient(s32 ambSoundID)
AuResult snd_song_set_track_vol_mute(s32 songName, s32 trackIdx)
AuResult snd_song_set_track_vol_quiet(s32 songName, s32 trackIdx)
void snd_song_poll_music_events(MusicEventTrigger **musicEvents, s32 *count)
AuResult snd_ambient_stop_slow(s32 index, s32 fadeOutTime)
AuResult snd_song_request_fade_in_default(s32 songName, s32 fadeInTime, s32 startVolume, s32 endVolume)
Unused.
void snd_bgm_enqueue_legacy_command(u32 cmd)
Unused Part of an unused system for inter-thread communication with a BGM player using commands.
AuResult snd_song_set_track_volumes(s32 songName, MusicTrackVols trackVolSet)
void snd_start_sound(s32 soundID, u8 volume, u8 pan)
AuResult snd_ambient_radio_stop(s32 time)
void snd_start_sound_raw(s32 soundID, s16 volume, s16 pitchShift, s32 pan)
AuResult snd_song_request_play(s32 songName, s32 variation)
Called from bgm_control to start playing a particular song + variation.
AuResult snd_song_request_push_fade_out(s32 songName, s32 fadeTime)
void snd_set_bgm_volume(VolumeLevels volume)
AuResult snd_song_set_volume_full(s32 songName)
AuResult snd_song_load(s32 songID, s32 playerIndex)
return value may be either an AuResult error code OR a valid songName
void snd_enable_sfx(void)
AuResult snd_song_request_unpause(s32 songName)
AuResult snd_song_request_pop(s32 songName)
AuResult snd_song_set_detune(s32 songName, s32 detune)
AuResult snd_ambient_set_volume(s32 index, s32 time, s32 volume)
AuResult snd_song_set_playback_rate(s32 songName, f32 rate)
void snd_adjust_sound_with_shift(s32 soundID, u8 volume, u8 pan, s16 pitchShift)
void snd_notify_engine_ready(ALHeap *heap)
void snd_register_callback(AuCallback func, s32 index)
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.
void snd_set_sfx_reverb_type(s32 reverbType)
AuResult snd_ambient_enable(s32 index)
AuResult snd_song_set_track_vol_full(s32 songName, s32 trackIdx)
AuResult snd_ambient_resume(s32 index, s32 fadeInTime)
void snd_song_stop_all(void)
void snd_set_stereo(void)
void snd_bgm_clear_legacy_commands(BGMPlayer *player)
Part of an unused system for inter-thread communication with a BGM player using commands.
AuResult snd_song_request_snapshot(s32 songName)
AuResult snd_song_clear_track_volumes(s32 songName, MusicTrackVols trackVolSet)
s32 PreventBGMPlayerUpdate
While TRUE, the audio thread skips BGM player updates.
AuResult snd_ambient_stop_quick(s32 index)
AuResult snd_ambient_pause(s32 index, s32 fadeOutTime)
AuResult snd_song_set_volume_quiet(s32 songName)
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_song_request_pause(s32 songName)
void snd_adjust_sound(s32 soundID, u8 volume, u8 pan)
AuResult snd_song_is_playing(s32 songName)
void snd_song_set_proximity_mix_far(s32 songName, s32 mix)
AuResult snd_song_request_play_default(s32 songName)
Unused – snd_song_request_play but always uses BGM_VARIATION_0.
void snd_song_set_proximity_mix_near(s32 songName, s32 mix)
AuResult snd_ambient_play(s32 index, s32 fadeInTime)
void snd_ambient_radio_setup(s32 index)
AuResult snd_ambient_radio_select(s32 index)
void snd_song_set_proximity_mix_full(s32 songName, s32 mix)
AuResult snd_song_get_playing_info(s32 songName, BGMHeader **outFile, BGMPlayer **outPlayer)
void snd_set_sfx_volume(VolumeLevels volume)
void snd_song_trigger_music_event(s32 playerID, s32 trackIndex, s32 eventInfo)
void snd_song_clear_music_events(void)
AuResult snd_ambient_is_stopped(s32 index)
AuResult snd_ambient_fade_out(s32 index, s32 arg1)
AuResult snd_song_stop(s32 songName)
AuResult snd_song_set_linked_mode(s32 songName, b32 mode)
void snd_song_flush_music_events(void)