summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-06-22 20:32:19 (UTC)
committer llornkcor <llornkcor>2002-06-22 20:32:19 (UTC)
commit383df9711110be29b1b50e568672bb88626fee8b (patch) (unidiff)
treec5945b942a498c4281703da8ebcf6a6dc317bda6
parenta15b6b4a548a62cf3971eda7442d7e68c20c5374 (diff)
downloadopie-383df9711110be29b1b50e568672bb88626fee8b.zip
opie-383df9711110be29b1b50e568672bb88626fee8b.tar.gz
opie-383df9711110be29b1b50e568672bb88626fee8b.tar.bz2
hide stereo combo for mono vmemo devices
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/sound/soundsettings.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp
index f417b79..75a707b 100644
--- a/noncore/settings/sound/soundsettings.cpp
+++ b/noncore/settings/sound/soundsettings.cpp
@@ -31,6 +31,12 @@
31#include <qlineedit.h> 31#include <qlineedit.h>
32#include <qcombobox.h> 32#include <qcombobox.h>
33 33
34#include <sys/utsname.h>
35#include <sys/time.h>
36#include <sys/types.h>
37#include <unistd.h>
38#include <stdio.h>
39#include <sys/stat.h>
34 40
35SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl ) 41SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl )
36 : SoundSettingsBase( parent, name, TRUE, fl ) 42 : SoundSettingsBase( parent, name, TRUE, fl )
@@ -60,7 +66,17 @@ SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl )
60 else if(rate==44100) 66 else if(rate==44100)
61 sampleRate->setCurrentItem(4); 67 sampleRate->setCurrentItem(4);
62 68
63 stereoCheckBox->setChecked(cfg.readNumEntry("Stereo", 0)); 69 stereoCheckBox->setChecked(cfg.readNumEntry("Stereo", 0)); //TODO hide if zaurus- mono only
70 struct utsname name; /* check for embedix kernel running on the zaurus*/
71 if (uname(&name) != -1) {
72 QString release=name.release;
73
74 if( release.find("embedix",0,TRUE) !=-1)
75 stereoCheckBox->hide();
76// else
77// stereoCheckBox->hide();
78
79
64 sixteenBitCheckBox->setChecked(cfg.readNumEntry("SixteenBit", 1)); 80 sixteenBitCheckBox->setChecked(cfg.readNumEntry("SixteenBit", 1));
65 81
66 cfg.setGroup("Defaults"); 82 cfg.setGroup("Defaults");