mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 17:42:29 +01:00
Move memory address documentation to header file
This commit is contained in:
@@ -175,10 +175,6 @@ int audio_play_sound(int soundId, int volume, int pan)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006BD0F8
|
||||
*/
|
||||
void audio_start_title_music()
|
||||
{
|
||||
if (gGameSoundsOff || !(RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & SCREEN_FLAGS_TITLE_DEMO)) {
|
||||
@@ -210,10 +206,6 @@ void audio_start_title_music()
|
||||
gTitleMusicChannel = Mixer_Play_Music(pathId, MIXER_LOOP_INFINITE, true);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006BCA9F
|
||||
*/
|
||||
void audio_stop_ride_music()
|
||||
{
|
||||
for (int i = 0; i < AUDIO_MAX_RIDE_MUSIC; i++) {
|
||||
@@ -228,19 +220,11 @@ void audio_stop_ride_music()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006BD07F
|
||||
*/
|
||||
void audio_stop_crowd_sound()
|
||||
{
|
||||
audio_stop_channel(&gCrowdSoundChannel);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006BD0BD
|
||||
*/
|
||||
void audio_stop_title_music()
|
||||
{
|
||||
audio_stop_channel(&gTitleMusicChannel);
|
||||
@@ -264,10 +248,6 @@ void audio_stop_channel(void **channel)
|
||||
*channel = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006BA8E0
|
||||
*/
|
||||
void audio_init_ride_sounds_and_info()
|
||||
{
|
||||
int deviceNum = 0;
|
||||
@@ -289,10 +269,6 @@ void audio_init_ride_sounds_and_info()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006BA9B5
|
||||
*/
|
||||
void audio_init_ride_sounds(int device)
|
||||
{
|
||||
audio_close();
|
||||
@@ -309,10 +285,6 @@ void audio_init_ride_sounds(int device)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006BAB21
|
||||
*/
|
||||
void audio_close()
|
||||
{
|
||||
audio_stop_crowd_sound();
|
||||
@@ -322,7 +294,6 @@ void audio_close()
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_SOUND_DEVICE, uint32) = -1;
|
||||
}
|
||||
|
||||
/* rct2: 0x006BAB8A */
|
||||
void audio_toggle_all_sounds(){
|
||||
gConfigSound.sound = !gConfigSound.sound;
|
||||
if (gConfigSound.sound)
|
||||
@@ -333,10 +304,6 @@ void audio_toggle_all_sounds(){
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006BABB4
|
||||
*/
|
||||
void audio_pause_sounds()
|
||||
{
|
||||
gGameSoundsOff = true;
|
||||
@@ -346,19 +313,11 @@ void audio_pause_sounds()
|
||||
audio_stop_rain_sound();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006BABD8
|
||||
*/
|
||||
void audio_unpause_sounds()
|
||||
{
|
||||
gGameSoundsOff = false;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006BABDF
|
||||
*/
|
||||
void audio_stop_vehicle_sounds()
|
||||
{
|
||||
if (gOpenRCT2Headless || RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_SOUND_DEVICE, sint32) == -1)
|
||||
|
||||
@@ -167,6 +167,7 @@ extern rct_vehicle_sound_params *gVehicleSoundParamsListEnd;
|
||||
|
||||
/**
|
||||
* Deregisters the audio device.
|
||||
* rct2: 0x006BAB21
|
||||
*/
|
||||
void audio_close();
|
||||
/*
|
||||
@@ -175,14 +176,17 @@ void audio_close();
|
||||
void audio_init();
|
||||
/**
|
||||
* Loads the ride sounds and info.
|
||||
* rct2: 0x006BA8E0
|
||||
*/
|
||||
void audio_init_ride_sounds_and_info();
|
||||
/**
|
||||
Loads the ride sounds.
|
||||
* Loads the ride sounds.
|
||||
* rct2: 0x006BA9B5
|
||||
*/
|
||||
void audio_init_ride_sounds(int device);
|
||||
/**
|
||||
* Temporarily stops playing sounds until audio_unpause_sounds() is called.
|
||||
* rct2: 0x006BABB4
|
||||
*/
|
||||
void audio_pause_sounds();
|
||||
/**
|
||||
@@ -226,10 +230,12 @@ void audio_populate_devices();
|
||||
void audio_quit();
|
||||
/**
|
||||
* Starts playing the title music.
|
||||
* rct2: 0x006BD0F8
|
||||
*/
|
||||
void audio_start_title_music();
|
||||
/**
|
||||
* Stops the crowd sound effect from playing.
|
||||
* rct2: 0x006BD07F
|
||||
*/
|
||||
void audio_stop_crowd_sound();
|
||||
/**
|
||||
@@ -238,22 +244,27 @@ void audio_stop_crowd_sound();
|
||||
void audio_stop_rain_sound();
|
||||
/**
|
||||
* Stops ride music from playing.
|
||||
* rct2: 0x006BCA9F
|
||||
*/
|
||||
void audio_stop_ride_music();
|
||||
/**
|
||||
* Stops the title music from playing.
|
||||
* rct2: 0x006BD0BD
|
||||
*/
|
||||
void audio_stop_title_music();
|
||||
/**
|
||||
* Stops vehicle sounds from playing.
|
||||
* rct2: 0x006BABDF
|
||||
*/
|
||||
void audio_stop_vehicle_sounds();
|
||||
/**
|
||||
* Toggles whether all sounds should be played.
|
||||
* rct2: 0x006BAB8A
|
||||
*/
|
||||
void audio_toggle_all_sounds();
|
||||
/**
|
||||
* Resumes playing sounds that had been paused by a call to audio_pause_sounds().
|
||||
* rct2: 0x006BABD8
|
||||
*/
|
||||
void audio_unpause_sounds();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user