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

# SetShapeXmaInputBufferReadOffset

> SetShapeXmaInputBufferReadOffset

# SetShapeXmaInputBufferReadOffset

現在の入力バッファの読み取りオフセットを設定します。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
HRESULT SetShapeXmaInputBufferReadOffset(  
         SHAPE_XMA_CONTEXT* context,  
         UINT32 offsetInBits  
)  
```

<a id="parametersSection" />

### パラメーター

*context*   \_Inout\_\
型: [SHAPE\_XMA\_CONTEXT](/reference/audio/shapexmacontext/structs/shape_xma_context)\*

[SHAPE\_XMA\_CONTEXT](/reference/audio/shapexmacontext/structs/shape_xma_context) オブジェクトへのポインター。

*offsetInBits*   \
型: UINT32

入力バッファの先頭からのオフセット (ビット単位)。

<a id="retvalSection" />

### 戻り値

型: HRESULT

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

<a id="remarksSection" />

## 解説

ハードウェア XMA デコーダーでは、XMA コンテキストの読み取りオフセットは通常、32、または 32 に 2048 バイトの倍数を加えた値に初期化する必要があります。
現在の入力バッファを取得するには、[GetShapeXmaCurrentInputBuffer](/reference/audio/shapexmacontext/functions/getshapexmacurrentinputbuffer) を使用します。

現在の入力バッファの読み取りオフセットを取得するには、[GetShapeXmaInputBufferReadOffset](/reference/audio/shapexmacontext/functions/getshapexmainputbufferreadoffset) を使用します。

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

<a id="requirementsSection" />

## 要件

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

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

<a id="seealsoSection" />

## 関連項目

[ShapeXmaContext](/reference/audio/shapexmacontext/shapexmacontext_members)
