GetLastXmaFrameBitPosition

Calculates the bit offset of the last complete frame in an XMA block or set of blocks.

Syntax

DWORD GetLastXmaFrameBitPosition(
         const BYTE *pXmaData,
         DWORD nXmaDataBytes,
         DWORD nStreamIndex
)  

Parameters

pXmaData
Type: BYTE *

Pointer to XMA blocks.

nXmaDataBytes
Type: DWORD 

Size of pXmaData in bytes.

nStreamIndex
Type: DWORD 

Stream within which to seek.

Return value

Type: DWORD 

The bit offset.

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.