search for: flac__metadata_get_streaminfo

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

2004 Sep 10
3
reading vorbis comments with FLAC++?
...flac, 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_name(), "ARTIST")) fl...
2004 Sep 10
0
reading vorbis comments with FLAC++?
...= ::FLAC__METADATA_TYPE_VORBIS_COMMENT) { vc = dynamic_cast<FLAC::Metadata::VorbisComment*>(it.get_block()); assert(0 != vc); } } while (!vc && it.next()); //use vc delete vc; } } maybe I should add a shorthand function similar to flac__metadata_get_streaminfo() Josh __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
2004 Sep 10
2
xmms plugin, fileinfo
...nclude "FLAC/all.h" -#include "id3_tag.h" -#include "configure.h" - -gboolean get_file_info(char *filename, flac_file_info_struct *tmp_file_info) -{ - FLAC__StreamMetadata streaminfo; - - if(0 == filename) - filename = ""; +#include <gtk/gtk.h> - if(!FLAC__metadata_get_streaminfo(filename, &streaminfo)) { - return FALSE; - } - - tmp_file_info->sample_rate = streaminfo.data.stream_info.sample_rate; - tmp_file_info->channels = streaminfo.data.stream_info.channels; - tmp_file_info->bits_per_sample = streaminfo.data.stream_info.bits_per_sample; - tmp_file_info-&gt...
2004 Sep 10
0
http streaming in the xmms plugin
...************ *** 307,313 **** void FLAC_XMMS__cleanup() { ! safe_decoder_delete_(decoder_); decoder_ = 0; } --- 398,404 ---- void FLAC_XMMS__cleanup() { ! decoder_func_table_ -> safe_decoder_delete(decoder_); decoder_ = 0; } *************** *** 321,329 **** if(!FLAC__metadata_get_streaminfo(filename, &streaminfo)) { /* @@@ how to report the error? */ if(title) { ! static const char *errtitle = "Invalid FLAC File: "; ! *title = g_malloc(strlen(errtitle) + 1 + strlen(filename) + 1 + 1); ! sprintf(*title, "%s\"%s\"", errtitle, filename);...