GetXmaFrameBitPosition

Calculates the bit offset of a given frame within an XMA block or set of blocks.

Syntax

DWORD GetXmaFrameBitPosition(
         const BYTE *pXmaData,
         DWORD nXmaDataBytes,
         DWORD nStreamIndex,
         DWORD nDesiredFrame
)  

Parameters

pXmaData
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 

Bit position, or returns 0 on failure.

Remarks

This is an inline function, refer to the xma2defs.h file for the source code.

Requirements

Header: Declared in xma2defs.h.

Library: Use xaudio2.lib and acphal.lib.