views:

335

answers:

3

I'm writing a simple audio recording utility which I want also to be able to tag the resulting files with meta data. It's pretty easy to find libraries to tag MP3 files with ID3 tags, but I'm more interested in lossless codecs like WAV and possibly FLAC.

As I understand it WAVE files are really a subset of the RIFF file type which can contain both waveform "chunks" and metadata "chunks".

Can anyone point me in the direction of libraries, specifications, or sample projects that would help me figure out how to read and write these RIFF tags to and from WAVE files?

Also does anyone know if similar tags exist for FLAC, and of any good resources for writing metadata to FLAC files?

+1  A: 

Here are some papers/articles.

http://www.codeproject.com/KB/files/riffparser.aspx

http://www.codeproject.com/KB/audio-video/WaveEdit.aspx

For Flac

Assembly to Read and Write Ogg Tags (Vorbis, FLAC and Speex)

Aseem Gautam
Ahhh great this help a lot. Although I haven't seen any examples that show writing/editing RIFF tags. I'm trying to write an app that will record a wave file and then automaticly tag the wave file with the artist, title, release, etc.. so editing/writing the RIFF data is most important to me.
Eric Anastas
A: 

For RIFF-WAV.

Yes, metadata is stored in special chunk. It should be noted, that you will not be able to map ID3 (or other tags) to RIFF-WAV metadata in a standard manner. Some common tag fields have appropriate standard RIFF-WAV fields, for another you should make your private inventions. Also mojority of software do not recognize RIFF-WAV tags.

For FLAC.

You can work with FLAC tags according to FLAC specifications.

VitalyVal
A: 

sulit daah 25 jam mikir terus sampe lu pucing pucing

yano kk