OpenTTD Source 20241224-master-gf74b0cf984
|
Functions related to sound. More...
Go to the source code of this file.
Functions | |
void | ChangeSoundSet (int index) |
Change the configured sound set and reset sounds. | |
void | SndPlayTileFx (SoundID sound, TileIndex tile) |
void | SndPlayVehicleFx (SoundID sound, const Vehicle *v) |
void | SndPlayFx (SoundID sound) |
void | SndCopyToPool () |
Functions related to sound.
Definition in file sound_func.h.
void ChangeSoundSet | ( | int | index | ) |
Change the configured sound set and reset sounds.
index | Index of sound set to switch to. |
Definition at line 169 of file sound.cpp.
References BaseMedia< SoundsSet >::GetIndexOfUsedSet(), BaseMedia< SoundsSet >::GetSet(), SoundEntry::grf_container_ver, BaseSounds::ini_set, InvalidateWindowData(), MxCloseAllChannels(), ORIGINAL_SAMPLE_COUNT, BaseMedia< SoundsSet >::SetSet(), WC_GAME_OPTIONS, and WN_GAME_OPTIONS_GAME_OPTIONS.
Referenced by GameOptionsWindow::OnDropdownSelect().