[Flac-dev] Push/Pull Model

Ingo Ralf Blum ingoralfblum at gmx.de
Thu Feb 14 08:02:51 PST 2002


Hi,

The stream decoder follows a push model, however, I need a pull model
decoder, like, for example, implemented by the Vorbis libs. For this I
simply save the pointer to the audio data in the read callback and acces the
data lateron after the call to FLAC__stream_decoder_process_one_frame
returned.

Is this safe? Can I assume that the internal buffer is not freed, when
FLAC__stream_decoder_process_one_frame returns, or will I have to copy the
data to a temporary buffer?

Thanks in advance,

Ingo





More information about the Flac-dev mailing list