search for: flac__file_decoder_ok

Displaying 4 results from an estimated 4 matches for "flac__file_decoder_ok".

2005 Jan 20
0
When to terminate decoding process ?
...xpected to receive a FLAC__FILE_DECODER_END_OF_FILE <http://flac.sourceforge.net/api/group__flac__file__decoder.html#a36a5> when calling FLAC::Decoder::File <http://flac.sourceforge.net/api/classFLAC_1_1Decoder_1_1File.html>::get_state(). Instead I obtain this: Status of decoder: FLAC__FILE_DECODER_OK Status of seekable stream decoder: FLAC__SEEKABLE_STREAM_DECODER_OK Status of stream decoder: FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC I have no idea, what to use as a termination criterion for my loop around process_single. Any ideas? Lars
2004 Sep 10
0
new checkins
...decoder.h,v retrieving revision 1.13 diff -u -r1.13 file_decoder.h --- file_decoder.h 26 Jan 2002 17:36:39 -0000 1.13 +++ file_decoder.h 6 May 2002 15:07:21 -0000 @@ -22,6 +22,10 @@ #include "stream_decoder.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef enum { FLAC__FILE_DECODER_OK = 0, FLAC__FILE_DECODER_SEEKING, /*@@@ NOTE: unused; remove this in the next minor-version */ @@ -133,5 +137,9 @@ FLAC__bool FLAC__file_decoder_process_remaining_frames(FLAC__FileDecoder *decoder); FLAC__bool FLAC__file_decoder_seek_absolute(FLAC__FileDecoder *decoder, FLAC__uint64 sample); +...
2004 Sep 10
3
new checkins
FYI, I have checked in a few interesting things. One is a speedup to the decoder (about 15% improvement in overall decode time). Another is a new interface to FLAC file metadata. If you're curious look at include/FLAC/metadata.h. It is basically a collection of object manipulation routines and iterators that make it pretty easy to add/edit/delete FLAC metadata in files efficiently. The
2004 Sep 10
0
http streaming in the xmms plugin
...oder_set_write_callback(decoder, write_callback_); ! FLAC__file_decoder_set_metadata_callback(decoder, metadata_callback_); ! FLAC__file_decoder_set_error_callback(decoder, error_callback_); ! FLAC__file_decoder_set_client_data(decoder, &file_info_); ! if(FLAC__file_decoder_init(decoder) != FLAC__FILE_DECODER_OK) ! return false; ! if(!FLAC__file_decoder_process_until_end_of_metadata(decoder)) ! return false; return true; } ! void safe_decoder_finish_(FLAC__FileDecoder *decoder) { ! if(decoder && FLAC__file_decoder_get_state(decoder) != FLAC__FILE_DECODER_UNINITIALIZED) ! FLA...