From 383df9711110be29b1b50e568672bb88626fee8b Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sat, 22 Jun 2002 20:32:19 +0000 Subject: hide stereo combo for mono vmemo devices --- 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 @@ #include #include +#include +#include +#include +#include +#include +#include SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl ) : SoundSettingsBase( parent, name, TRUE, fl ) @@ -60,7 +66,17 @@ SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl ) else if(rate==44100) sampleRate->setCurrentItem(4); - stereoCheckBox->setChecked(cfg.readNumEntry("Stereo", 0)); + stereoCheckBox->setChecked(cfg.readNumEntry("Stereo", 0)); //TODO hide if zaurus- mono only + struct utsname name; /* check for embedix kernel running on the zaurus*/ + if (uname(&name) != -1) { + QString release=name.release; + + if( release.find("embedix",0,TRUE) !=-1) + stereoCheckBox->hide(); +// else +// stereoCheckBox->hide(); + + sixteenBitCheckBox->setChecked(cfg.readNumEntry("SixteenBit", 1)); cfg.setGroup("Defaults"); -- cgit v0.9.0.2