don't SetParams constantly

This commit is contained in:
Glenn Maynard
2006-12-21 07:16:56 +00:00
parent d2b8ac925a
commit d2db2ffd5c
+3
View File
@@ -492,9 +492,12 @@ void GameSoundManager::Update( float fDeltaTime )
}
RageSoundParams p = g_Playing->m_Music->GetParams();
if( p.m_Volume != fVolume )
{
p.m_Volume = fVolume;
g_Playing->m_Music->SetParams( p );
}
}
if( !g_UpdatingTimer )
return;