From d83a092ae6271c78a66e1ef3de6e6f6eb40a566e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 21 Apr 2012 03:26:29 +0300 Subject: Add audio frequency and audio channels settings. --- src/gui/setup_audio.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/gui/setup_audio.cpp') diff --git a/src/gui/setup_audio.cpp b/src/gui/setup_audio.cpp index 69ca4e759..c5efa63ad 100644 --- a/src/gui/setup_audio.cpp +++ b/src/gui/setup_audio.cpp @@ -31,7 +31,6 @@ #include "gui/widgets/layouthelper.h" #include "gui/widgets/namesmodel.h" #include "gui/widgets/scrollarea.h" -#include "gui/widgets/setupitem.h" #include "utils/gettext.h" @@ -80,6 +79,18 @@ Setup_Audio::Setup_Audio() new SetupItemSlider(_("Music volume"), "", "musicVolume", this, "musicVolumeEvent", 0, sound.getMaxVolume(), 150, true); + new SetupItemIntTextField(_("Audio frequency"), "", + "audioFrequency", this, "audioFrequencyEvent", 14000, 192000); + + mChannelsList = new SetupItemNames(); + mChannelsList->push_back(_("mono")); + mChannelsList->push_back(_("stereo")); + mChannelsList->push_back(_("surround")); + mChannelsList->push_back(_("surround+center+lfe")); + new SetupItemSlider2(_("Audio channels"), "", "audioChannels", this, + "audioChannels", 1, 4, mChannelsList); + + new SetupItemLabel(_("Sound effects"), "", this); new SetupItemSound(_("Information dialog sound"), "", @@ -121,6 +132,9 @@ Setup_Audio::~Setup_Audio() { delete mSoundModel; mSoundModel = nullptr; + + delete mChannelsList; + mChannelsList = nullptr; } void Setup_Audio::apply() -- cgit v1.2.3-60-g2f50