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

# SetShapeXmaOutputBufferSize

> SetShapeXmaOutputBufferSize

# SetShapeXmaOutputBufferSize

出力バッファーのサイズを設定します。

## 構文

```cpp theme={null}
HRESULT SetShapeXmaOutputBufferSize(  
         SHAPE_XMA_CONTEXT* context,  
         UINT32 size  
)  
```

### パラメーター

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

*size*   \
型: UINT32

出力バッファーのサイズ (バイト単位)。256 の倍数である必要があります。

### 戻り値

型: HRESULT

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

## 解説

出力バッファーのサイズを取得するには、[GetShapeXmaOutputBufferSize](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/getshapexmaoutputbuffersize.md) を使用します。

入力バッファーのサイズを設定するには、[SetShapeXmaInputBuffer0Size](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/setshapexmainputbuffer0size.md) および [SetShapeXmaInputBuffer1Size](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1size.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

- [GetShapeXmaOutputBufferSize](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/getshapexmaoutputbuffersize.md)
- [ShapeXmaContext](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [SetShapeXmaOutputBuffer(SHAPE_XMA_CONTEXT*, void*)](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffer.md)
- [SetShapeXmaOutputBufferValid](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffervalid.md)
- [SetShapeXmaOutputBuffer(SHAPE_XMA_CONTEXT*, APU_ADDRESS)](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffer_2.md)
