summaryrefslogtreecommitdiff
path: root/src/gui/setup_audio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/setup_audio.cpp')
-rw-r--r--src/gui/setup_audio.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/setup_audio.cpp b/src/gui/setup_audio.cpp
index b649bc23d..27fceee92 100644
--- a/src/gui/setup_audio.cpp
+++ b/src/gui/setup_audio.cpp
@@ -39,7 +39,8 @@
class SoundsModel : public NamesModel
{
public:
- SoundsModel()
+ SoundsModel() :
+ NamesModel()
{
mNames.push_back(gettext("(no sound)"));
Theme::fillSoundsList(mNames);
@@ -49,7 +50,10 @@ public:
{ }
};
-Setup_Audio::Setup_Audio()
+Setup_Audio::Setup_Audio() :
+ SetupTabScroll(),
+ mSoundModel(new SoundsModel()),
+ mChannelsList(new SetupItemNames())
{
setName(_("Audio"));
@@ -58,8 +62,6 @@ Setup_Audio::Setup_Audio()
ContainerPlacer place = h.getPlacer(0, 0);
place(0, 0, mScroll, 10, 10);
- mSoundModel = new SoundsModel();
-
new SetupItemLabel(_("Basic settings"), "", this);
new SetupItemCheckBox(_("Enable Audio"), "", "sound", this, "soundEvent");
@@ -82,7 +84,6 @@ Setup_Audio::Setup_Audio()
new SetupItemIntTextField(_("Audio frequency"), "",
"audioFrequency", this, "audioFrequencyEvent", 14000, 192000);
- mChannelsList = new SetupItemNames();
mChannelsList->push_back(_("mono"));
mChannelsList->push_back(_("stereo"));
mChannelsList->push_back(_("surround"));