XMA2Defs
XMA2Defs APIsFunctions
| Function | Description |
|---|---|
| GetLastXmaFrameBitPosition | Calculates the bit offset of the last complete frame in an XMA block or a set of blocks. |
| GetStandardChannelMaskFromXmaMask | Converts between WAVEFORMATEXTENSIBLE channel masks and XMA channel masks. |
| GetXmaBlockContainingSample | Use a specified seek table to find the XMA block that contains a specified decoded sample. |
| GetXmaChannelMaskFromStandardMask | Converts between WAVEFORMATEXTENSIBLE channel masks and XMA channel masks. |
| GetXmaDecodePositionForSample | Obtains the information needed to make the decoder generate audio starting at a specified sample position relative to the beginning of the specified XMA block. |
| GetXmaFrameBitPosition | Calculates the bit offset of a specified frame within an XMA block or a set of blocks. |
| GetXmaFrameLengthInBits | Reads a specified frame’s LengthInBits field. |
| GetXmaPacketFirstFrameOffsetInBits | Helper function for the XMA2PACKET structure. Returns the first frame offset. |
| GetXmaPacketFrameCount | Helper function for the XMA2PACKET structure. Returns the packet frame count. |
| GetXmaPacketMetadata | Helper function for the XMA2PACKET structure. |
| GetXmaPacketSkipCount | Helper function for the XMA2PACKET structure. Returns the packets from other streams to skip. |
| GetXmaSampleRate | Obtains the legal XMA sample rate (24, 32, 44.1, or 48 KHz) that corresponds to a generic sample rate. |
| LocalizeXma2Format | Modifies an XMA2WAVEFORMATEX structure in place to comply with the current platform’s byte-ordering rules (little-endian or big-endian). |
Structures
| Structure | Description |
|---|---|
| XMA2PACKET | XMA packet structure (in big-endian form). |
| XMA2STREAMFORMAT | Structure used in XMA2WAVEFORMAT for per-stream data. |
| XMA2WAVEFORMAT | Legacy XMA2 format structure in big-endian byte order. |
| XMA2WAVEFORMATEX | The recommended way to express format information for XMA2 files. |
| XMASTREAMFORMAT | Used in XMAWAVEFORMAT for per-stream data. |
| XMAWAVEFORMAT | Structure of the legacy XMA1 format. |
