GetXmaBlockContainingSample
Uses a specified seek table to find the XBOX Media Audio (XMA) block that contains a specified decoded sample. The seek table entries in an XMA file are stored in big-endian form and sometimes need to be converted before this function is called.Syntax
Parameters
nBlockCountType: DWORD Number of blocks in the file. Same as the number of entries in the seek table. pSeekTable _In_count_(nBlockCount)
Type: DWORD* Pointer to the seek table data. nDesiredSample
Type: DWORD Decoded sample to locate. pnBlockContainingSample _Out_
Type: DWORD* Index of the block that contains the sample. pnSampleOffsetWithinBlock _Out_
Type: DWORD* Position of the sample in this block.
Return value
Type: HRESULT SuccessS_OK or error E_FAIL code.
Remarks
This function uses thepSeekTable pointer to find the XMA block that contains a given decoded sample. The seek table entries in an XMA file are stored in big-endian form.
The seek table entries may need to be converted prior to calling this function.
