Skip to main content

GetXmaFrameLengthInBits

Reads the LengthInBits field of a specified frame.

Syntax

Parameters

pPacket   _In_
Type: BYTE*
Pointer to XMA packets that contain the frame. nBitPosition   
Type: DWORD
Bit offset of the frame within this packet.

Return value

Type: DWORD Length, in bits.

Remarks

As shown in the code example below, this function reads the LengthInBits field of a specified frame.
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