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

# SetShapeXmaLoopEndOffset

> SetShapeXmaLoopEndOffset

# SetShapeXmaLoopEndOffset

設定 XMA 內容迴圈的結束位移。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
HRESULT SetShapeXmaLoopEndOffset(  
         SHAPE_XMA_CONTEXT* context,  
         UINT32 offset  
)  
```

<a id="parametersSection" />

### 參數

*context*   \_Inout\_\
類型：[SHAPE\_XMA\_CONTEXT](/zh-TW/reference/audio/shapexmacontext/structs/shape_xma_context)\*

指向 [SHAPE\_XMA\_CONTEXT](/zh-TW/reference/audio/shapexmacontext/structs/shape_xma_context) 物件的指標。

*offset*   \
類型：UINT32

從讀取緩衝區指標算起、解碼要結束之處的位移 (以位元為單位)。

<a id="retvalSection" />

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

<a id="remarksSection" />

## 備註

如需 XMA 內容迴圈的指引，請參閱 [ACP 概觀](/zh-TW/build/console-features/audio/overviews/acp-overview)中的[針對 PCM 與 XMA 資料使用 SRC 的指導方針](/zh-TW/build/console-features/audio/overviews/acp-overview#ID4EUPAC)。

若要取得目前的結束位移，請使用 [GetShapeXmaLoopEndOffset](/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaloopendoffset)。

如需詳細資訊，請參閱 [SHAPE 概觀](/zh-TW/build/console-features/audio/overviews/shape-overview)中的 [XMA](/zh-TW/build/console-features/audio/overviews/shape-overview#ID4EYD) 一節。

<a id="requirementsSection" />

## 需求

**標頭：** shapexmacontext.h

**支援的平台：** XBOX One 系列主機與 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

[ShapeXmaContext](/zh-TW/reference/audio/shapexmacontext/shapexmacontext_members)


## Related topics

- [SetShapeXmaLoopEndOffset](/ko/reference/audio/shapexmacontext/functions/setshapexmaloopendoffset.md)
- [GetShapeXmaLoopEndOffset](/reference/audio/shapexmacontext/functions/getshapexmaloopendoffset.md)
- [ShapeXmaContext](/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [SetShapeXmaLoopStartOffset](/reference/audio/shapexmacontext/functions/setshapexmaloopstartoffset.md)
- [GetShapeXmaLoopStartOffset](/reference/audio/shapexmacontext/functions/getshapexmaloopstartoffset.md)
