fix RageSoundReader_Preload never preloading

This commit is contained in:
Glenn Maynard
2007-01-18 09:51:18 +00:00
parent f8c19d688d
commit 8ba265a246
+2 -2
View File
@@ -64,10 +64,10 @@ bool RageSoundReader_Preload::Open( RageSoundReader *pSource )
int iBytesPerFrame = m_iChannels * sizeof(int16_t);
int iCnt = pSource->Read( buffer, sizeof(buffer) / iBytesPerFrame );
if( iCnt < 0 )
return false;
if( iCnt == END_OF_FILE )
break;
if( iCnt < 0 )
return false;
/* Add the buffer. */
m_Buffer.Get()->append( buffer, buffer+iCnt*iBytesPerFrame );