+void SPrefsPanel::AudioDeviceChanged()
+{
+ ModuleConfigControl *module_config =
+ dynamic_cast<ModuleConfigControl*>( sender() );
+ updateAudioOptions( module_config->getValue() );
+}
+
+void SPrefsPanel::updateAudioOptions( QString value )
+{
+#ifndef WIN32
+ alsa_options->hide();
+ oss_options->hide();
+#else
+ directx_options->hide();
+#endif
+ file_options->hide();
+
+ if( value == "aout_file" )
+ file_options->show();
+#ifndef WIN32
+ else if( value == "alsa" )
+ alsa_options->show();
+ else if( value == "oss" )
+ oss_options->show();
+#else
+ else if( value == "directx" )
+ directx_options->show();
+#endif
+}
+