CAudioSettings::CAudioSettings() : VorticonMenu(GsRect<float>(0.075f, 0.24f, 0.85f, 0.4f) ) { mpRate = new ComboSelection( "Rate", g_pSound->getAvailableRateList()); mpMenuDialog->addControl( mpRate ); mpStereo = new Switch( "Stereo" ); mpMenuDialog->addControl( mpStereo ); mpDepth = new ComboSelection( "Depth", filledStrList( 2, "8-bit", "16-bit" ) ); mpMenuDialog->addControl( mpDepth ); mpSBToggle = new ComboSelection( "Card", filledStrList( 2, "PC Speaker", "Soundblaster" ) ); mpMenuDialog->addControl( mpSBToggle ); mpSoundVolume = new NumberControl( "Sound Vol", 0, SDL_MIX_MAXVOLUME, 8, g_pSound->getSoundVolume(), true ); mpMenuDialog->addControl( mpSoundVolume ); mpMusicVolume = new NumberControl( "Music Vol", 0, SDL_MIX_MAXVOLUME, 8, g_pSound->getMusicVolume(), true ); mpMenuDialog->addControl( mpMusicVolume ); setMenuLabel("SNDEFFMENULABEL"); }
CGUISwitch::CGUISwitch( const std::string& text ) : CGUIComboSelection( text, filledStrList( 2, "off", "on" ) ) { }
Switch::Switch( const std::string& text, const GsControl::Style style ) : ComboSelection( text, filledStrList( 2, "off", "on" ), style ) { }