* Updates the sound volume with the slider. * @param action Pointer to an action. */
| 231 | * @param action Pointer to an action. |
| 232 | */ |
| 233 | void 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. |