> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XMA2Defs

> XMA2Defs

# XMA2Defs

XMA2Defs API

## 函式

| 函式 | 描述 |
| - | - |
| [GetLastXmaFrameBitPosition](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/functions/getlastxmaframebitposition.md) | 計算 XMA 區塊或一組區塊中最後一個完整框架的位元位移。 |
| [GetStandardChannelMaskFromXmaMask](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/functions/getstandardchannelmaskfromxmamask.md) | 在 WAVEFORMATEXTENSIBLE 聲道遮罩與 XMA 聲道遮罩之間進行轉換。 |
| [GetXmaBlockContainingSample](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/functions/getxmablockcontainingsample.md) | 使用指定的搜尋表，尋找包含指定已解碼樣本的 XMA 區塊。 |
| [GetXmaChannelMaskFromStandardMask](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/functions/getxmachannelmaskfromstandardmask.md) | 在 WAVEFORMATEXTENSIBLE 聲道遮罩與 XMA 聲道遮罩之間進行轉換。 |
| [GetXmaDecodePositionForSample](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/functions/getxmadecodepositionforsample.md) | 取得讓解碼器從相對於指定 XMA 區塊開頭的指定樣本位置開始產生音訊所需的資訊。 |
| [GetXmaFrameBitPosition](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/functions/getxmaframebitposition.md) | 計算指定框架在 XMA 區塊或一組區塊內的位元位移。 |
| [GetXmaFrameLengthInBits](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/functions/getxmaframelengthinbits.md) | 讀取指定框架的 LengthInBits 欄位。 |
| [GetXmaPacketFirstFrameOffsetInBits](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/functions/getxmapacketfirstframeoffsetinbits.md) | XMA2PACKET 結構的協助程式函式。傳回第一個框架的位移。 |
| [GetXmaPacketFrameCount](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/functions/getxmapacketframecount.md) | XMA2PACKET 結構的協助程式函式。傳回封包框架計數。 |
| [GetXmaPacketMetadata](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/functions/getxmapacketmetadata.md) | XMA2PACKET 結構的協助程式函式。 |
| [GetXmaPacketSkipCount](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/functions/getxmapacketskipcount.md) | XMA2PACKET 結構的協助程式函式。傳回要略過的其他串流封包。 |
| [GetXmaSampleRate](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/functions/getxmasamplerate.md) | 取得對應至一般取樣率的合法 XMA 取樣率 (24、32、44.1 或 48 KHz)。 |
| [LocalizeXma2Format](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/functions/localizexma2format.md) | 就地修改 XMA2WAVEFORMATEX 結構，使其符合目前平台的位元組順序規則 (little-endian 或 big-endian)。 |

## 結構

| 結構 | 描述 |
| - | - |
| [XMA2PACKET](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/structs/xma2packet.md) | XMA 封包結構 (big-endian 格式)。 |
| [XMA2STREAMFORMAT](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/structs/xma2streamformat.md) | 用於 XMA2WAVEFORMAT 中個別串流資料的結構。 |
| [XMA2WAVEFORMAT](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/structs/xma2waveformat.md) | 採用 big-endian 位元組順序的舊版 XMA2 格式結構。 |
| [XMA2WAVEFORMATEX](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/structs/xma2waveformatex.md) | 表示 XMA2 檔案格式資訊的建議方式。 |
| [XMASTREAMFORMAT](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/structs/xmastreamformat.md) | 用於 XMAWAVEFORMAT 中的個別串流資料。 |
| [XMAWAVEFORMAT](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/structs/xmawaveformat.md) | 舊版 XMA1 格式的結構。 |

## 概念文件

* [XMA2 概觀](https://docs.xbox.com/zh-TW/build/console-features/audio/overviews/xma2-overview.md)

## 另請參閱

[音訊 API 參考](https://docs.xbox.com/zh-TW/reference/audio/gc-reference-audio-toc.md)


## Related topics

- [XMA2 概觀](https://docs.xbox.com/zh-TW/build/console-features/audio/overviews/xma2-overview.md)
- [音訊 API 參考](https://docs.xbox.com/zh-TW/reference/audio/gc-reference-audio-toc.md)
- [XMA2WAVEFORMATEX](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/structs/xma2waveformatex.md)
- [XMA2PACKET](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/structs/xma2packet.md)
- [XMA2STREAMFORMAT](https://docs.xbox.com/zh-TW/reference/audio/xma2defs/structs/xma2streamformat.md)
