110 u32 temp_v1 = arg0 & 0xF;
148 u32 playerSwitch = arg0 & 0xF;
150 if (playerSwitch != 0) {
151 if (playerSwitch == 1) {
153 }
else if (playerSwitch == 2) {
157 if (player != NULL) {
163 player->
unk_238[temp] = arg0 >> 4;
186 s16 vol = volume << 8;
201 s16 vol = volume << 8;
211 if (pitchShift > 2400) {
213 }
else if (pitchShift < -2400) {
222 s16 vol = volume << 8;
237 s16 vol = volume << 8;
247 if (pitchShift > 2400) {
249 }
else if (pitchShift < -2400) {
382 for (i = 0; i < lim; i++) {
396 for (i = 0; i < lim; i++) {
416 for (i = 0; i < lim; i++) {
442 if (bgmFile != NULL) {
641 if (songName == bgmFile->
name) {
646 if (songName == bgmFile->
name) {
692 u8* trackVols = snd_song_get_track_volumes_set(trackVolSet);
694 if (trackVols != NULL) {
712 u8* trackVols = snd_song_get_track_volumes_set(trackVolSet);
714 if (trackVols != NULL) {
724static u8* snd_song_get_track_volumes_set(
MusicTrackVols trackVolSet) {
725 u8* trackVols = NULL;
727 switch (trackVolSet) {
757static const f32 padding[] = {0.0f};
759static AuResult snd_song_change_track_volume(s32 songName, u32 trackIdx, u32 volume) {
778 return snd_song_change_track_volume(songName, trackIdx, 0);
782 return snd_song_change_track_volume(songName, trackIdx, 0x3F);
786 return snd_song_change_track_volume(songName, trackIdx, 0x7F);
816 *globals->
musicEventQueuePos++ = ((playerID << 0x1C) + ((trackIndex & 0xF) << 0x18) + eventInfo);
void au_bgm_set_proximity_mix(s32 songName, u32 mix)
AuResult au_bgm_dispatch_player_event(SongUpdateEvent *event)
AuResult au_bgm_is_song_playing(s32 songName)
void au_bgm_change_track_volume(BGMPlayer *player, s32 trackIdx, s16 time, u8 volume)
AuResult func_8004DCB8(SongUpdateEvent *update, s32 clearChanged)
AuResult func_8004E0F4(SongUpdateEvent *update)
void au_bgm_set_track_volumes(BGMPlayer *player, u8 *trackVols, s32 mode)
AuResult au_bgm_stop_song(s32 songName)
AuResult func_8004DB4C(SongUpdateEvent *s)
AuResult func_8004DE2C(SongUpdateEvent *update)
void au_bgm_stop_all(void)
AuResult func_80050970(SongUpdateEvent *update)
void au_bgm_set_playback_rate(BGMPlayer *player, f32 rate)
void au_bgm_player_set_detune(BGMPlayer *player, s32 detune)
void au_amb_set_disabled(s32 index, s32 disable)
void au_amb_stop_quick(s32 index)
AuResult au_amb_check_player_index(u32 index)
AuResult au_amb_is_stopped(s32 index)
void au_amb_load_tracks_fade(s32 arg0, s32 arg1)
void au_amb_resume(s32 index, s32 time)
void au_amb_set_volume(s32 index, s32 time, s32 volume)
void au_amb_stop_slow(s32 index, s32 time)
void au_amb_pause(s32 index, s32 time)
AuResult au_amb_start(s32 index, s32 time)
void func_80054CE0(s32 arg0, u32 idx)
void func_80054DA8(u32 bMonoSound)
void au_get_bgm_player_and_file(u32 playerIndex, BGMHeader **outFile, BGMPlayer **outPlayer)
AuResult au_load_song_files(u32 songID, BGMHeader *bgmFile, BGMPlayer *player)
AuResult au_ambient_load(u32 ambSoundID)
s32 func_80054D74(s32 arg0, s32 arg1)
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_set_song_fade(s32 songName, s32 fadeInTime, s32 startVolume, s32 endVolume)
void audio_set_stereo(void)
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)
AuResult func_80055AF0(s32 songName)
AuResult snd_ambient_stop_slow(s32 index, s32 fadeOutTime)
void disable_sounds(void)
void snd_ambient_80055760(s32 index)
AuResult snd_song_set_track_volumes(s32 songName, MusicTrackVols trackVolSet)
void snd_start_sound(s32 soundID, u8 volume, u8 pan)
AuResult au_song_stop(s32 songName)
void bgm_set_proximity_mix_full(s32 songName, s32 mix)
u16 AuAmbiencePlayOnlyIndex
void snd_start_sound_raw(s32 soundID, s16 volume, s16 pitchShift, s32 pan)
void func_80055110(BGMPlayer *player)
AuResult snd_song_set_detune(s32 songName, s32 detune)
AuResult func_80055C64(s32 songName)
AuResult snd_ambient_set_volume(s32 index, s32 time, s32 volume)
AuResult func_80055C2C(s32 songName)
AuResult snd_song_set_playback_rate(s32 songName, f32 rate)
void bgm_flush_music_events(void)
AuResult func_80055C94(s32 songName)
AuResult snd_ambient_play_only(s32 index)
void snd_adjust_sound_with_shift(s32 soundID, u8 volume, u8 pan, s16 pitchShift)
AuResult func_80055B80(s32 songName)
AuResult snd_ambient_mute(s32 index, s32 arg1)
AuResult au_song_start(s32 songName)
AuResult snd_ambient_enable(s32 index)
AuResult snd_ambient_stop_all(s32 time)
AuResult snd_song_set_track_vol_full(s32 songName, s32 trackIdx)
AuResult snd_ambient_resume(s32 index, s32 fadeInTime)
void func_80055050(ALHeap *heap)
AuResult snd_song_clear_track_volumes(s32 songName, MusicTrackVols trackVolSet)
AuResult au_song_load(s32 songID, s32 playerIndex)
s32 PreventBGMPlayerUpdate
AuResult snd_ambient_stop_quick(s32 index)
void bgm_poll_music_events(MusicEventTrigger **musicEvents, s32 *count)
AuResult snd_ambient_pause(s32 index, s32 fadeOutTime)
AuResult au_song_is_playing(s32 songName)
AuResult func_80055BB8(s32 songName, s32 fadeTime)
void bgm_trigger_music_event(s32 playerID, s32 trackIndex, s32 eventInfo)
AuResult snd_set_song_variation_fade(s32 songName, s32 variation, s32 fadeInTime, s32 startVolume, s32 endVolume)
void snd_adjust_sound(s32 soundID, u8 volume, u8 pan)
void func_800561A4(s32 arg0)
AuResult func_80055B28(s32 songName)
AuResult snd_set_song_variation_fade_time(s32 songName, s32 fadeTime, s32 variation)
AuResult au_song_start_variation(s32 songName, s32 variation)
void audio_set_mono(void)
void func_800561C4(s32 arg0)
void func_8005513C(u32 arg0)
void bgm_set_proximity_mix_near(s32 songName, s32 mix)
AuResult snd_ambient_play(s32 index, s32 fadeInTime)
AuResult snd_song_get_playing_info(s32 songName, BGMHeader **outFile, BGMPlayer **outPlayer)
void func_80055068(u32 arg0)
AuResult snd_ambient_is_stopped(s32 index)
void bgm_clear_music_events(void)
void bgm_set_proximity_mix_far(s32 songName, s32 mix)
AuResult snd_set_song_variation(s32 songName, s32 variation)
void func_800561E4(s32 arg0)
AuResult func_80055BF0(s32 songName)
void au_register_callback(AuCallback func, s32 index)
void func_80056D5C(u8 bStereoSound)
@ SND_MANAGER_STATE_DISABLED
@ SND_MANAGER_STATE_ENABLED
MusicEventTrigger * musicEventQueue
SoundManager * gSoundManager
AuGlobals * gSoundGlobals
AuCallback audioThreadCallbacks[2]
struct BGMHeader * dataBGM[2]
MusicEventTrigger * musicEventQueuePos
@ AU_ERROR_NULL_SONG_NAME
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)