zero out buffers before loading sounds
This was SVN commit r12639.
This commit is contained in:
parent
df0c4559ad
commit
1fce30839f
@ -110,6 +110,7 @@ int COggData::FetchDataIntoBuffer(int count, ALuint* buffers)
|
||||
|
||||
for (int i = 0; (i < count) && !m_FileFinished; i++)
|
||||
{
|
||||
memset( pcmout, 0, bufferSize + 5000 );
|
||||
Status totalRet = ogg->GetNextChunk( pcmout, bufferSize);
|
||||
m_FileFinished = ogg->atFileEOF();
|
||||
if (totalRet > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user