Ryan C. Gordon wrote:
> 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?
I never even thought of that, but it sounds reasonable. Come to think of
it, it may even be necessary for the SDL_mixer rewrite you've been
talking about.
So we'd need either a pointer or an Uint32 to keep track of how much of
the buffer has been used. Should that be in the Sound_Sample or in the
Sound_Sample_Internal struct?
Torbjörn Andersson