summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/setup_audio.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-01 13:03:27 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-01 13:03:27 +0300
commit1b2001d45ea6ee99490d4b1c374b1a03d73bbc86 (patch)
tree1677f727de2185b8abd56f3917f2a759d26fb3f8 /src/gui/widgets/tabs/setup_audio.cpp
parentec9116cd7f52e61afc4267b21e35325f4e7fc705 (diff)
downloadmanaplus-1b2001d45ea6ee99490d4b1c374b1a03d73bbc86.tar.gz
manaplus-1b2001d45ea6ee99490d4b1c374b1a03d73bbc86.tar.bz2
manaplus-1b2001d45ea6ee99490d4b1c374b1a03d73bbc86.tar.xz
manaplus-1b2001d45ea6ee99490d4b1c374b1a03d73bbc86.zip
Add strong typed bool enum on the fly.
Diffstat (limited to 'src/gui/widgets/tabs/setup_audio.cpp')
-rw-r--r--src/gui/widgets/tabs/setup_audio.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/widgets/tabs/setup_audio.cpp b/src/gui/widgets/tabs/setup_audio.cpp
index 32445f1c6..0aa824813 100644
--- a/src/gui/widgets/tabs/setup_audio.cpp
+++ b/src/gui/widgets/tabs/setup_audio.cpp
@@ -73,13 +73,15 @@ Setup_Audio::Setup_Audio(const Widget2 *const widget) :
// TRANSLATORS: settings option
new SetupItemSlider(_("Sfx volume"), "", "sfxVolume",
this, "sfxVolumeEvent", 0, soundManager.getMaxVolume(), 1,
- 150, true,
+ 150,
+ OnTheFly_true,
MainConfig_true);
// TRANSLATORS: settings option
new SetupItemSlider(_("Music volume"), "", "musicVolume",
this, "musicVolumeEvent", 0, soundManager.getMaxVolume(), 1,
- 150, true,
+ 150,
+ OnTheFly_true,
MainConfig_true);
// TRANSLATORS: settings option
@@ -100,7 +102,8 @@ Setup_Audio::Setup_Audio(const Widget2 *const widget) :
mChannelsList->push_back(_("surround+center+lfe"));
// TRANSLATORS: settings option
new SetupItemSlider2(_("Audio channels"), "", "audioChannels", this,
- "audioChannels", 1, 4, 1, mChannelsList, false,
+ "audioChannels", 1, 4, 1, mChannelsList,
+ OnTheFly_false,
MainConfig_true,
false);