[Flac-dev] about libFLAC
xflac at yahoo.com
Wed Oct 31 20:49:02 PST 2001
--- Josh Coalson <xflac at yahoo.com> wrote:
> --- Daniel Souza <danielrsouza at hotmail.com> wrote:
> > Another thing: Is there a reason for
> > FLAC__stream_decoder_set_client_data()
> > and FLAC__stream_encoder_set_client_data() returning false if the
> > state
> > isn't FLAC__STREAM_DECODER_UNINITIALIZED or
> > FLAC__STREAM_DECODER_UNINITIALIZED? I do not understand why is
> > because
> > it has nothing to do with the encoding process (it's client data!).
> umm... trying to remember... the answer is probably that
> there was a reason originally, but there isn't one now.
> I'll investigate that too.
OK, looking back on this, the reason is that all the
data the client is supposed to set in the decoder
instance, the instance expects to be set before
starting decoding. in the case of client data, you
are right, it really does not matter to the decoder
if it changes later. it is more for the appearance
of having a consistent policy for the client.
it's easy to get around this in the client, but I'll
keep it in mind for 1.1.x
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
More information about the Flac-dev