|
Rockbox mail archiveSubject: Re: Vorbis metadataRe: Vorbis metadata
From: Dave Chapman <dave_at_dchapman.com>
Date: Mon, 20 Jun 2005 11:05:10 +0100 lear_at_algonet.se wrote: > Hi, > > I've looked a little at how to get the interesting Ogg Vorbis metadata. One fairly > simple solution is to use the vorbisfile functions in Tremor. By default, > that would mean bringing in all of Tremor into the main rockbox build, which > isn't quite what we want, I guess... :) However, by adding some defines, > it is possible to remove all of the codebooks and the decoding engine, so > that only (most of) vorbisfile.c, framing.c, info.c and bitwise.c are needed. > Getting all the needed information should be easy then (with the exception > of the sample count, which I don't know if it's needed). > > Would this be an acceptable solution? Should I look further at it? As it > is now, I have a simple Win32 build that works... Any patches in that direction would be very welcome. There is already an initial implementation of a basic Ogg parser in the apps/metadata.c file - this was written without reference to the Tremor sources, but does (hopefully) find the correct sample count (which is very important if you want the correct track length to be displayed). The important issue to consider is the requirement for Rockbox to use as little memory as possible. I haven't looked at the Tremor implementation of tag parsing, but we need a streamlined parser that has very minimal memory usage. By all means reuse code already in Tremor, but it may be a better idea to copy and paste into new source files, rather than using the source directly. Dave. _______________________________________________ http://cool.haxx.se/mailman/listinfo/rockbox Received on 2005-06-20 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |