This commit is contained in:
Glenn Maynard
2006-11-30 04:02:32 +00:00
parent 8419633852
commit 1c3e34d4a4
+1 -1
View File
@@ -116,7 +116,7 @@ int RageSoundReader_Preload::SetPosition_Fast( int iMS )
int RageSoundReader_Preload::GetNextSourceFrame() const
{
return m_iPosition / samplesize;
return lrintf(m_iPosition * m_fRate) / samplesize;
}
int RageSoundReader_Preload::Read( char *pBuffer, unsigned iLen )