Calculates the bit offset of a given frame within an XMA block or set of blocks.
DWORD GetXmaFrameBitPosition(
const BYTE *pXmaData,
DWORD nXmaDataBytes,
DWORD nStreamIndex,
DWORD nDesiredFrame
)
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.
Type: DWORD
Bit position, or returns 0 on failure.
This is an inline function, refer to the xma2defs.h file for the source code.
Header: Declared in xma2defs.h.
Library: Use xaudio2.lib and acphal.lib.