1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Sanitize audio.h

This commit is contained in:
Dom Light
2015-11-16 22:39:40 +00:00
parent 62863db42a
commit 3a8b25a0ee
38 changed files with 264 additions and 267 deletions

View File

@@ -552,14 +552,14 @@ static void window_options_mouseup(rct_window *w, int widgetIndex)
case WINDOW_OPTIONS_PAGE_AUDIO:
switch (widgetIndex) {
case WIDX_SOUND_CHECKBOX:
toggle_all_sounds();
audio_toggle_all_sounds();
config_save_default();
window_invalidate(w);
break;
case WIDX_MUSIC_CHECKBOX:
gConfigSound.ride_music = !gConfigSound.ride_music;
if (!gConfigSound.ride_music) {
stop_ride_music();
audio_stop_ride_music();
}
config_save_default();
window_invalidate(w);
@@ -1095,9 +1095,9 @@ static void window_options_dropdown(rct_window *w, int widgetIndex, int dropdown
window_invalidate(w);
}
stop_title_music();
audio_stop_title_music();
if (dropdownIndex != 0)
start_title_music();
audio_start_title_music();
break;
}
break;