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

Sets the output gain.

## Syntax

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

### Parameters

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

Pointer to a [SHAPE\_FILTVOL\_CONTEXT](https://docs.xbox.com/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context.md) object.

*outputGain*   \
Type: float

The output gain.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

Gain and gain target 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, use [GetShapeFiltVolOutputGain](https://docs.xbox.com/reference/audio/shapefiltvolcontext/functions/getshapefiltvoloutputgain.md).

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

## Requirements

**Header:** shapefiltvolcontext.h

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

## See also

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


## Related topics

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