tracking down volume related assert

This commit is contained in:
Chris Danford
2005-10-07 05:29:33 +00:00
parent 052a0166df
commit e80dcafbdd
3 changed files with 4 additions and 3 deletions
+2
View File
@@ -331,6 +331,8 @@ void RageSoundManager::PlayOnce( CString sPath )
void RageSoundManager::SetMixVolume( float fMixVol )
{
ASSERT_M( fMixVol >= 0 && fVolume <= 1, ssprintf("%f",fMixVol) );
g_SoundManMutex.Lock(); /* lock for access to m_fMixVolume */
m_fMixVolume = fMixVol;
g_SoundManMutex.Unlock(); /* finished with m_fMixVolume */