> ## 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.

# ShapeXmaContext

> ShapeXmaContext

# ShapeXmaContext

ShapeXmaContext API

## 函式

| 函式 | 描述 |
| - | - |
| [GetShapeXmaCurrentInputBuffer](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmacurrentinputbuffer.md) | 取得目前的輸入緩衝區。 |
| [GetShapeXmaErrorSet](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaerrorset.md) | 取得表示是否發生錯誤的旗標。 |
| [GetShapeXmaErrorStatus](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaerrorstatus.md) | 取得目前的錯誤值。 |
| [GetShapeXmaInputBuffer0](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmainputbuffer0.md) | 取得左側輸入緩衝區的位址。 |
| [GetShapeXmaInputBuffer0Size](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmainputbuffer0size.md) | 取得左側輸入緩衝區的大小。 |
| [GetShapeXmaInputBuffer0Valid](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmainputbuffer0valid.md) | 取得左側輸入緩衝區的有效性旗標。 |
| [GetShapeXmaInputBuffer1](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmainputbuffer1.md) | 取得右側輸入緩衝區的位址。 |
| [GetShapeXmaInputBuffer1Size](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmainputbuffer1size.md) | 取得右側輸入緩衝區的大小。 |
| [GetShapeXmaInputBuffer1Valid](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmainputbuffer1valid.md) | 取得右側輸入緩衝區的有效性旗標。 |
| [GetShapeXmaInputBufferReadOffset](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmainputbufferreadoffset.md) | 取得目前輸入緩衝區的讀取位移。 |
| [GetShapeXmaInputBufferValid](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmainputbuffervalid.md) | 取得輸入緩衝區的有效性旗標。 |
| [GetShapeXmaInterruptWhenDone](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmainterruptwhendone.md) | 保留供內部使用。 |
| [GetShapeXmaLoopEndOffset](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaloopendoffset.md) | 取得 XMA 內容迴圈的結束位移。 |
| [GetShapeXmaLoopStartOffset](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaloopstartoffset.md) | 取得 XMA 內容迴圈的開始位移。 |
| [GetShapeXmaLoopSubframeEnd](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaloopsubframeend.md) | 取得迴圈最後一個子框架的編號。 |
| [GetShapeXmaLoopSubframeSkip](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaloopsubframeskip.md) | 取得迴圈開始時要略過的子框架數目。 |
| [GetShapeXmaNumChannels](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmanumchannels.md) | 取得聲道數目。 |
| [GetShapeXmaNumLoops](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmanumloops.md) | 取得 XMA 內容迴圈的數目。 |
| [GetShapeXmaNumSubframesToDecode](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmanumsubframestodecode.md) | 取得每次處理要解碼的子框架數目。 |
| [GetShapeXmaNumSubframesToSkip](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmanumsubframestoskip.md) | 取得要略過的子框架數目。 |
| [GetShapeXmaOutputBuffer](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaoutputbuffer.md) | 取得輸出緩衝區的位址。 |
| [GetShapeXmaOutputBufferNumBytesAvailable](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaoutputbuffernumbytesavailable.md) | 取得可從輸出緩衝區讀取的位元組數目。 |
| [GetShapeXmaOutputBufferNumFramesAvailable](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaoutputbuffernumframesavailable.md) | 取得可從輸出緩衝區讀取的框架數目。 |
| [GetShapeXmaOutputBufferReadOffset](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaoutputbufferreadoffset.md) | 取得輸出緩衝區的讀取位移。 |
| [GetShapeXmaOutputBufferSize](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaoutputbuffersize.md) | 取得輸出緩衝區的大小。 |
| [GetShapeXmaOutputBufferValid](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaoutputbuffervalid.md) | 取得輸出緩衝區的有效性旗標。 |
| [GetShapeXmaOutputBufferWriteOffset](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaoutputbufferwriteoffset.md) | 取得輸出緩衝區的寫入位移。 |
| [GetShapeXmaOverlapAddBuffer](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaoverlapaddbuffer.md) | 取得重疊相加緩衝區的位址。 |
| [GetShapeXmaPacketMetadata](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmapacketmetadata.md) | 保留供內部使用。 |
| [GetShapeXmaParserErrorSet](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaparsererrorset.md) | 取得表示是否發生 XMA 剖析器錯誤的旗標。 |
| [GetShapeXmaParserErrorStatus](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaparsererrorstatus.md) | 取得目前的 XMA 剖析器錯誤值。 |
| [GetShapeXmaSampleRate](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmasamplerate.md) | 取得取樣率。 |
| [GetShapeXmaStopWhenDone](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmastopwhendone.md) | 保留供內部使用。 |
| [SetShapeXmaCurrentInputBuffer](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmacurrentinputbuffer.md) | 設定目前的輸入緩衝區。 |
| [SetShapeXmaInputBuffer0(SHAPE\_XMA\_CONTEXT\*, const void\*)](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmainputbuffer0.md) | 設定左側輸入緩衝區的位址。 |
| [SetShapeXmaInputBuffer0(SHAPE\_XMA\_CONTEXT\*, APU\_ADDRESS)](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmainputbuffer0_2.md) | 設定左側輸入緩衝區的位址。 |
| [SetShapeXmaInputBuffer0Size](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmainputbuffer0size.md) | 設定左側輸入緩衝區的大小。 |
| [SetShapeXmaInputBuffer0Valid](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmainputbuffer0valid.md) | 設定左側輸入緩衝區的有效性旗標。 |
| [SetShapeXmaInputBuffer1(SHAPE\_XMA\_CONTEXT\*, const void\*)](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1.md) | 設定右側輸入緩衝區的位址。 |
| [SetShapeXmaInputBuffer1(SHAPE\_XMA\_CONTEXT\*, APU\_ADDRESS)](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1_2.md) | 設定右側輸入緩衝區的位址。 |
| [SetShapeXmaInputBuffer1Size](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1size.md) | 設定右側輸入緩衝區的大小。 |
| [SetShapeXmaInputBuffer1Valid](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1valid.md) | 設定右側輸入緩衝區的有效性旗標。 |
| [SetShapeXmaInputBufferReadOffset](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmainputbufferreadoffset.md) | 設定目前輸入緩衝區的讀取位移。 |
| [SetShapeXmaInputBufferValid](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmainputbuffervalid.md) | 設定輸入緩衝區的有效性旗標。 |
| [SetShapeXmaInterruptWhenDone](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmainterruptwhendone.md) | 保留供內部使用。 |
| [SetShapeXmaLoopEndOffset](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmaloopendoffset.md) | 設定 XMA 內容迴圈的結束位移。 |
| [SetShapeXmaLoopStartOffset](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmaloopstartoffset.md) | 設定 XMA 內容迴圈的開始位移。 |
| [SetShapeXmaLoopSubframeEnd](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmaloopsubframeend.md) | 指定迴圈的最後一個子框架。 |
| [SetShapeXmaLoopSubframeSkip](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmaloopsubframeskip.md) | 設定迴圈開始時要略過的子框架數目。 |
| [SetShapeXmaNumChannels](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmanumchannels.md) | 設定聲道數目。 |
| [SetShapeXmaNumLoops](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmanumloops.md) | 設定 XMA 內容迴圈的數目。 |
| [SetShapeXmaNumSubframesToDecode](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmanumsubframestodecode.md) | 設定每次處理要解碼的子框架數目。 |
| [SetShapeXmaNumSubframesToSkip](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmanumsubframestoskip.md) | 設定要略過的子框架數目。 |
| [SetShapeXmaOutputBuffer(SHAPE\_XMA\_CONTEXT\*, void\*)](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffer.md) | 設定輸出緩衝區的位址。 |
| [SetShapeXmaOutputBuffer(SHAPE\_XMA\_CONTEXT\*, APU\_ADDRESS)](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffer_2.md) | 設定輸出緩衝區的位址。 |
| [SetShapeXmaOutputBufferReadOffset](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmaoutputbufferreadoffset.md) | 設定輸出緩衝區的讀取位移。 |
| [SetShapeXmaOutputBufferSize](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffersize.md) | 設定輸出緩衝區的大小。 |
| [SetShapeXmaOutputBufferValid](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffervalid.md) | 設定輸出緩衝區的有效性旗標。 |
| [SetShapeXmaOverlapAddBuffer(SHAPE\_XMA\_CONTEXT\*, void\*)](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmaoverlapaddbuffer.md) | 設定重疊相加緩衝區的位址。 |
| [SetShapeXmaOverlapAddBuffer(SHAPE\_XMA\_CONTEXT\*, APU\_ADDRESS)](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmaoverlapaddbuffer_2.md) | 設定重疊相加緩衝區的位址。 |
| [SetShapeXmaPacketMetadata](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmapacketmetadata.md) | 保留供內部使用。 |
| [SetShapeXmaSampleRate(SHAPE\_XMA\_CONTEXT\*, SHAPE\_XMA\_SAMPLE\_RATE)](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmasamplerate.md) | 設定取樣率。 |
| [SetShapeXmaSampleRate(SHAPE\_XMA\_CONTEXT\*, UINT32)](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmasamplerate_2.md) | 設定取樣率。 |
| [SetShapeXmaStopWhenDone](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmastopwhendone.md) | 保留供內部使用。 |

## 結構

| 結構 | 描述 |
| - | - |
| [SHAPE\_XMA\_CONTEXT](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/structs/shape_xma_context.md) | XBOX Media Audio (XMA) 內容。 |

## 列舉

| 列舉 | 描述 |
| - | - |
| [SHAPE\_XMA\_SAMPLE\_RATE](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/enums/shape_xma_sample_rate.md) | 有效的取樣率。 |


## Related topics

- [SHAPE_XMA_CONTEXT](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/structs/shape_xma_context.md)
- [SetShapeXmaSampleRate(SHAPE_XMA_CONTEXT*, SHAPE_XMA_SAMPLE_RATE)](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmasamplerate.md)
- [SetShapeXmaOutputBuffer(SHAPE_XMA_CONTEXT*, void*)](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffer.md)
- [SetShapeXmaOverlapAddBuffer(SHAPE_XMA_CONTEXT*, void*)](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmaoverlapaddbuffer.md)
- [SetShapeXmaSampleRate(SHAPE_XMA_CONTEXT*, UINT32)](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmasamplerate_2.md)
