Displaying 3 results from an estimated 3 matches for "flac__metadata_type_streaminfo".
2005 Jan 02
1
Difficulties to get decoder to work
...ng 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 proble...
2004 Sep 10
3
reading vorbis comments with FLAC++?
...A while back, I was popen()ing to metaflac, because I didn't want to
mess with libFLAC. But now, it's the weekend, so I can mess around with
this. Here's the code in question:
bool getflac (struct Song* flac, const char* path)
{
FLAC__StreamMetadata *md = FLAC__metadata_object_new (FLAC__METADATA_TYPE_STREAMINFO);
if (FLAC__metadata_get_streaminfo(path, md))
{
unsigned nc = 0, i;
FLAC::Metadata::VorbisComment vc (md);
nc = vc.get_num_comments();
for (i = 0; i <= nc; i++)
{
FLAC::Metadata::VorbisComment::Entry e;
e = vc.get_comment(i);
if (!strcmp(e.get_field_...
2004 Sep 10
0
http streaming in the xmms plugin
...{
! if(decoder == 0)
! return false;
! safe_decoder_finish_(decoder);
! FLAC__file_decoder_set_md5_checking(decoder, false);
! FLAC__file_decoder_set_filename(decoder, filename);
! FLAC__file_decoder_set_metadata_ignore_all(decoder);
! FLAC__file_decoder_set_metadata_respond(decoder, FLAC__METADATA_TYPE_STREAMINFO);
! FLAC__file_decoder_set_metadata_respond(decoder, FLAC__METADATA_TYPE_VORBIS_COMMENT);
! FLAC__file_decoder_set_write_callback(decoder, write_callback_);
! FLAC__file_decoder_set_metadata_callback(decoder, metadata_callback_);
! FLAC__file_decoder_set_error_callback(decoder, error_callback_)...