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

# SetShapeFiltVolOutputGainTarget

> SetShapeFiltVolOutputGainTarget

# SetShapeFiltVolOutputGainTarget

出力ゲインターゲットを設定します。

## Syntax

```cpp theme={null}
HRESULT SetShapeFiltVolOutputGainTarget(  
         SHAPE_FILTVOL_CONTEXT* context,  
         float outputGainTarget  
)  
```

### Parameters

*context*   \_Inout\_\
Type: [SHAPE\_FILTVOL\_CONTEXT](/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context)\*

[SHAPE\_FILTVOL\_CONTEXT](/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context) オブジェクトへのポインター。

*outputGainTarget*   \
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 | 増幅、反転信号        |

現在の出力ゲインターゲットを取得するには、[GetShapeFiltVolOutputGainTarget](/reference/audio/shapefiltvolcontext/functions/getshapefiltvoloutputgaintarget) を使用します。

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

## Requirements

**Header:** shapefiltvolcontext.h

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

## See also

[SetShapeFiltVolOutputGain](/reference/audio/shapefiltvolcontext/functions/setshapefiltvoloutputgain)\
[ShapeFiltVolContext](/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members)


## Related topics

- [SetShapeFiltVolOutputGain](/ja-jp/reference/audio/shapefiltvolcontext/functions/setshapefiltvoloutputgain.md)
- [GetShapeFiltVolOutputGainTarget](/ja-jp/reference/audio/shapefiltvolcontext/functions/getshapefiltvoloutputgaintarget.md)
- [ShapeFiltVolContext](/ja-jp/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members.md)
- [GetShapeFiltVolOutputGain](/ja-jp/reference/audio/shapefiltvolcontext/functions/getshapefiltvoloutputgain.md)
- [SetShapeFiltVolQTarget](/ja-jp/reference/audio/shapefiltvolcontext/functions/setshapefiltvolqtarget.md)
