MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SndClickBeep

Function SndClickBeep

src/sound.cpp:253–256  ·  view source on GitHub ↗

* Play a beep sound for a click event if enabled in settings. */

Source from the content-addressed store, hash-verified

251 * Play a beep sound for a click event if enabled in settings.
252 */
253void SndClickBeep()
254{
255 if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
256}
257
258/**
259 * Play a beep sound for a confirm event if enabled in settings.

Callers 15

ToolbarFastForwardClickFunction · 0.85
ToolbarSwitchClickFunction · 0.85
OnDropdownSelectMethod · 0.85
HandleButtonClickMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85

Calls 1

SndPlayFxFunction · 0.85

Tested by

no test coverage detected