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

Method slrMusicVolumeChange

src/Menu/OptionsAudioState.cpp:223–227  ·  view source on GitHub ↗

* Updates the music volume. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

221 * @param action Pointer to an action.
222 */
223void OptionsAudioState::slrMusicVolumeChange(Action *)
224{
225 Options::musicVolume = _slrMusicVolume->getValue();
226 _game->setVolume(Options::soundVolume, Options::musicVolume, Options::uiVolume);
227}
228
229/**
230 * Updates the sound volume with the slider.

Callers

nothing calls this directly

Calls 2

setVolumeMethod · 0.80
getValueMethod · 0.45

Tested by

no test coverage detected