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

# SetShapeXmaInputBufferValid

> SetShapeXmaInputBufferValid

# SetShapeXmaInputBufferValid

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

## 構文

```cpp theme={null}
HRESULT SetShapeXmaInputBufferValid(  
         SHAPE_XMA_CONTEXT* context,  
         UINT32 valid  
)  
```

### パラメーター

*context*   \_In\_\
型: [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*   \
型: UINT32

入力バッファの有効性フラグ。

| 値 | 説明 |
| - | - |
| 00 | どちらのバッファも有効ではありません。 |
| 01 | バッファ 0 (左) のみが有効です。 |
| 10 | バッファ 1 (右) のみが有効です。 |
| 11 | 両方のバッファが有効です。 |

### 戻り値

型: HRESULT

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

## 解説

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

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

- [GetShapeXmaInputBufferValid](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/getshapexmainputbuffervalid.md)
- [SetShapeXmaOutputBufferValid](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffervalid.md)
- [ShapeXmaContext](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [SetShapeXmaInputBuffer1Valid](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1valid.md)
- [SetShapeXmaInputBuffer0Valid](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/setshapexmainputbuffer0valid.md)
