[Flac] Difficulties to get decoder to work

Josh Coalson xflac at yahoo.com
Sun Jan 2 14:16:20 PST 2005


hmm, not enough info, will have to see the code.  I don't know
how it can get to the end-of-stream state without calling your
read callback.

Josh

--- Lars von Wedel <vonwedel at web.de> wrote:

> 
> Hi,
> 
> I'm developing a plugin for a settop-box application to make use of
> flac 
> files.
> 
> However, I have difficulties to get the file-decoder to run in C++.
> What 
> I do in my derived decoder class is basically:
> 
> - create an instance of FLAC::Decoder::File, calling also the bsae
> class 
> c'tor
> - set_metadata_respond( FLAC__METADATA_TYPE_STREAMINFO ),
> set_filename()
> - process_until_end_of_metadata()
> - repeatedly call process_single()
> 
> However, none of my callbacks is actually called during the process_*
> 
> calls. Instead, after the call to process metadata, the status of the
> 
> stream decoder is FLAC__STREAM_DECODER_END_OF_STREAM. The same
> problem 
> if I skip the metadata processing call.
> 
> Any help or ideas is appreciated.
> 
> Regards,
> Lars


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Flac mailing list