Skip to main content

XMA2WAVEFORMAT

Legacy XMA2 format structure in big-endian byte order.

Syntax

Members

Version
Type: BYTE
Version of the XMA encoder that generated the file. Always 3 or later for XMA2 files. NumStreams
Type: BYTE
Number of interleaved audio streams. RESERVED
Type: BYTE
Reserved. LoopCount
Type: BYTE
Number of loop repetitions; 255 = infinite. LoopBegin
Type: DWORD
Loop begin point, in samples. LoopEnd
Type: DWORD
Loop end point, in samples. SampleRate
Type: DWORD
The file’s decoded sample rate. EncodeOptions
Type: DWORD
Options for the XMA encoder or decoder. PsuedoBytesPerSec
Type: DWORD
Used internally by the XMA encoder. BlockSizeInBytes
Type: DWORD
Size, in bytes, of this file’s XMA blocks, except possibly the last one. Always a multiple of 2 KB, because XMA blocks are arrays of 2-KB packets. SamplesEncoded
Type: DWORD
Total number of PCM samples encoded in this file. SamplesInSource
Type: DWORD
Actual number of PCM samples in the source material used to generate this file. BlockCount
Type: DWORD
The number of XMA blocks in this file, and hence also the number of entries in its seek table. Streams
Type: XMA2STREAMFORMAT[1]
Per-stream format information; the actual array length is in the NumStreams field.

Remarks

This is a legacy XMA format structure. The information provided should be used for reference only and not be used in new content.
XMAWAVEFORMAT was the structure used in XMA version 1 files. XMA2WAVEFORMAT was used in early XMA2 files. It is not placed in the usual fmt RIFF chunk but in its own XMA2 chunk. For more information about XMA2, see Overview of XMA2. For an overview of the audio architecture of XBOX One, see The sound of the future: The audio architecture in XBOX One.

Requirements

Header: xma2defs.h Supported platforms: XBOX One family consoles and XBOX Series consoles

See also

xma2defs
Last modified on August 20, 2026