notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update for recent /gp2x changes
[picodrive.git]
/
platform
/
uiq3
/
engine
/
audio_mediaserver.cpp
diff --git
a/platform/uiq3/engine/audio_mediaserver.cpp
b/platform/uiq3/engine/audio_mediaserver.cpp
index
c9788d3
..
e9f77d0
100644
(file)
--- a/
platform/uiq3/engine/audio_mediaserver.cpp
+++ b/
platform/uiq3/engine/audio_mediaserver.cpp
@@
-95,8
+95,10
@@
void CGameAudioMS::ConstructL()
iBufferSize *= bufferedFrames;
\r
for (TInt i=0 ; i<KSoundBuffers ; i++)
\r
{
\r
iBufferSize *= bufferedFrames;
\r
for (TInt i=0 ; i<KSoundBuffers ; i++)
\r
{
\r
- iSoundBuffers[i] = HBufC8::NewL(iBufferSize);
\r
- iSoundBuffers[i]->Des().FillZ (iBufferSize);
\r
+ // it seems .SetLength(max) throws USER:23 panic,
\r
+ // so make them a bit larger
\r
+ iSoundBuffers[i] = HBufC8::NewL(iBufferSize+4);
\r
+ iSoundBuffers[i]->Des().FillZ (iBufferSize+4);
\r
}
\r
\r
iCurrentBuffer = 0;
\r
}
\r
\r
iCurrentBuffer = 0;
\r