Can the value of sample->buffer change?
Torbjörn Andersson
torbjorn.e.andersson at tietoenator.com
Sat Dec 1 12:12:09 EST 2001
Andreas Umbach wrote:
> Is it save to assume that the value of sample->buffer doesn't change
> after creation of a Sound_Sample? Or do I have re-check the value
> after each call to Sound_Decode() and Sound_DecodeAll()?
No, the decoder may change the size of sample->buffer through
Sound_SetBufferSize() (at least Ryan hasn't yelled at me for doing so in
the FLAC decoder even after I told him :-) and the reallocated buffer
may very well end up on some other address than the original.
Torbjörn
More information about the sdlsound
mailing list