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

Sets the output gain target.

## 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)\*

Pointer to a [SHAPE\_FILTVOL\_CONTEXT](/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context) object.

*outputGainTarget*   \
Type: float

The output gain target.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

Gain target and gain are amplitude values in the range of -2.0 to 2.0, with negative values inverting the signal.

| Values       | Description                     |
| :----------- | :------------------------------ |
| 1.0 to 2.0   | Amplification                   |
| 1.0          | Unity gain                      |
| 0.0 to 1.0   | Gain reduction                  |
| 0.0          | Silence                         |
| -1.0 to 0.0  | Gain reduction; inverted signal |
| -1.0         | Unity gain; inverted signal     |
| -2.0 to -1.0 | Amplification; inverted signal  |

To get the current output gain target, use [GetShapeFiltVolOutputGainTarget](/reference/audio/shapefiltvolcontext/functions/getshapefiltvoloutputgaintarget).

For more information, see the [Filter/volume block (FLTVOL)](/build/console-features/audio/overviews/shape-overview#ID4EBH) section of [Overview of SHAPE](/build/console-features/audio/overviews/shape-overview).

## Requirements

**Header:** shapefiltvolcontext.h

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

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


## Related topics

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