fixed buffer overrun, CID 649
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27446 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -250,7 +250,7 @@ GameSoundBuffer::SetAttributes(gs_attribute * attributes,
|
|||||||
void
|
void
|
||||||
GameSoundBuffer::Play(void * data, int64 frames)
|
GameSoundBuffer::Play(void * data, int64 frames)
|
||||||
{
|
{
|
||||||
float * pan = new float[1];
|
float *pan = new float[2];
|
||||||
pan[0] = fPanRight;
|
pan[0] = fPanRight;
|
||||||
pan[1] = fPanLeft;
|
pan[1] = fPanLeft;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user