mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
match and document audiosfx.c (#550)
* match func_80004668 and adjust types * match _handleEvent * documentation WIP * wip * document audiosfx.c * fix build * a few type renames * update score * remove comment * fix type * fix typo
This commit is contained in:
@@ -93,30 +93,30 @@ __amDmaNew = 0x80003008;
|
||||
__clearAudioDMA = 0x80003040;
|
||||
|
||||
//audiosfx.c .text
|
||||
set_sfx_volume_slider = 0x80003160;
|
||||
get_sfx_volume_slider = 0x8000317C;
|
||||
set_sound_channel_count = 0x8000318C;
|
||||
alSndPNew = 0x800031C0;
|
||||
_sndpVoiceHandler = 0x800033C8;
|
||||
_handleEvent = 0x80003470;
|
||||
func_8000410C = 0x8000410C;
|
||||
func_8000418C = 0x8000418C;
|
||||
_removeEvents = 0x800041FC;
|
||||
func_800042CC = 0x800042CC;
|
||||
func_80004384 = 0x80004384;
|
||||
func_80004520 = 0x80004520;
|
||||
func_80004604 = 0x80004604;
|
||||
func_8000461C = 0x8000461C;
|
||||
func_80004638 = 0x80004638;
|
||||
func_80004668 = 0x80004668;
|
||||
sound_stop = 0x8000488C;
|
||||
func_800048D8 = 0x800048D8;
|
||||
func_80004998 = 0x80004998;
|
||||
func_800049B8 = 0x800049B8;
|
||||
sound_stop_all = 0x800049D8;
|
||||
sound_event_update = 0x800049F8;
|
||||
get_sound_channel_volume = 0x80004A3C;
|
||||
set_sound_channel_volume = 0x80004A60;
|
||||
sndp_set_global_volume = 0x80003160;
|
||||
sndp_get_global_volume = 0x8000317C;
|
||||
sndp_set_active_sound_limit = 0x8000318C;
|
||||
sndp_init_player = 0x800031C0;
|
||||
sndp_voice_handler = 0x800033C8;
|
||||
sndp_handle_event = 0x80003470;
|
||||
sndp_end = 0x8000410C;
|
||||
sndp_apply_pitch_slide = 0x8000418C;
|
||||
sndp_remove_events = 0x800041FC;
|
||||
sndp_get_state_counts = 0x800042CC;
|
||||
sndp_allocate = 0x80004384;
|
||||
sndp_deallocate = 0x80004520;
|
||||
sndp_set_priority = 0x80004604;
|
||||
sndp_get_state = 0x8000461C;
|
||||
sndp_play = 0x80004638;
|
||||
sndp_play_with_priority = 0x80004668;
|
||||
sndp_stop = 0x8000488C;
|
||||
sndp_stop_with_flags = 0x800048D8;
|
||||
sndp_stop_all = 0x80004998;
|
||||
sndp_stop_all_retrigger = 0x800049B8;
|
||||
sndp_stop_all_looped = 0x800049D8;
|
||||
sndp_set_param = 0x800049F8;
|
||||
sndp_get_group_volume = 0x80004A3C;
|
||||
sndp_set_group_volume = 0x80004A60;
|
||||
|
||||
// audio_vehicle.c .text
|
||||
func_80004B40 = 0x80004B40;
|
||||
@@ -2186,10 +2186,10 @@ gFunc80019808Checksum = 0x800DE020;
|
||||
gFunc80019808Length = 0x800DE024;
|
||||
|
||||
// audiosfx.c .data
|
||||
D_800DC6B0 = 0x800DE040; // size:0xC
|
||||
gAlSndPlayerPtr = 0x800DE04C;
|
||||
sfxVolumeSlider = 0x800DE050;
|
||||
D_800DC6C4 = 0x800DE054;
|
||||
gSoundStateLists = 0x800DE040; // size:0xC
|
||||
gSoundPlayerPtr = 0x800DE04C;
|
||||
gSoundGlobalVolume = 0x800DE050;
|
||||
gNumActiveSounds = 0x800DE054;
|
||||
|
||||
// audio_vehicle.c .data
|
||||
gVehicleSounds = 0x800DE060;
|
||||
@@ -3547,8 +3547,8 @@ audDMAMessageQ = 0x8011B560;
|
||||
audDMAMessageBuf = 0x8011B578;
|
||||
|
||||
// audiosfx .bss
|
||||
gAlSndPlayer = 0x8011B640;
|
||||
gSoundChannelVolume = 0x8011B698;
|
||||
gSoundPlayer = 0x8011B640;
|
||||
gSoundGroupVolume = 0x8011B698;
|
||||
|
||||
// audio_vehicle .bss
|
||||
D_80119C30 = 0x8011B6A0;
|
||||
|
||||
@@ -93,30 +93,30 @@ __amDmaNew = 0x80003008;
|
||||
__clearAudioDMA = 0x80003040;
|
||||
|
||||
//audiosfx.c .text
|
||||
set_sfx_volume_slider = 0x80003160;
|
||||
get_sfx_volume_slider = 0x8000317C;
|
||||
set_sound_channel_count = 0x8000318C;
|
||||
alSndPNew = 0x800031C0;
|
||||
_sndpVoiceHandler = 0x800033C8;
|
||||
_handleEvent = 0x80003470;
|
||||
func_8000410C = 0x8000410C;
|
||||
func_8000418C = 0x8000418C;
|
||||
_removeEvents = 0x800041FC;
|
||||
func_800042CC = 0x800042CC;
|
||||
func_80004384 = 0x80004384;
|
||||
func_80004520 = 0x80004520;
|
||||
func_80004604 = 0x80004604;
|
||||
func_8000461C = 0x8000461C;
|
||||
func_80004638 = 0x80004638;
|
||||
func_80004668 = 0x80004668;
|
||||
sound_stop = 0x8000488C;
|
||||
func_800048D8 = 0x800048D8;
|
||||
func_80004998 = 0x80004998;
|
||||
func_800049B8 = 0x800049B8;
|
||||
sound_stop_all = 0x800049D8;
|
||||
sound_event_update = 0x800049F8;
|
||||
get_sound_channel_volume = 0x80004A3C;
|
||||
set_sound_channel_volume = 0x80004A60;
|
||||
sndp_set_global_volume = 0x80003160;
|
||||
sndp_get_global_volume = 0x8000317C;
|
||||
sndp_set_active_sound_limit = 0x8000318C;
|
||||
sndp_init_player = 0x800031C0;
|
||||
sndp_voice_handler = 0x800033C8;
|
||||
sndp_handle_event = 0x80003470;
|
||||
sndp_end = 0x8000410C;
|
||||
sndp_apply_pitch_slide = 0x8000418C;
|
||||
sndp_remove_events = 0x800041FC;
|
||||
sndp_get_state_counts = 0x800042CC;
|
||||
sndp_allocate = 0x80004384;
|
||||
sndp_deallocate = 0x80004520;
|
||||
sndp_set_priority = 0x80004604;
|
||||
sndp_get_state = 0x8000461C;
|
||||
sndp_play = 0x80004638;
|
||||
sndp_play_with_priority = 0x80004668;
|
||||
sndp_stop = 0x8000488C;
|
||||
sndp_stop_with_flags = 0x800048D8;
|
||||
sndp_stop_all = 0x80004998;
|
||||
sndp_stop_all_retrigger = 0x800049B8;
|
||||
sndp_stop_all_looped = 0x800049D8;
|
||||
sndp_set_param = 0x800049F8;
|
||||
sndp_get_group_volume = 0x80004A3C;
|
||||
sndp_set_group_volume = 0x80004A60;
|
||||
|
||||
// audio_vehicle.c .text
|
||||
func_80004B40 = 0x80004B40;
|
||||
@@ -2092,10 +2092,10 @@ curAcmdList = 0x800DC718;
|
||||
gAntiPiracyAudioFreq = 0x800DC71C;
|
||||
gFunc80019808Checksum = 0x800DC720;
|
||||
gFunc80019808Length = 0x800DC724;
|
||||
D_800DC6B0 = 0x800DC740; // size:0xC
|
||||
gAlSndPlayerPtr = 0x800DC74C;
|
||||
sfxVolumeSlider = 0x800DC750;
|
||||
D_800DC6C4 = 0x800DC754;
|
||||
gSoundStateLists = 0x800DC740; // size:0xC
|
||||
gSoundPlayerPtr = 0x800DC74C;
|
||||
gSoundGlobalVolume = 0x800DC750;
|
||||
gNumActiveSounds = 0x800DC754;
|
||||
gVehicleSounds = 0x800DC760;
|
||||
D_800DC6D4 = 0x800DC764;
|
||||
D_800DC6D8 = 0x800DC768;
|
||||
@@ -3298,8 +3298,8 @@ gAntiPiracyCRCStart = 0x801196C8;
|
||||
audDMAIOMesgBuf = 0x801196D0;
|
||||
audDMAMessageQ = 0x80119B80;
|
||||
audDMAMessageBuf = 0x80119B98;
|
||||
gAlSndPlayer = 0x80119C60;
|
||||
gSoundChannelVolume = 0x80119CB8;
|
||||
gSoundPlayer = 0x80119C60;
|
||||
gSoundGroupVolume = 0x80119CB8;
|
||||
D_80119C30 = 0x80119CC0;
|
||||
gRacerSound = 0x80119CC8;
|
||||
gSoundRacerObj = 0x80119CCC;
|
||||
|
||||
@@ -93,30 +93,30 @@ __amDmaNew = 0x80003008;
|
||||
__clearAudioDMA = 0x80003040;
|
||||
|
||||
//audiosfx.c .text
|
||||
set_sfx_volume_slider = 0x80003160;
|
||||
get_sfx_volume_slider = 0x8000317C;
|
||||
set_sound_channel_count = 0x8000318C;
|
||||
alSndPNew = 0x800031C0;
|
||||
_sndpVoiceHandler = 0x800033C8;
|
||||
_handleEvent = 0x80003470;
|
||||
func_8000410C = 0x8000410C;
|
||||
func_8000418C = 0x8000418C;
|
||||
_removeEvents = 0x800041FC;
|
||||
func_800042CC = 0x800042CC;
|
||||
func_80004384 = 0x80004384;
|
||||
func_80004520 = 0x80004520;
|
||||
func_80004604 = 0x80004604;
|
||||
func_8000461C = 0x8000461C;
|
||||
func_80004638 = 0x80004638;
|
||||
func_80004668 = 0x80004668;
|
||||
sound_stop = 0x8000488C;
|
||||
func_800048D8 = 0x800048D8;
|
||||
func_80004998 = 0x80004998;
|
||||
func_800049B8 = 0x800049B8;
|
||||
sound_stop_all = 0x800049D8;
|
||||
sound_event_update = 0x800049F8;
|
||||
get_sound_channel_volume = 0x80004A3C;
|
||||
set_sound_channel_volume = 0x80004A60;
|
||||
sndp_set_global_volume = 0x80003160;
|
||||
sndp_get_global_volume = 0x8000317C;
|
||||
sndp_set_active_sound_limit = 0x8000318C;
|
||||
sndp_init_player = 0x800031C0;
|
||||
sndp_voice_handler = 0x800033C8;
|
||||
sndp_handle_event = 0x80003470;
|
||||
sndp_end = 0x8000410C;
|
||||
sndp_apply_pitch_slide = 0x8000418C;
|
||||
sndp_remove_events = 0x800041FC;
|
||||
sndp_get_state_counts = 0x800042CC;
|
||||
sndp_allocate = 0x80004384;
|
||||
sndp_deallocate = 0x80004520;
|
||||
sndp_set_priority = 0x80004604;
|
||||
sndp_get_state = 0x8000461C;
|
||||
sndp_play = 0x80004638;
|
||||
sndp_play_with_priority = 0x80004668;
|
||||
sndp_stop = 0x8000488C;
|
||||
sndp_stop_with_flags = 0x800048D8;
|
||||
sndp_stop_all = 0x80004998;
|
||||
sndp_stop_all_retrigger = 0x800049B8;
|
||||
sndp_stop_all_looped = 0x800049D8;
|
||||
sndp_set_param = 0x800049F8;
|
||||
sndp_get_group_volume = 0x80004A3C;
|
||||
sndp_set_group_volume = 0x80004A60;
|
||||
|
||||
// audio_vehicle.c .text
|
||||
func_80004B40 = 0x80004B40;
|
||||
@@ -2019,10 +2019,10 @@ curAcmdList = 0x800DCC88;
|
||||
gAntiPiracyAudioFreq = 0x800DCC8C;
|
||||
gFunc80019808Checksum = 0x800DCC90;
|
||||
gFunc80019808Length = 0x800DCC94;
|
||||
D_800DC6B0 = 0x800DCCB0; // size:0xC
|
||||
gAlSndPlayerPtr = 0x800DCCBC;
|
||||
sfxVolumeSlider = 0x800DCCC0;
|
||||
D_800DC6C4 = 0x800DCCC4;
|
||||
gSoundStateLists = 0x800DCCB0; // size:0xC
|
||||
gSoundPlayerPtr = 0x800DCCBC;
|
||||
gSoundGlobalVolume = 0x800DCCC0;
|
||||
gNumActiveSounds = 0x800DCCC4;
|
||||
gVehicleSounds = 0x800DCCD0;
|
||||
D_800DC6D4 = 0x800DCCD4;
|
||||
D_800DC6D8 = 0x800DCCD8;
|
||||
@@ -3228,8 +3228,8 @@ gAntiPiracyCRCStart = 0x80119C48;
|
||||
audDMAIOMesgBuf = 0x80119C50;
|
||||
audDMAMessageQ = 0x8011A100;
|
||||
audDMAMessageBuf = 0x8011A118;
|
||||
gAlSndPlayer = 0x8011A1E0;
|
||||
gSoundChannelVolume = 0x8011A238;
|
||||
gSoundPlayer = 0x8011A1E0;
|
||||
gSoundGroupVolume = 0x8011A238;
|
||||
D_80119C30 = 0x8011A240;
|
||||
gRacerSound = 0x8011A248;
|
||||
gSoundRacerObj = 0x8011A24C;
|
||||
|
||||
@@ -93,30 +93,30 @@ __amDmaNew = 0x80003008;
|
||||
__clearAudioDMA = 0x80003040;
|
||||
|
||||
//audiosfx.c .text
|
||||
set_sfx_volume_slider = 0x80003160;
|
||||
get_sfx_volume_slider = 0x8000317C;
|
||||
set_sound_channel_count = 0x8000318C;
|
||||
alSndPNew = 0x800031C0;
|
||||
_sndpVoiceHandler = 0x800033C8;
|
||||
_handleEvent = 0x80003470;
|
||||
func_8000410C = 0x8000410C;
|
||||
func_8000418C = 0x8000418C;
|
||||
_removeEvents = 0x800041FC;
|
||||
func_800042CC = 0x800042CC;
|
||||
func_80004384 = 0x80004384;
|
||||
func_80004520 = 0x80004520;
|
||||
func_80004604 = 0x80004604;
|
||||
func_8000461C = 0x8000461C;
|
||||
func_80004638 = 0x80004638;
|
||||
func_80004668 = 0x80004668;
|
||||
sound_stop = 0x8000488C;
|
||||
func_800048D8 = 0x800048D8;
|
||||
func_80004998 = 0x80004998;
|
||||
func_800049B8 = 0x800049B8;
|
||||
sound_stop_all = 0x800049D8;
|
||||
sound_event_update = 0x800049F8;
|
||||
get_sound_channel_volume = 0x80004A3C;
|
||||
set_sound_channel_volume = 0x80004A60;
|
||||
sndp_set_global_volume = 0x80003160;
|
||||
sndp_get_global_volume = 0x8000317C;
|
||||
sndp_set_active_sound_limit = 0x8000318C;
|
||||
sndp_init_player = 0x800031C0;
|
||||
sndp_voice_handler = 0x800033C8;
|
||||
sndp_handle_event = 0x80003470;
|
||||
sndp_end = 0x8000410C;
|
||||
sndp_apply_pitch_slide = 0x8000418C;
|
||||
sndp_remove_events = 0x800041FC;
|
||||
sndp_get_state_counts = 0x800042CC;
|
||||
sndp_allocate = 0x80004384;
|
||||
sndp_deallocate = 0x80004520;
|
||||
sndp_set_priority = 0x80004604;
|
||||
sndp_get_state = 0x8000461C;
|
||||
sndp_play = 0x80004638;
|
||||
sndp_play_with_priority = 0x80004668;
|
||||
sndp_stop = 0x8000488C;
|
||||
sndp_stop_with_flags = 0x800048D8;
|
||||
sndp_stop_all = 0x80004998;
|
||||
sndp_stop_all_retrigger = 0x800049B8;
|
||||
sndp_stop_all_looped = 0x800049D8;
|
||||
sndp_set_param = 0x800049F8;
|
||||
sndp_get_group_volume = 0x80004A3C;
|
||||
sndp_set_group_volume = 0x80004A60;
|
||||
|
||||
// audio_vehicle.c .text
|
||||
func_80004B40 = 0x80004B40;
|
||||
@@ -2181,10 +2181,10 @@ gFunc80019808Checksum = 0x800DC690;
|
||||
gFunc80019808Length = 0x800DC694;
|
||||
|
||||
// audiosfx.c .data
|
||||
D_800DC6B0 = 0x800DC6B0; // size:0xC
|
||||
gAlSndPlayerPtr = 0x800DC6BC;
|
||||
sfxVolumeSlider = 0x800DC6C0;
|
||||
D_800DC6C4 = 0x800DC6C4;
|
||||
gSoundStateLists = 0x800DC6B0; // size:0xC
|
||||
gSoundPlayerPtr = 0x800DC6BC;
|
||||
gSoundGlobalVolume = 0x800DC6C0;
|
||||
gNumActiveSounds = 0x800DC6C4;
|
||||
|
||||
// audio_vehicle.c .data
|
||||
gVehicleSounds = 0x800DC6D0;
|
||||
@@ -3669,8 +3669,8 @@ audDMAMessageQ = 0x80119AF0;
|
||||
audDMAMessageBuf = 0x80119B08;
|
||||
|
||||
// audiosfx .bss
|
||||
gAlSndPlayer = 0x80119BD0;
|
||||
gSoundChannelVolume = 0x80119C28;
|
||||
gSoundPlayer = 0x80119BD0;
|
||||
gSoundGroupVolume = 0x80119C28;
|
||||
|
||||
// audio_vehicle .bss
|
||||
D_80119C30 = 0x80119C30;
|
||||
|
||||
@@ -93,30 +93,30 @@ __amDmaNew = 0x80003008;
|
||||
__clearAudioDMA = 0x80003040;
|
||||
|
||||
//audiosfx.c .text
|
||||
set_sfx_volume_slider = 0x80003160;
|
||||
get_sfx_volume_slider = 0x8000317C;
|
||||
set_sound_channel_count = 0x8000318C;
|
||||
alSndPNew = 0x800031C0;
|
||||
_sndpVoiceHandler = 0x800033C8;
|
||||
_handleEvent = 0x80003470;
|
||||
func_8000410C = 0x8000410C;
|
||||
func_8000418C = 0x8000418C;
|
||||
_removeEvents = 0x800041FC;
|
||||
func_800042CC = 0x800042CC;
|
||||
func_80004384 = 0x80004384;
|
||||
func_80004520 = 0x80004520;
|
||||
func_80004604 = 0x80004604;
|
||||
func_8000461C = 0x8000461C;
|
||||
func_80004638 = 0x80004638;
|
||||
func_80004668 = 0x80004668;
|
||||
sound_stop = 0x8000488C;
|
||||
func_800048D8 = 0x800048D8;
|
||||
func_80004998 = 0x80004998;
|
||||
func_800049B8 = 0x800049B8;
|
||||
sound_stop_all = 0x800049D8;
|
||||
sound_event_update = 0x800049F8;
|
||||
get_sound_channel_volume = 0x80004A3C;
|
||||
set_sound_channel_volume = 0x80004A60;
|
||||
sndp_set_global_volume = 0x80003160;
|
||||
sndp_get_global_volume = 0x8000317C;
|
||||
sndp_set_active_sound_limit = 0x8000318C;
|
||||
sndp_init_player = 0x800031C0;
|
||||
sndp_voice_handler = 0x800033C8;
|
||||
sndp_handle_event = 0x80003470;
|
||||
sndp_end = 0x8000410C;
|
||||
sndp_apply_pitch_slide = 0x8000418C;
|
||||
sndp_remove_events = 0x800041FC;
|
||||
sndp_get_state_counts = 0x800042CC;
|
||||
sndp_allocate = 0x80004384;
|
||||
sndp_deallocate = 0x80004520;
|
||||
sndp_set_priority = 0x80004604;
|
||||
sndp_get_state = 0x8000461C;
|
||||
sndp_play = 0x80004638;
|
||||
sndp_play_with_priority = 0x80004668;
|
||||
sndp_stop = 0x8000488C;
|
||||
sndp_stop_with_flags = 0x800048D8;
|
||||
sndp_stop_all = 0x80004998;
|
||||
sndp_stop_all_retrigger = 0x800049B8;
|
||||
sndp_stop_all_looped = 0x800049D8;
|
||||
sndp_set_param = 0x800049F8;
|
||||
sndp_get_group_volume = 0x80004A3C;
|
||||
sndp_set_group_volume = 0x80004A60;
|
||||
|
||||
// audio_vehicle.c .text
|
||||
func_80004B40 = 0x80004B40;
|
||||
@@ -2016,10 +2016,10 @@ curAcmdList = 0x800DCBF8;
|
||||
gAntiPiracyAudioFreq = 0x800DCBFC;
|
||||
gFunc80019808Checksum = 0x800DCC00;
|
||||
gFunc80019808Length = 0x800DCC04;
|
||||
D_800DC6B0 = 0x800DCC20; // size:0xC
|
||||
gAlSndPlayerPtr = 0x800DCC2C;
|
||||
sfxVolumeSlider = 0x800DCC30;
|
||||
D_800DC6C4 = 0x800DCC34;
|
||||
gSoundStateLists = 0x800DCC20; // size:0xC
|
||||
gSoundPlayerPtr = 0x800DCC2C;
|
||||
gSoundGlobalVolume = 0x800DCC30;
|
||||
gNumActiveSounds = 0x800DCC34;
|
||||
gVehicleSounds = 0x800DCC40;
|
||||
D_800DC6D4 = 0x800DCC44;
|
||||
D_800DC6D8 = 0x800DCC48;
|
||||
@@ -3224,8 +3224,8 @@ gAntiPiracyCRCStart = 0x80119BB8;
|
||||
audDMAIOMesgBuf = 0x80119BC0;
|
||||
audDMAMessageQ = 0x8011A070;
|
||||
audDMAMessageBuf = 0x8011A088;
|
||||
gAlSndPlayer = 0x8011A150;
|
||||
gSoundChannelVolume = 0x8011A1A8;
|
||||
gSoundPlayer = 0x8011A150;
|
||||
gSoundGroupVolume = 0x8011A1A8;
|
||||
D_80119C30 = 0x8011A1B0;
|
||||
gRacerSound = 0x8011A1B8;
|
||||
gSoundRacerObj = 0x8011A1BC;
|
||||
|
||||
Reference in New Issue
Block a user