OpenTTD Source  20240915-master-g3784a3d3d6
sound_func.h File Reference
#include "sound_type.h"
#include "vehicle_type.h"
#include "tile_type.h"

Go to the source code of this file.

Functions

void ChangeSoundSet (int index)
 Change the configured sound set and reset sounds. More...
 
void SndPlayTileFx (SoundID sound, TileIndex tile)
 
void SndPlayVehicleFx (SoundID sound, const Vehicle *v)
 
void SndPlayFx (SoundID sound)
 
void SndCopyToPool ()
 

Detailed Description

Functions related to sound.

Definition in file sound_func.h.

Function Documentation

◆ ChangeSoundSet()

void ChangeSoundSet ( int  index)

Change the configured sound set and reset sounds.

Parameters
indexIndex of sound set to switch to.

Definition at line 241 of file sound.cpp.

References BaseMedia< SoundsSet >::GetIndexOfUsedSet(), BaseMedia< SoundsSet >::GetSet(), BaseSounds::ini_set, MxCloseAllChannels(), and BaseMedia< SoundsSet >::SetSet().