Skip to main content

XMA2PACKET

XBOX Media Audio (XMA) packet structure in big-endian form.

Syntax

Members

FrameCount
Type: int
Number of XMA frames that begin in this packet. FrameOffsetInBits
Type: int
Bit of XmaData where the first complete frame begins. PacketMetaData
Type: int
Metadata stored in the packet. Always 1 for XMA2. PacketSkipCount
Type: int
Number of packets that belong to other streams that must be skipped to find the next packet that belongs to this stream. XmaData
Type: BYTE[XMA_BYTES_PER_PACKET - sizeof ( DWORD )]
XMA-encoded data.

Remarks

The XMA2PACKET structure will skip 2 packets to find the next one for this stream. It uses the XMA2 signature, which it is 001. The first frame starts 527 bits into the packet. The packet contains 12 frames. In the following example, the first DWORD of a packet is 0x30107902. The packet contains 12 frames. The first frame begins 527 buts into the packet. To find the next packet for this stream, skip 2 packets.
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

Overview of XMA2
xma2defs
Last modified on August 20, 2026