Skip to content

Commit

Permalink
Queueing several small AL buffers in a row would overflow the HAL output
Browse files Browse the repository at this point in the history
 buffer when mixing the source. Fixes obscure crash in Big Kahuna Reef and
 Ricochet.
  • Loading branch information
icculus committed Jul 8, 2005
1 parent 97c2a4d commit 77753d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osx/alContext.c
Expand Up @@ -1080,7 +1080,7 @@ static ALvoid __alcMixContext(ALcontext *ctx, UInt8 *_dst,
} // if

// adjust for next buffer in queue's starting mix point.
dst += (frames - srcframes) * framesize;
dst = _dst + ((frames - srcframes) * framesize);

// !!! FIXME: Call rewind instead if looping...
if (buf->processedBuffer)
Expand Down

0 comments on commit 77753d6

Please sign in to comment.