fix stop mode

This commit is contained in:
Glenn Maynard
2004-02-28 02:47:15 +00:00
parent 9530cff9a6
commit e04b8bb457
+2 -2
View File
@@ -395,7 +395,7 @@ int RageSound::GetPCM( char *buffer, int size, int64_t frameno )
continue; /* we have more */
/* We're at the end of the data. If we're looping, rewind and restart. */
if( m_Param.StopMode == RageSoundParams::M_LOOP )
if( GetStopMode() == RageSoundParams::M_LOOP )
{
NumRewindsThisCall++;
if(NumRewindsThisCall > 3)
@@ -430,7 +430,7 @@ int RageSound::GetPCM( char *buffer, int size, int64_t frameno )
}
/* Not looping. Normally, we'll just stop here. */
if( m_Param.StopMode == RageSoundParams::M_STOP )
if( GetStopMode() == RageSoundParams::M_STOP )
break;
/* We're out of data, but we're not going to stop, so fill in the