> ## 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/ja-jp/reference/audio/shapexmacontext/structs/shape_xma_context.md)\*

[SHAPE\_XMA\_CONTEXT](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/structs/shape_xma_context.md) オブジェクトへのポインター。

*offset*   \
型: UINT32

出力バッファーの先頭からのオフセット (バイト単位)。256 の倍数である必要があります。

### 戻り値

型: HRESULT

HRESULT の成功またはエラー コード。

## 解説

出力バッファーの読み取りオフセットを取得するには、[GetShapeXmaOutputBufferReadOffset](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/getshapexmaoutputbufferreadoffset.md) を使用します。

現在の入力バッファーの読み取りオフセットを設定するには、[SetShapeXmaInputBufferReadOffset](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/setshapexmainputbufferreadoffset.md) を使用します。

詳細については、[SHAPE の概要](https://docs.xbox.com/ja-jp/build/console-features/audio/overviews/shape-overview.md) の [XMA](https://docs.xbox.com/ja-jp/build/console-features/audio/overviews/shape-overview.md#ID4EYD) セクションを参照してください。

## 要件

**ヘッダー:** shapexmacontext.h

**サポートされているプラットフォーム:** XBOX One ファミリー本体および XBOX Series 本体

## 関連項目

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


## Related topics

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