Skip to main content

GetXmaFrameBitPosition

Calculates the bit offset of a specified frame within an XBOX Media Audio (XMA) block or within a set of blocks.

Syntax

Parameters

pXmaData   _In_bytecount_(nXmaDataBytes)
Type: BYTE*
Pointer to XMA blocks. nXmaDataBytes   
Type: DWORD
Size of pXmaData, in bytes. nStreamIndex   
Type: DWORD
Stream within which to seek. nDesiredFrame   
Type: DWORD
Frame sought.

Return value

Type: DWORD Returns the bit position; on failure, returns 0.

Remarks

This function calculates the bit offset of a given frame within an XMA block or set of blocks. It returns 0 with a failure. The pointer to the XMA block(s) uses the pXmadata parameter. 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

Audio Overview xma2defs
Last modified on August 20, 2026