playsound bug

Ryan C. Gordon icculus at clutteredmind.org
Tue Oct 23 08:20:23 EDT 2001


> Which makes me wonder: Is there anything to prevent the overflow buffer
> from overflowing?

static Uint8 overflow[16384]; /* this is a hack. */

Nope.   :)

Actually, is there a good reason to use the overflow buffer at all?
Wouldn't it be better just to keep track of how much more of
sample->buffer needs to be written and memcpy() from there directly?

--ryan.





More information about the sdlsound mailing list