final fixes for UIQ3

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@573 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2008-08-24 13:26:57 +00:00
parent f8af96349e
commit 6a13ef3f56
4 changed files with 11 additions and 5 deletions

View file

@ -95,8 +95,10 @@ void CGameAudioMS::ConstructL()
iBufferSize *= bufferedFrames;
for (TInt i=0 ; i<KSoundBuffers ; i++)
{
iSoundBuffers[i] = HBufC8::NewL(iBufferSize);
iSoundBuffers[i]->Des().FillZ (iBufferSize);
// it seems .SetLength(max) throws USER:23 panic,
// so make them a bit larger
iSoundBuffers[i] = HBufC8::NewL(iBufferSize+4);
iSoundBuffers[i]->Des().FillZ (iBufferSize+4);
}
iCurrentBuffer = 0;