fix RageSoundReader_Pan::Read logic

This commit is contained in:
Glenn Maynard
2006-12-14 02:32:33 +00:00
parent 4418f202f4
commit a348425d23
-5
View File
@@ -11,11 +11,6 @@ RageSoundReader_Pan::RageSoundReader_Pan( RageSoundReader *pSource ):
int RageSoundReader_Pan::Read( char *pBuf, int iFrames )
{
/* If the source is mono, it'll be converted to stereo; read half as many frames,
* so we have space. */
if( m_pSource->GetNumChannels() == 1 )
iFrames /= 2;
iFrames = m_pSource->Read( pBuf, iFrames );
if( iFrames < 0 )
{