Reading writing WAV/RIFF Tags

Eric Anastas picture Eric Anastas · Mar 30, 2010 · Viewed 7.7k times · Source

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?