summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-03-19 00:58:28 (UTC)
committer llornkcor <llornkcor>2002-03-19 00:58:28 (UTC)
commitd9bbf6f090bd5e35bf2ec7782cf77de049634149 (patch) (unidiff)
tree9e3bd25584c24d1850d90fd474ebaf517e946d9a
parent7ac89ca47c72729aad8a5a91c8be6ce9c223ab9c (diff)
downloadopie-d9bbf6f090bd5e35bf2ec7782cf77de049634149.zip
opie-d9bbf6f090bd5e35bf2ec7782cf77de049634149.tar.gz
opie-d9bbf6f090bd5e35bf2ec7782cf77de049634149.tar.bz2
added 3200 samplerate to combo
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sound/sound.pro2
-rw-r--r--noncore/settings/sound/soundsettings.cpp6
-rw-r--r--noncore/settings/sound/soundsettingsbase.ui6
3 files changed, 12 insertions, 2 deletions
diff --git a/noncore/settings/sound/sound.pro b/noncore/settings/sound/sound.pro
index 8b33ff2..fa87b86 100644
--- a/noncore/settings/sound/sound.pro
+++ b/noncore/settings/sound/sound.pro
@@ -6,7 +6,7 @@ SOURCES = soundsettings.cpp main.cpp
6 INTERFACES= soundsettingsbase.ui 6 INTERFACES= soundsettingsbase.ui
7INCLUDEPATH += $(OPIEDIR)/include 7INCLUDEPATH += $(OPIEDIR)/include
8 DEPENDPATH+= ../$(OPIEDIR)/include 8 DEPENDPATH+= ../$(OPIEDIR)/include
9LIBS += -lqpe 9LIBS += -lqpe
10 TARGET = sound 10 TARGET = sound
11 11
12TRANSLATIONS = ../../i18n/pt_BR/sound.ts 12TRANSLATIONS += ../../i18n/pt_BR/sound.ts
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp
index 55f6c99..467f23e 100644
--- a/noncore/settings/sound/soundsettings.cpp
+++ b/noncore/settings/sound/soundsettings.cpp
@@ -41,12 +41,14 @@ SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl )
41 config.setGroup("Record"); 41 config.setGroup("Record");
42 int rate=config.readNumEntry("SampleRate", 11025); 42 int rate=config.readNumEntry("SampleRate", 11025);
43 if(rate == 11025) 43 if(rate == 11025)
44 sampleRate->setCurrentItem(0); 44 sampleRate->setCurrentItem(0);
45 else if(rate == 22050) 45 else if(rate == 22050)
46 sampleRate->setCurrentItem(1); 46 sampleRate->setCurrentItem(1);
47 else if(rate == 32000)
48 sampleRate->setCurrentItem(2);
47 else if(rate==44100) 49 else if(rate==44100)
48 sampleRate->setCurrentItem(2); 50 sampleRate->setCurrentItem(2);
49 51
50 stereoCheckBox->setChecked(config.readNumEntry("Stereo", 0)); 52 stereoCheckBox->setChecked(config.readNumEntry("Stereo", 0));
51 sixteenBitCheckBox->setChecked(config.readNumEntry("SixteenBit", 1)); 53 sixteenBitCheckBox->setChecked(config.readNumEntry("SixteenBit", 1));
52 54
@@ -66,14 +68,16 @@ void SoundSettings::reject()
66 config.setGroup("Record"); 68 config.setGroup("Record");
67 int rate=config.readNumEntry("SampleRate", 11025); 69 int rate=config.readNumEntry("SampleRate", 11025);
68 if(rate == 11025) 70 if(rate == 11025)
69 sampleRate->setCurrentItem(0); 71 sampleRate->setCurrentItem(0);
70 else if(rate == 22050) 72 else if(rate == 22050)
71 sampleRate->setCurrentItem(1); 73 sampleRate->setCurrentItem(1);
72 else if(rate==44100) 74 else if(rate == 32000)
73 sampleRate->setCurrentItem(2); 75 sampleRate->setCurrentItem(2);
76 else if(rate==44100)
77 sampleRate->setCurrentItem(3);
74 stereoCheckBox->setChecked(config.readNumEntry("Stereo", 0)); 78 stereoCheckBox->setChecked(config.readNumEntry("Stereo", 0));
75 sixteenBitCheckBox->setChecked(config.readNumEntry("SixteenBit", 0)); 79 sixteenBitCheckBox->setChecked(config.readNumEntry("SixteenBit", 0));
76 80
77 QDialog::reject(); 81 QDialog::reject();
78} 82}
79 83
diff --git a/noncore/settings/sound/soundsettingsbase.ui b/noncore/settings/sound/soundsettingsbase.ui
index 0351fd8..97bea2d 100644
--- a/noncore/settings/sound/soundsettingsbase.ui
+++ b/noncore/settings/sound/soundsettingsbase.ui
@@ -123,12 +123,18 @@
123 <string>22050</string> 123 <string>22050</string>
124 </property> 124 </property>
125 </item> 125 </item>
126 <item> 126 <item>
127 <property> 127 <property>
128 <name>text</name> 128 <name>text</name>
129 <string>32000</string>
130 </property>
131 </item>
132 <item>
133 <property>
134 <name>text</name>
129 <string>44100</string> 135 <string>44100</string>
130 </property> 136 </property>
131 </item> 137 </item>
132 <property stdset="1"> 138 <property stdset="1">
133 <name>name</name> 139 <name>name</name>
134 <cstring>sampleRate</cstring> 140 <cstring>sampleRate</cstring>