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

# SetShapeXmaCurrentInputBuffer

> SetShapeXmaCurrentInputBuffer

# SetShapeXmaCurrentInputBuffer

現在の入力バッファを設定します。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
HRESULT SetShapeXmaCurrentInputBuffer(  
         SHAPE_XMA_CONTEXT* context,  
         UINT32 currentBuffer  
)  
```

<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) オブジェクトへのポインター。

*currentBuffer*   \
型: UINT32

現在の入力バッファ。0 は左バッファ、1 は右バッファを指定します。

<a id="retvalSection" />

### 戻り値

型: HRESULT

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

<a id="remarksSection" />

## 解説

左入力バッファのアドレスを設定するには、[SetShapeXmaInputBuffer0(SHAPE\_XMA\_CONTEXT\*, const void\*)](/reference/audio/shapexmacontext/functions/setshapexmainputbuffer0) または [SetShapeXmaInputBuffer0(SHAPE\_XMA\_CONTEXT\*, APU\_ADDRESS)](/reference/audio/shapexmacontext/functions/setshapexmainputbuffer0_2) を使用します。右入力バッファのアドレスを設定するには、[SetShapeXmaInputBuffer1(SHAPE\_XMA\_CONTEXT\*, const void\*)](/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1) または [SetShapeXmaInputBuffer1(SHAPE\_XMA\_CONTEXT\*, APU\_ADDRESS)](/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1_2) を使用します。

現在の入力バッファを取得するには、[GetShapeXmaCurrentInputBuffer](/reference/audio/shapexmacontext/functions/getshapexmacurrentinputbuffer) を使用します。

詳細については、[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)


## Related topics

- [GetShapeXmaCurrentInputBuffer](/ja-jp/reference/audio/shapexmacontext/functions/getshapexmacurrentinputbuffer.md)
- [ShapeXmaContext](/ja-jp/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [SetShapeXmaInputBufferReadOffset](/ja-jp/reference/audio/shapexmacontext/functions/setshapexmainputbufferreadoffset.md)
- [GetShapeXmaInputBufferReadOffset](/ja-jp/reference/audio/shapexmacontext/functions/getshapexmainputbufferreadoffset.md)
- [SetShapeXmaInputBufferValid](/ja-jp/reference/audio/shapexmacontext/functions/setshapexmainputbuffervalid.md)
