search for: ftfunc

Displaying 2 results from an estimated 2 matches for "ftfunc".

Did you mean: ftrunc
2004 Sep 10
3
reading vorbis comments with FLAC++?
Well, I'm quite frankly stumped. I'm writing a program that recurses into directories and reads (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:
2004 Sep 10
4
reading vorbis comments with FLAC++?
...y to figure out the C++ interface. The one problem I have is that the values in block->data. vorbis_comment.comments tend to have trailing junk. For example: Breakpoint 1, get_flac(Song*, char const*) (flac=0x806b8a8, path=0x8068844 "/usr/share/mp3/01-dazed_and_confused.flac") at ftfuncs.cc:53 53 for (i = 0; i < e->length; i++) (gdb) p e->entry $6 = (FLAC__byte *) 0x8066118 "TITLE=Dazed And Confused8Ini\021" [...] This only seems to happen sometimes, and the only reliable way to prevent myself from treading into wild memory is to iterate e->leng...