OpenTTD Source 20260531-master-g0e951f3528
sound_func.h File Reference

Functions related to sound. More...

#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.
void SndPlayTileFx (SoundID sound, TileIndex tile)
void SndPlayVehicleFx (SoundID sound, const Vehicle *v)
void SndPlayFx (SoundID sound)
void SndCopyToPool ()
void SndClickBeep ()
 Play a beep sound for a click event if enabled in settings.
void SndConfirmBeep ()
 Play a beep sound for a confirm event if enabled in settings.

Detailed Description

Functions related to sound.

Definition in file sound_func.h.

Function Documentation

◆ ChangeSoundSet()

void ChangeSoundSet ( int index)

◆ SndClickBeep()

◆ SndConfirmBeep()

void SndConfirmBeep ( )

Play a beep sound for a confirm event if enabled in settings.

Definition at line 262 of file sound.cpp.

References _settings_client, and SND_15_BEEP.

Referenced by BuildTreesWindow::OnClick(), and BuildTreesWindow::UpdateMode().

◆ SndCopyToPool()

void SndCopyToPool ( )

Definition at line 154 of file sound.cpp.

◆ SndPlayFx()

void SndPlayFx ( SoundID sound)

Definition at line 246 of file sound.cpp.

◆ SndPlayTileFx()

void SndPlayTileFx ( SoundID sound,
TileIndex tile )

Definition at line 226 of file sound.cpp.

◆ SndPlayVehicleFx()

void SndPlayVehicleFx ( SoundID sound,
const Vehicle * v )

Definition at line 238 of file sound.cpp.