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

# SetShapeXmaOutputBuffer(SHAPE_XMA_CONTEXT*, void*)

> SetShapeXmaOutputBuffer(SHAPE_XMA_CONTEXT*, void*)

# SetShapeXmaOutputBuffer(SHAPE\_XMA\_CONTEXT\*, void\*)

出力バッファーのアドレスを設定します。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
HRESULT SetShapeXmaOutputBuffer(  
         SHAPE_XMA_CONTEXT* context,  
         void* buffer  
)  
```

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

*buffer*   \_In\_\
型: void\*

出力バッファーへのポインター。

<a id="retvalSection" />

### 戻り値

型: HRESULT

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

<a id="remarksSection" />

## 解説

物理アドレスを使用して出力バッファーのアドレスを設定するには、[SetShapeXmaOutputBuffer(SHAPE\_XMA\_CONTEXT\*, APU\_ADDRESS)](/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffer_2) を使用します。

出力バッファーのアドレスを取得するには、[GetShapeXmaOutputBuffer](/reference/audio/shapexmacontext/functions/getshapexmaoutputbuffer) を使用します。

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

- [SetShapeXmaOutputBuffer(SHAPE_XMA_CONTEXT*, APU_ADDRESS)](/ja-jp/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffer_2.md)
- [GetShapeXmaOutputBuffer](/ja-jp/reference/audio/shapexmacontext/functions/getshapexmaoutputbuffer.md)
- [ShapeXmaContext](/ja-jp/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [SetShapeXmaOutputBufferValid](/ja-jp/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffervalid.md)
- [SetShapeXmaOutputBufferSize](/ja-jp/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffersize.md)
