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
+1 -2
View File
@@ -305,8 +305,7 @@ void DSoundBuf::SetSampleRate( int hz )
void DSoundBuf::SetVolume( float fVolume )
{
ASSERT( fVolume >= 0 );
ASSERT( fVolume <= 1 );
ASSERT_M( fVolume >= 0 && fVolume <= 1, ssprintf("%f",fVolume) );
if( fVolume == 0 )
fVolume = 0.001f; // fix log10f(0) == -INF