Besides ds64, fmt and data, a BW64 file can carry
any number of optional chunks. The ones that matter most are those of the Audio Definition
Model, which BW64 was made to carry. The rest are WAV’s, read the same way. A reader that
does not know a chunk skips it by its size; a chunk whose size is
0xFFFFFFFF takes its size from the
ds64 table. Every number
in them is little-endian.
Common chunks
The chunks with a page of their own:
| Chunk | Holds | Defined by |
|---|---|---|
chna | which ADM track each channel carries | EBU Tech 3285 supplement 7; ITU-R BS.2088 |
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 |
axml
An axml chunk holds XML metadata. In BW64 it carries the Audio Definition
Model (ADM, ITU-R BS.2076): a description of the programme, its content, and what
each track is, such as a channel of a loudspeaker layout or a moving object with its
position. It is the heart of a BW64 file. The
chna chunk
ties the tracks of the audio to the IDs this XML uses. The same chunk was defined for
Broadcast Wave files in EBU Tech 3285 supplement 5. ITU-R BS.2088-2 (section 5) says it may
hold any data that is XML 1.0 or later, possibly fragments of more than one schema, in any
position among the chunks, and that a receiver that cannot interpret it ignores the whole
chunk. The chunk is a header (axml and a size) and the text; for XML over
4 GB the size goes in ds64. Section 11 of the Recommendation shows how it can carry
the parameters of the old bext and ubxt chunks as XML.
The ADM sits in audioFormatExtended, usually inside the EBU Core wrapper
(ebuCoreMain, coreMetadata, format), as in all the real
files examined. Its parts, each with an ID attribute:
| Element | ID | Key attributes | Refers to |
|---|---|---|---|
audioProgramme | APR_xxxx | audioProgrammeName, audioProgrammeLanguage, start, end | audioContentIDRef |
audioContent | ACO_xxxx | audioContentName, audioContentLanguage | audioObjectIDRef |
audioObject | AO_xxxx | audioObjectName, start, duration, importance | audioPackFormatIDRef, audioObjectIDRef, audioTrackUIDRef |
audioPackFormat | AP_yyyyxxxx | audioPackFormatName, typeLabel, typeDefinition | audioChannelFormatIDRef, audioPackFormatIDRef |
audioChannelFormat | AC_yyyyxxxx | audioChannelFormatName, typeLabel, typeDefinition | holds audioBlockFormat elements |
audioBlockFormat | AB_yyyyxxxx_nnnnnnnn | rtime, duration; children position (coordinate azimuth, elevation, distance or X, Y, Z; optional bound), gain | |
audioStreamFormat | AS_yyyyxxxx | audioStreamFormatName, formatLabel, formatDefinition (0001, PCM) | audioChannelFormatIDRef, audioTrackFormatIDRef |
audioTrackFormat | AT_yyyyxxxx_zz | audioTrackFormatName, formatLabel, formatDefinition | audioStreamFormatIDRef |
audioTrackUID | ATU_xxxxxxxx (attribute UID) | sampleRate, bitDepth | audioTrackFormatIDRef, audioPackFormatIDRef |
The digits are hexadecimal. In AP_, AC_, AS_ and
AT_ IDs the first four (yyyy) give the type: 0001
DirectSpeakers, 0002 Matrix, 0003 Objects, 0004 HOA,
0005 Binaural, and a number up to 0x0FFF in the last four is a
common definition of ITU-R BS.2094 that need not be in the file (BS.2088-2, section 8.1). The
explorer shows one table for each element type, with the key attributes, the references, the
block formats’ positions and other children, and the offset of each element, so every ID,
reference and block is reachable. It reports XML that is not well formed, an ID that does not
have its form, a repeated ID, a typeLabel or typeDefinition that
disagrees with the ID, a reference to a custom (0x1000 and above) element that the
file does not define, an azimuth, elevation, distance or Cartesian position outside its range,
and any disagreement with the chna chunk.
Checked on three real files that carry an ADM: the EBU ADM renderer’s 4-channel test file
(5 UIDs, moving object positions and direct-speaker bounds), a Pro Tools export of 14
tracks (374 block formats) and a Nuendo export of 34 tracks (28,522 bytes of XML). All
their IDs, references and chna entries agree, and the explorer reports nothing.
Nine plain XML files (eight from the EBU ADM renderer’s tests, one of them a schema
description and one a Matrix example, and one from libadm) were run through the same tables and checks. The element and attribute
names in the table are those these files use, and each was read in ITU-R BS.2076-3. One of those test files (example5.xml) gives its programmes and
contents IDs of the forms APG_1001 and ACN_1001 instead of
APR_ and ACO_, and the explorer reports them. The block format’s other children in the files (cartesian,
width, height, depth, diffuse,
jumpPosition, speakerLabel, frequency) are listed in
the table’s Other column. The explorer also makes tables for, and checks, the detail elements of ITU-R BS.2076-3
(read in English, February 2025): dialogue with its content kinds, loudnessMetadata
with its renderer, audioObjectInteraction, HOA components, Matrix blocks and packs, Binaural
channels, the time formats and block IDs. The
RIFF page lists what each check is.
BS.2088-2 (November 2025), which defines the BW64 chunks, was read in English.
bxml
A bxml chunk may hold the XML metadata compressed instead of the
axml chunk. It is a u16 fmtType (0x0001 gzip,
RFC 1952; 0x0000 uncompressed XML) followed by the XML data, and for more than
4 GB the size goes in ds64 (ITU-R BS.2088-2, section 6). The explorer
decompresses gzip and shows the XML as text.
sxml
An sxml chunk holds XML metadata, compressed or not, split into parts each
covering a number of audio samples, for time-variant metadata such as a serial ADM
(ITU-R BS.2125). ITU-R BS.2088-2 (section 7) lays it out so:
| Size | Type | Field |
|---|---|---|
| 2 | u16 | fmtType: 0x0001 gzip, 0x0000 uncompressed |
| 8 | u32 low, u32 high | subXMLCkTbSize: the size of the sub-chunk table including the 4 bytes of nSubXMLChunks |
| 4 | u32 | nSubXMLChunks |
| 8 + size each | record | each: u32 subXMLChunkSize (the XML, not counting the next 8 bytes), u32 nSamplesSubDataChunk (audio samples a channel), then the XML |
| 4 | u32 | nAlignmentPoints |
| 16 each | record | each: u64 subXMLChunkByteOffset (from after the chunk’s 8-byte header) and u64 nSamplesAlignPoint (samples a channel from the start of the data) |
The explorer takes this apart and lists the pieces and alignment points.
Filler: JUNK, junk, PAD and FLLR
These chunks hold nothing. In the words of the 1991 RIFF 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. PAD , lower-case junk and
Apple’s FLLR 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 start time is the same number as bext’s time reference: in a Sound Devices file seen,
TIMESTAMP_SAMPLES_SINCE_MIDNIGHT_LO is 2,190,940,753, and so is the time reference
of its bext chunk. Writers differ in the details: the same file writes the high half as
0000000000, and a Pyramix file stores the whole chunk as UTF-16 without a byte
order mark, padded with NULs. Other programs that add their own elements are common, and the
specification lets them.
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.
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 explorer lists the text frames.
An ID3v1 tag, 128 bytes starting TAG, is sometimes appended after the end
of a WAV file’s outer chunk, as on an MP3 file. Readers ignore it; the explorer
recognises it.
inst
The instrument chunk gives a sampler the note and velocity range to play a sample on. It is 7 bytes, so 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.
| 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.
| 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. In a file longer than 232 frames a 4-byte position cannot reach the end.
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: what it is, who it is for and when it may air. 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, and the sample file of cartchunk.org reads
as it says. Text fields are ASCII, padded with NULs; numbers are little-endian. 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 | 10 | char[10] | StartDate | the first date it may air, YYYY-MM-DD with hyphens; 1900-01-01 means start at once. cartchunk.org’s sample writes 1900/01/01 |
| 462 | 8 | char[8] | StartTime | the time on that date, hh:mm:ss |
| 470 | 10 | char[10] | EndDate | the last date it may air (the sample has 2099/12/31) |
| 480 | 8 | char[8] | EndTime | the time on that date |
| 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 (32768 in the sample) |
| 684 | 8 × 8 | record | PostTimer | eight timers: a four-character usage and a u32 position in samples (the sample uses MRK at 112,000, SEC1 at 152,533 and EOD at 201,024) |
| 748 | 276 | bytes | Reserved | zeros |
| 1024 | 1024 | char[1024] | URL | a link to more information: the advertiser’s site on a commercial, the artist’s on a song |
| 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. Checked on cartchunk.org’s CC_0101.WAV, which
carries a version 01.01 chunk: every field reads as described, and the only reports are its two dates
written with slashes, which the standard does not allow.
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 (see the
RIFF page); the explorer 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.
CSET
Four u16 fields: wCodePage, wCountryCode,
wLanguage and wDialect. 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. Each is described on the
RIFF page.
LIST exif holds Exif audio tags, each shown by name.
DISP
A DISP chunk holds something to show for the file: a Windows clipboard
format number (u32: 1 for text, 8 for a bitmap), then the data in that format. It is
usually traced to the 1991 RIFF specification, which was not checked for it here.
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; libbw64
does the same. Programs add their own chunks freely. The explorer shows the body of an
unknown chunk as bytes. RF64’s marker chunk r64m, from EBU Tech 3306
version 1.1, is read by the explorer as that document gives it (see the
RF64 page), though
BS.2088-2 does not mention it.
Where they sit
EBU Tech 3285 supplement 7 places chna before the data and the
axml chunk. Other metadata chunks can come before or after the data
chunk.
0BW64 WAVE12 bytes12ds64 the 64-bit sizes36 bytes or more48fmt the format24 bytes or more…chna the track allocationvaries…data the samplesvaries…axml the ADM metadatavaries