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 wi
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 the majority of software does not recognize RIFF-WAV tags.
For FLAC.
You can work with FLAC tags according to FLAC specifications.
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)