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

# ShapeXmaContext

> ShapeXmaContext

# ShapeXmaContext

ShapeXmaContext API

## 函式

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

## 結構

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

## 列舉

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


## Related topics

- [ShapeXmaContext](/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [SHAPE_XMA_CONTEXT](/reference/audio/shapexmacontext/structs/shape_xma_context.md)
