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

# SetShapeFiltVolOutputGain

> SetShapeFiltVolOutputGain

# SetShapeFiltVolOutputGain

出力ゲインを設定します。

## Syntax

```cpp theme={null}
HRESULT SetShapeFiltVolOutputGain(  
         SHAPE_FILTVOL_CONTEXT* context,  
         float outputGain  
)  
```

### Parameters

*context*   \_Inout\_\
Type: [SHAPE\_FILTVOL\_CONTEXT](https://docs.xbox.com/ja-jp/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context.md)\*

[SHAPE\_FILTVOL\_CONTEXT](https://docs.xbox.com/ja-jp/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context.md) オブジェクトへのポインター。

*outputGain*   \
Type: float

出力ゲイン。

### Return value

Type: HRESULT

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

## Remarks

ゲインおよびゲインターゲットは、-2.0 ～ 2.0 の範囲の振幅値です。負の値は信号を反転します。

| Values | Description |
| :- | :- |
| 1.0 ～ 2.0 | 増幅 |
| 1.0 | ユニティゲイン |
| 0.0 ～ 1.0 | ゲインリダクション |
| 0.0 | 無音 |
| -1.0 ～ 0.0 | ゲインリダクション、反転信号 |
| -1.0 | ユニティゲイン、反転信号 |
| -2.0 ～ -1.0 | 増幅、反転信号 |

現在の出力ゲインを取得するには、[GetShapeFiltVolOutputGain](https://docs.xbox.com/ja-jp/reference/audio/shapefiltvolcontext/functions/getshapefiltvoloutputgain.md) を使用します。

詳細については、[SHAPE の概要](https://docs.xbox.com/ja-jp/build/console-features/audio/overviews/shape-overview.md) の [フィルター/ボリュームブロック (FLTVOL)](https://docs.xbox.com/ja-jp/build/console-features/audio/overviews/shape-overview.md#ID4EBH) セクションを参照してください。

## Requirements

**Header:** shapefiltvolcontext.h

**Supported platforms:** XBOX One ファミリー本体および XBOX Series 本体

## See also

[SetShapeFiltVolOutputGainTarget](https://docs.xbox.com/ja-jp/reference/audio/shapefiltvolcontext/functions/setshapefiltvoloutputgaintarget.md)\
[ShapeFiltVolContext](https://docs.xbox.com/ja-jp/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members.md)


## Related topics

- [SetShapeFiltVolOutputGainTarget](https://docs.xbox.com/ja-jp/reference/audio/shapefiltvolcontext/functions/setshapefiltvoloutputgaintarget.md)
- [GetShapeFiltVolOutputGain](https://docs.xbox.com/ja-jp/reference/audio/shapefiltvolcontext/functions/getshapefiltvoloutputgain.md)
- [ShapeFiltVolContext](https://docs.xbox.com/ja-jp/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members.md)
- [GetShapeFiltVolOutputGainTarget](https://docs.xbox.com/ja-jp/reference/audio/shapefiltvolcontext/functions/getshapefiltvoloutputgaintarget.md)
- [SetShapeFiltVolCommand](https://docs.xbox.com/ja-jp/reference/audio/shapeflowgraph/functions/setshapefiltvolcommand.md)
