1
0
forked from 0ad/0ad

zero out buffers before loading sounds

This was SVN commit r12639.
This commit is contained in:
stwf 2012-09-08 02:54:49 +00:00
parent df0c4559ad
commit 1fce30839f

View File

@ -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)