Matt Zimmerman
2004-Sep-10 16:45 UTC
[Flac-dev] documentation for interfacing with libflac?
On Sat, Jun 09, 2001 at 05:57:55AM -0500, jason wrote:> I just joined the development team for audacity, a corss platform open source > multitrack audio editor. > > I would like to add support for importing and exporting files in FLAC format. > > I was wondering if any of you could point me to some documentation about > using libflac to add FLAC support to other programs?You will probably want to skim the documents in doc/ in the flac distribution, but I think the sort of thing that you want (libflac API documentation) doesn't exist yet. Instead, you can look at the command-line encoder/decoder (src/flac) and the input plugins (src/plugin_*) for examples. -- - mdz
hello all, I just joined the development team for audacity, a corss platform open source multitrack audio editor. I would like to add support for importing and exporting files in FLAC format. I was wondering if any of you could point me to some documentation about using libflac to add FLAC support to other programs? thanks, jason jason@pepas.com ps - sorry i am not subscribed to the list, so please you cc replies to me. thanks!
> I just joined the development team for audacity, a corss platform > open source multitrack audio editor. > > I would like to add support for importing and exporting files in FLAC > format. > > I was wondering if any of you could point me to some documentation > about using libflac to add FLAC support to other programs? >(note to self... write libFLAC documentation :) I'll put this high on my list. I realize that the key for adoption of any new format is good docs. I think the format docs are OK but libFLAC docs are definitely needed. Like Matt says, until then there are lots of examples from flac and the plugins but feel free to ask about anything that's not clear. As a primer, libFLAC has a stream decoder, a file decoder wrapper around that, and a stream encoder. For the stream en/decoder you create and instance, set the parameters, and provide callbacks that get called when there's something to output (data, metadata, or errors). Then you manually feed input data to the instance. There is no threading to it. The file decoder provides one of the callbacks as a convenience and may be simpler for you to use. Josh __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/