rate fix
This commit is contained in:
@@ -116,7 +116,7 @@ int RageSoundReader_Preload::SetPosition_Fast( int iMS )
|
|||||||
|
|
||||||
int RageSoundReader_Preload::GetNextSourceFrame() const
|
int RageSoundReader_Preload::GetNextSourceFrame() const
|
||||||
{
|
{
|
||||||
return m_iPosition / samplesize;
|
return lrintf(m_iPosition * m_fRate) / samplesize;
|
||||||
}
|
}
|
||||||
|
|
||||||
int RageSoundReader_Preload::Read( char *pBuffer, unsigned iLen )
|
int RageSoundReader_Preload::Read( char *pBuffer, unsigned iLen )
|
||||||
|
|||||||
Reference in New Issue
Block a user