move SoundVolume

This commit is contained in:
Glenn Maynard
2007-05-24 21:35:03 +00:00
parent 0b591bfb1f
commit dff267eccd
7 changed files with 24 additions and 31 deletions
-8
View File
@@ -240,7 +240,6 @@ PrefsManager::PrefsManager() :
m_sLastSeenVideoDriver ( "LastSeenVideoDriver", "" ),
m_sVideoRenderers ( "VideoRenderers", "" ), // StepMania.cpp sets these on first run:
m_bSmoothLines ( "SmoothLines", false ),
m_fSoundVolume ( "SoundVolume", 1.0f ),
m_iSoundWriteAhead ( "SoundWriteAhead", 0 ),
m_iSoundDevice ( "SoundDevice", "" ),
m_iSoundPreferredSampleRate ( "SoundPreferredSampleRate", 0 ),
@@ -482,13 +481,6 @@ RString PrefsManager::GetPreferencesSection() const
}
// wrappers
float PrefsManager::GetSoundVolume()
{
// return a resonable volume to that users of this method don't have to handle invalid values
return clamp(m_fSoundVolume.Get(),0.0f,1.0f);
}
// lua start
#include "LuaBinding.h"