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

# SetShapeXmaOutputBufferValid

> SetShapeXmaOutputBufferValid

# SetShapeXmaOutputBufferValid

出力バッファーの有効性フラグを設定します。

## 構文

```cpp theme={null}
HRESULT SetShapeXmaOutputBufferValid(  
         SHAPE_XMA_CONTEXT* context,  
         bool valid  
)  
```

### パラメーター

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

*valid*   \
型: bool

True の場合、出力バッファーが有効であることを指定します。

### 戻り値

型: HRESULT

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

## 解説

出力バッファーの有効性フラグを取得するには、[GetShapeXmaOutputBufferValid](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/getshapexmaoutputbuffervalid.md) を使用します。

入力バッファーの有効性フラグを設定するには、[SetShapeXmaInputBufferValid](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/setshapexmainputbuffervalid.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

- [GetShapeXmaOutputBufferValid](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/getshapexmaoutputbuffervalid.md)
- [SetShapeXmaInputBufferValid](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/setshapexmainputbuffervalid.md)
- [ShapeXmaContext](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [GetShapeXmaInputBufferValid](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/getshapexmainputbuffervalid.md)
- [SetShapeXmaOutputBuffer(SHAPE_XMA_CONTEXT*, void*)](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffer.md)
