search for: getflac

Displaying 1 result from an estimated 1 matches for "getflac".

Did you mean: getflag
2004 Sep 10
3
reading vorbis comments with FLAC++?
...(among others) FLAC files and should be able to read the vorbis comments ARTIST and TITLE from the file. 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...