This commit is contained in:
Glenn Maynard
2006-12-23 04:23:19 +00:00
parent 76e3f6a14a
commit 0c88ceaa4b
+6 -8
View File
@@ -560,21 +560,19 @@ bool RageSound::SetPositionFrames( int iFrames )
{ {
m_sError = m_pSource->GetError(); m_sError = m_pSource->GetError();
LOG->Warn( "SetPositionFrames: seek %s failed: %s", GetLoadedFilePath().c_str(), m_sError.c_str() ); LOG->Warn( "SetPositionFrames: seek %s failed: %s", GetLoadedFilePath().c_str(), m_sError.c_str() );
return false; /* failed */
} }
else if( iRet == 0 )
m_iStoppedSourceFrame = iFrames;
if( iRet == 0 )
{ {
/* Seeked past EOF. */ /* Seeked past EOF. */
LOG->Warn( "SetPositionFrames: %i samples is beyond EOF in %s", LOG->Warn( "SetPositionFrames: %i samples is beyond EOF in %s",
iFrames, GetLoadedFilePath().c_str() ); iFrames, GetLoadedFilePath().c_str() );
}
return false; /* failed */ else
{
m_iStoppedSourceFrame = iFrames;
} }
return true; return iRet == 1;
} }
float RageSound::GetAbsoluteVolume() const float RageSound::GetAbsoluteVolume() const