Wiki Home

Riff File


Namespace: WIN_COM_API
RIFF (Resource Interchange File Format ) is a Microsoft file format, described here:
http://www.music-center.com.br/spec_rif.htm

Essentially, a RIFF file is a recursive definition: the whole file is one chunk (starting with a 4 character chunk identifier, then a 4 byte DWORD identifying the length of the remaining chunk).

The contents of that chunk will often be more chunks, each formatted with a 4 char id, then a 4 byte DWORD length, followed by the contained data.

A chunk can be arbitrarily formatted in any way, dependant on the 4 char chunk id field.

An Avi File is a RIFF file
A WavFile is a RIFF file

See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_performing_file_i_o_on_riff_files.asp
for some I/O examples.

For more info, see: http://www.udayton.edu/~cps/faculty/jloomis/cps592B/asgn/asgn1/riff.html

Contributors: ?wgcs
Category File Formats
( Topic last updated: 2004.12.13 02:48:22 PM )