MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / ClO_SetSounds

Function ClO_SetSounds

src/MenuOptions.c:572–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570
571static cc_bool ClO_GetSounds(void) { return Audio_SoundsVolume > 0; }
572static void ClO_SetSounds(cc_bool v) {
573 Audio_SetSounds(v ? 100 : 0);
574 Options_SetInt(OPT_SOUND_VOLUME, Audio_SoundsVolume);
575}
576
577static cc_bool ClO_GetShowFPS(void) { return Gui.ShowFPS; }
578static void ClO_SetShowFPS(cc_bool v) {

Callers

nothing calls this directly

Calls 2

Audio_SetSoundsFunction · 0.85
Options_SetIntFunction · 0.85

Tested by

no test coverage detected