Besides fmt and data, a RIFX WAVE file can carry optional
chunks. They describe the audio without changing how it plays, and a reader that does not
know one simply skips it by its size. Each has the layout it has in an ordinary WAV file,
with every multi-byte number big-endian; text, chunk IDs and other four-character codes
are unchanged. The explorer reads them this way. Since RIFX files are rare, most of these
chunks are known only from RIFF files, and how a given program writes them in a RIFX file
is not recorded.
Common chunks
The chunks with a page of their own:
| Chunk | Holds | Defined by |
|---|---|---|
fact | the number of sample frames, for compressed audio | the 1991 RIFF specification |
LIST INFO | text tags: title, artist, comments, date, software | the 1991 RIFF specification |
cue | markers at sample positions, with LIST adtl labels and the plst playlist | the 1991 RIFF specification |
smpl | root note, tuning and loop points for samplers | believed to be the MIDI Manufacturers Association (not confirmed) |
bext | broadcast details: description, originator, time reference, loudness | EBU Tech 3285, the Broadcast Wave Format |
The others are described below.
Filler: JUNK, junk, PAD and FLLR
These chunks hold nothing. In the words of the 1991 specification, a
JUNK chunk “contains no relevant data; it is a space filler of arbitrary
size”. Writers use filler to reserve room for metadata written later or to move the
samples to an aligned offset. FLLR, PAD and lower-case
junk are also met in WAV files. libsndfile skips them all, and so do other
readers.
iXML
An iXML chunk holds production metadata as XML, written by field
recorders and location sound software: scene, take, track names, timecode and notes. Its
layout is set by the iXML specification, whose own pages (gallery.co.uk/ixml, read over plain HTTP
because their certificate has expired) are headed revision 3.01 of 28 October 2021. The root
element is BWFXML. The element names below are those of the specification’s “Object
Details” and example pages, together with Sony’s ASWG-G006 extension and what real files from
Sound Devices, Zoom, Nuendo and Pyramix recorders and programs contain. The
RIFF page lists the elements
and dictionaries in full: this page gives the main ones.
| Element | Holds |
|---|---|
IXML_VERSION | the revision the writer follows, such as 1.27 or 3.01 |
PROJECT, SCENE, TAPE, TAKE, NOTE | project, scene, sound roll (tape), take and a free note |
TAKE_TYPE | new in iXML 2.0: a comma-separated list from DEFAULT, NO_GOOD, FALSE_START, WILD_TRACK, PICKUP, REHEARSAL, ANNOUNCEMENT, SOUND_GUIDE |
NO_GOOD, FALSE_START, WILD_TRACK, CIRCLED | TRUE or FALSE |
PRE_RECORD_SAMPLECOUNT, FILE_UID, UBITS | the pre-record buffer in samples, a unique ID for the file, the timecode user bits |
SPEED | NOTE, MASTER_SPEED, CURRENT_SPEED and TIMECODE_RATE (fractions such as 24000/1001), TIMECODE_FLAG (DF or NDF), FILE_SAMPLE_RATE, AUDIO_BIT_DEPTH, DIGITIZER_SAMPLE_RATE, TIMESTAMP_SAMPLE_RATE and the start time as TIMESTAMP_SAMPLES_SINCE_MIDNIGHT_HI and _LO (two 32-bit halves, as bext’s time reference) |
SYNC_POINT_LIST | SYNC_POINT_COUNT, then SYNC_POINT each with SYNC_POINT_TYPE (RELATIVE or ABSOLUTE), SYNC_POINT_FUNCTION, SYNC_POINT_COMMENT, SYNC_POINT_LOW, SYNC_POINT_HIGH and SYNC_POINT_EVENT_DURATION |
HISTORY | ORIGINAL_FILENAME, PARENT_FILENAME, PARENT_UID; Sound Devices files also have CURRENT_FILENAME |
FILE_SET | TOTAL_FILES, FAMILY_UID, FAMILY_NAME, FILE_SET_INDEX (a letter in the Sound Devices files seen) |
TRACK_LIST | TRACK_COUNT, then TRACK each with CHANNEL_INDEX (the recorder’s channel), INTERLEAVE_INDEX (the channel’s place in each frame of the file, from 1), NAME, FUNCTION and DEFAULT_MIX (LEVEL, PAN) |
LOCATION | LOCATION_NAME, LOCATION_GPS, LOCATION_ALTITUDE, LOCATION_TYPE, LOCATION_TIME |
USER | production and recorder details: FULL_TITLE, DIRECTOR_NAME, PRODUCTION_NAME, SOUND_MIXER_NAME, AUDIO_RECORDER_MODEL and similar |
ASWG | Sony’s extension for game audio (ASWG-G006, schema aswg_ixml_1_1.xsd): contentType, project, originator, loudness and about a hundred more |
The explorer lists every element with its path (BWFXML/TRACK_LIST/TRACK[2]/NAME),
what the name means, its text and its offset in the file, and says “not a name this explorer
knows” of any other. It reads UTF-16 without a mark and ignores trailing NULs. It reports
XML that is not well formed, a root that is not BWFXML, a TRACK_COUNT
or SYNC_POINT_COUNT that is not the number of elements, an index that is not a
number from 1, two tracks with the same INTERLEAVE_INDEX, one past the channels of the
format chunk, a TRUE/FALSE or DF/NDF value that
is neither, a sample rate or bit depth that differs from the format chunk, and a start time
that differs from bext’s time reference. It also reads the BEXT object (BWF_DESCRIPTION,
BWF_ORIGINATOR, BWF_TIME_REFERENCE_LOW and the rest, iXML’s copy of the bext
fields, which the specification says must match the real bext chunk) and the LOUDNESS object
(LOUDNESS_VALUE, LOUDNESS_RANGE, MAX_TRUE_PEAK_LEVEL,
MAX_MOMENTARY_LOUDNESS, MAX_SHORT_TERM_LOUDNESS, floats), reports a copy that differs
from the bext chunk, and notes in the Meaning column a TAKE_TYPE (DEFAULT,
NO_GOOD, FALSE_START, WILD_TRACK, PICKUP,
REHEARSAL, ANNOUNCEMENT, SOUND_GUIDE, comma separated),
LOCATION_TYPE, LOCATION_TIME, SYNC_POINT_FUNCTION or track
FUNCTION outside the specification’s dictionaries. See the
RIFF page for the lists.
axml
An axml chunk holds XML metadata, defined for Broadcast Wave files in EBU
Tech 3285 supplement 5, where it carries Audio Definition Model (ADM) metadata, ITU-R
BS.2076. ITU-R BS.2088-2 (section 5) says it may hold any XML 1.0 or later. The explorer
reads the XML in a RIFX file as it does in a RIFF one and shows the ADM as one table for each
element type (audioProgramme, audioContent, audioObject,
audioPackFormat, audioChannelFormat, audioBlockFormat,
audioStreamFormat, audioTrackFormat and audioTrackUID),
checking the IDs and references. The layout of those elements is on the
RIFF page. The
chna chunk that goes with it in other WAV formats is not read in a RIFX file; see
unknown chunks.
XMP
A _PMX chunk holds an Adobe XMP packet, XML metadata as Adobe’s programs
write it. libsndfile calls it PMX_. The explorer shows it as text.
ID3
An ID3 or id3 chunk holds an ID3v2 tag, as MP3 files
carry: the letters ID3, a version, flags and a syncsafe size, then frames
such as title, artist and attached pictures. The tag has its own byte rules and is the
same in either byte order; only the chunk’s size is big-endian. The explorer lists the
text frames.
An ID3v1 tag, 128 bytes starting TAG, is sometimes appended after the end
of the outer chunk. Readers ignore it; libsndfile and the explorer recognise it.
inst
The instrument chunk gives a sampler the note and velocity range to play a sample on. It is 7 single bytes, so byte order does not affect it, and a pad byte follows.
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
| 0 | 1 | u8 | bUnshiftedNote | the MIDI note the sample plays unchanged at; 60 is middle C |
| 1 | 1 | i8 | chFineTune | fine tuning in cents, −50 to 50 |
| 2 | 1 | i8 | chGain | the suggested gain in decibels |
| 3 | 1 | u8 | bLowNote | the lowest note to play it on |
| 4 | 1 | u8 | bHighNote | the highest note |
| 5 | 1 | u8 | bLowVelocity | the lowest velocity, 1 to 127 |
| 6 | 1 | u8 | bHighVelocity | the highest velocity |
Where the chunk was first defined is not confirmed. The explorer reports a note above 127, a fine tune outside −50 to 50, a lowest note or velocity above the highest, and a velocity outside 1 to 127.
acid
Sony’s ACID loop chunk gives a loop’s tempo and length, so music software can fit it to a song. It is not published; this is the 24-byte layout libsndfile reads, with each field big-endian as the explorer reads it in a RIFX file.
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
| 0 | 4 | u32 | flags | 0x01 one-shot rather than a loop, 0x02 the root note is set, 0x04 stretch is on |
| 4 | 2 | u16 | root note | the MIDI note of the loop, when flag 0x02 is set |
| 6 | 2 | u16 | unknown | not documented |
| 8 | 4 | f32 | unknown | not documented |
| 12 | 4 | u32 | beats | the length of the loop in beats |
| 16 | 2 | u16 | meter denominator | libsndfile reads the denominator before the numerator, and doubts the order (“are we sure about the order??”) |
| 18 | 2 | u16 | meter numerator | the other half of the time signature |
| 20 | 4 | f32 | tempo | beats a minute |
PEAK
The peak chunk gives the loudest sample of each channel, so a program need not scan the file. This is the layout libsndfile reads, big-endian in a RIFX file.
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
| 0 | 4 | u32 | dwVersion | 1 |
| 4 | 4 | u32 | dwTimeStamp | when the peaks were measured; libsndfile writes seconds since 1970 |
| 8 | 8 each | record | peaks | for each channel: the value (f32), the highest absolute sample, then its frame (u32) |
libsndfile reads 4-byte positions, though its own writer writes 8-byte ones.
cart
The cart chunk is AES46 CartChunk (AES46-2002, “Radio traffic audio delivery
extension to the broadcast-WAVE-file format”), used by radio automation systems to carry the
traffic data of a cut. It is at least 2,048 bytes, then the free TagText. The
layout below is that of the standard’s section 6.2.1 and table 5, read from a copy of the 2002
printing for a little-endian file, and cartchunk.org’s sample file reads as it says; the explorer reads
the numbers big-endian here. The timer usages (SEG, AUD, INT,
OUT, SEC, TER, MRK, EOD, with s,
e or a digit) are on the
RIFF page.
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
| 0 | 4 | char[4] | Version | four digits: 0101 is version 01.01 |
| 4, 68, 132, 196, 260, 324, 388 | 64 each | char[64] | Title, Artist, CutID, ClientID, Category, Classification, OutCue | the cut’s title and artist, its number in the station’s system, the client, category and classification, and the closing words for announcers |
| 452, 462, 470, 480 | 10, 8, 10, 8 | char[] | StartDate, StartTime, EndDate, EndTime | when it may air: yyyy-mm-dd and hh:mm:ss; the sample file uses / in dates |
| 488, 552, 616 | 64 each | char[64] | ProducerAppID, ProducerAppVersion, UserDef | the program that made the file and its version; free for the user |
| 680 | 4 | u32 | dwLevelReference | the sample value that is 0 dB of the reference level |
| 684 | 8 × 8 | record | PostTimer | eight timers: a four-character usage and a u32 position in samples |
| 748 | 276 | bytes | Reserved | zeros |
| 1024 | 1024 | char[1024] | URL | a link to more information |
| 2048 | the rest | char[] | TagText | free text for scripts or tags: strings each ending CR LF |
The explorer shows each field with its offset and the timers as a list. It reports a version that is not four digits, a date with other than hyphens or a time with other than colons, a month, day, hour, minute or second out of range, a URL without a scheme, reserved bytes that are not zero, and a timer usage that is not in the standard’s table A.2, has a qualifier the table does not allow or repeats where it allows no repeat.
levl
The levl chunk, from EBU Tech 3285 supplement 3 (2001), is a peak
envelope: dwVersion, dwFormat (1 unsigned 8-bit, 2 unsigned
16-bit), dwPointsPerValue (1 positive, 2 both), dwBlockSize,
dwPeakChannels, dwNumPeakFrames,
dwPosPeakOfPeaks, dwOffsetToPeaks,
strTimestamp (28, “YYYY:MM:DD:hh:mm:ss:uuu”), 60 reserved bytes, and the peak values. Every
field was read in the supplement, which says all numbers are little-endian; the explorer reads them
big-endian in a RIFX file. It flags a format or points-to-a-value outside 1 and 2, an offset below
the header, a time stamp not in that form, non-zero reserved bytes and a header that does not add up.
DISP
A DISP chunk holds something to show for the file: a clipboard format
number (u32: 1 is text, 8 a bitmap), then the data in that format. The explorer reads
the number and shows text as text.
CSET
Four u16 fields: wCodePage, wCountryCode,
wLanguage and wDialect, big-endian here. The explorer shows
the numbers.
mext
From EBU Tech 3285 supplement 1 (12 bytes): u16 flags
SoundInformation, u16 FrameSize, u16
AncillaryDataLength, u16 flags AncillaryDataDef, 4 reserved
bytes. The explorer decodes the flag bits as the supplement gives them; see the
RIFF page.
qlty, link, dbmd, LIST exif
qlty (EBU Tech 3285 supplement 2, a capturing report) is two 32-bit security codes and
rows of text (B=, SM=, Q=, P=, EM=, T=, C=), read as a table and checked row by row.
link (supplement 4) is XML with a LINK root, FILE elements and
an optional ID, checked against its DTD. dbmd (supplement 6) is a version
and metadata segments (u8 ID, u16 size, payload, u8 checksum): the checksum, the payload sizes and the
Dolby E and Audio Info fields and every bit field of the Dolby Digital and Dolby Digital Plus segments
(tables 9 to 26 and 28 to 43) are read. These supplements define little-endian chunks. Each is described on the
RIFF page.
LIST exif holds Exif audio tags, each shown by name.
Other chunks of the 1991 specification
The plst playlist and LIST adtl labels are on the
cue page, the
CSET character set chunk on the
LIST INFO page,
and the wavl list with its slnt silence chunks on
Sample data.
Unknown chunks
Any other ID is a chunk a reader does not know, and it skips it by its size. Programs add their own chunks freely. The explorer shows the body of an unknown chunk as bytes.
Four chunks that other WAV formats define are unknown chunks in this format: the
Audio Definition Model’s chna, the 64-bit size chunk ds64, and
BW64’s XML chunks bxml and sxml. They belong with
little-endian files, and no one is known to write them in a big-endian one.