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

# SetShapeXmaOutputBufferReadOffset

> SetShapeXmaOutputBufferReadOffset

# SetShapeXmaOutputBufferReadOffset

設定輸出緩衝區的讀取位移。

## 語法

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

### 參數

*context*   \_Inout\_\
類型: [SHAPE\_XMA\_CONTEXT](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/structs/shape_xma_context.md)\*

[SHAPE\_XMA\_CONTEXT](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/structs/shape_xma_context.md) 物件的指標。

*offset*   \
類型: UINT32

從輸出緩衝區開頭算起的位移 (以位元組為單位)。必須是 256 的倍數。

### 傳回值

類型: HRESULT

HRESULT 成功或錯誤碼。

## 備註

若要取得輸出緩衝區的讀取位移，請使用 [GetShapeXmaOutputBufferReadOffset](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaoutputbufferreadoffset.md)。

若要設定目前輸入緩衝區的讀取位移，請使用 [SetShapeXmaInputBufferReadOffset](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmainputbufferreadoffset.md)。

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

## 需求

**標頭:** shapexmacontext.h

**支援的平台:** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[ShapeXmaContext](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/shapexmacontext_members.md)


## Related topics

- [GetShapeXmaOutputBufferReadOffset](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaoutputbufferreadoffset.md)
- [ShapeXmaContext](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [SetShapeXmaInputBufferReadOffset](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmainputbufferreadoffset.md)
- [GetShapeXmaOutputBufferWriteOffset](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaoutputbufferwriteoffset.md)
- [GetShapeXmaInputBufferReadOffset](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmainputbufferreadoffset.md)
