MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / slrSoundVolumeChange

Method slrSoundVolumeChange

src/Menu/OptionsAudioState.cpp:233–237  ·  view source on GitHub ↗

* Updates the sound volume with the slider. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

231 * @param action Pointer to an action.
232 */
233void OptionsAudioState::slrSoundVolumeChange(Action *)
234{
235 Options::soundVolume = _slrSoundVolume->getValue();
236 _game->setVolume(Options::soundVolume, Options::musicVolume, Options::uiVolume);
237}
238
239/**
240 * Plays a game sound for volume preview.

Callers

nothing calls this directly

Calls 2

setVolumeMethod · 0.80
getValueMethod · 0.45

Tested by

no test coverage detected