search for: flac__seekable_stream_decoder_ok

Displaying 7 results from an estimated 7 matches for "flac__seekable_stream_decoder_ok".

2004 Nov 10
4
Legal sample rates
...;m doing something like: FLAC__seekable_stream_encoder_set_channels(pflac->fse, 1); FLAC__seekable_stream_encoder_set_sample_rate(pflac->fse, 11025); FLAC__seekable_stream_encoder_set_bits_per_sample(pflac->fse, 8); if ((bps = FLAC__seekable_stream_encoder_init(pflac->fse)) != FLAC__SEEKABLE_STREAM_DECODER_OK) { printf ("Error : FLAC encoder init returned error : %s\n", FLAC__SeekableStreamEncoderStateString [bps]); exit (1); } and I'm triggering the error message, but the most information I can get from the FLAC__SeekableStreamEncoderStateString method is FLAC_...
2004 Nov 10
0
Legal sample rates
...FLAC__seekable_stream_encoder_set_channels(pflac->fse, 1); > FLAC__seekable_stream_encoder_set_sample_rate(pflac->fse, 11025); > FLAC__seekable_stream_encoder_set_bits_per_sample(pflac->fse, 8); > > if ((bps = FLAC__seekable_stream_encoder_init(pflac->fse)) != > FLAC__SEEKABLE_STREAM_DECODER_OK) > { printf ("Error : FLAC encoder init returned error : %s\n", > FLAC__SeekableStreamEncoderStateString [bps]); > exit (1); > } > > and I'm triggering the error message, but the most information I > can get from the FLAC__SeekableStrea...
2005 Jan 20
0
When to terminate decoding process ?
...;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
...1.2 diff -u -r1.2 seekable_stream_decoder.h --- seekable_stream_decoder.h 26 Jan 2002 17:36:39 -0000 1.2 +++ seekable_stream_decoder.h 6 May 2002 15:07:22 -0000 @@ -22,6 +22,11 @@ #include "stream_decoder.h" +#ifdef __cplusplus +extern "C" { +#endif + + typedef enum { FLAC__SEEKABLE_STREAM_DECODER_OK = 0, FLAC__SEEKABLE_STREAM_DECODER_SEEKING, @@ -163,5 +168,9 @@ FLAC__bool FLAC__seekable_stream_decoder_process_remaining_frames(FLAC__SeekableStreamDecoder *decoder); FLAC__bool FLAC__seekable_stream_decoder_seek_absolute(FLAC__SeekableStreamDecoder *decoder, FLAC__uint64 sample); + +#ifdef...
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
2
flac_read callback not called in Windows?
...derr, "Could not set metadata cb\n"); if(!FLAC__seekable_stream_decoder_set_error_callback(flacDecoder, flac_error)) fprintf(stderr, "Could not set flac error cb\n"); fprintf(stderr, "set error decoder\n"); if(FLAC__seekable_stream_decoder_init(flacDecoder) != FLAC__SEEKABLE_STREAM_DECODER_OK) { fprintf(stderr, "flac init failed\n"); logerror("flac init failed\n"); } } else { fprintf(stderr, "flac file %s not found\n", flacFilename); } }
2006 May 11
2
C++ Set_Metadata Problem
I refer to a problem that appeared on the flac list last August that was either solved off-list or abandoned. (http://lists.xiph.org/pipermail/flac/2005-August/000468.html) The problem is with using the C++ encoder classes, particularly the FLAC::Encoder::File:set_metadata function. JC said that the developers version of how to add a simple metadata block looked right, but it did not work for