search for: process_until_end_of_metadata

Displaying 6 results from an estimated 6 matches for "process_until_end_of_metadata".

2005 Jan 02
1
Difficulties to get decoder to work
...e 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 he...
2004 Sep 10
2
FLAC++ SeekableStream write_callback not being called?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I am trying to create a FLAC plugin for the K3b CD burning program. To do this I have subclassed the FLAC::Decoder::SeekableStream class. I can obtain the vorbiscomment data using set_metadata_respond, process_until_end_of_metadata and the metadata_callback, however I cannot decode the audio data. It seems to me as though the write_callback is never actually being called. Before I pepper my code with a bazillion trace statements, can anyone tell me if there is some obvious "trick-for-new-players" which I might h...
2004 Sep 10
0
FLAC++ SeekableStream write_callback not being called?
...EGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > I am trying to create a FLAC plugin for the K3b CD burning program. > To do this > I have subclassed the FLAC::Decoder::SeekableStream class. I can > obtain the > vorbiscomment data using set_metadata_respond, > process_until_end_of_metadata > and the metadata_callback, however I cannot decode the audio data. It > seems > to me as though the write_callback is never actually being called. > > Before I pepper my code with a bazillion trace statements, can anyone > tell me > if there is some obvious "trick-fo...
2016 Jan 19
0
FLAC__stream_decoder_seek_absolute calling write callback
...abort(); return FLAC__StreamDecoderWriteStatus::FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE; } virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) override {} } decoder; decoder.init("sample.flac"); decoder.process_until_end_of_metadata(); decoder.seek_absolute(1); return 0; } Despite not calling `process_single`, this snippet crashes with "write_callback called!" because internally `seek_absolute(sample)` processes the frame which contains `sample`. My question was whether this behaviour was intent...
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
2004 Sep 10
0
http streaming in the xmms plugin
...e); + FLAC__bool (*set_error_callback) (void *decoder, ErrorCallback value); + FLAC__bool (*set_client_data) (void *decoder, void *value); + FLAC__bool (*decoder_init) (void *decoder); + void (*safe_decoder_finish) (void *decoder); + void (*safe_decoder_delete) (void *decoder); + FLAC__bool (*process_until_end_of_metadata) (void *decoder); + FLAC__bool (*process_single) (void *decoder); + FLAC__bool (*is_eof) (void *decoder); + } decoder_funcs_t; + + #define NUM_DECODER_TYPES 2 + typedef enum { + DECODER_FILE, + DECODER_HTTP + } decoder_t; + static void FLAC_XMMS__init(); static int FLAC_XMMS__is_our_file...