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

# GetShapeFiltVolOutputGain

> GetShapeFiltVolOutputGain

Gets the output gain.

## Syntax

```cpp theme={null}
float GetShapeFiltVolOutputGain(  
         const SHAPE_FILTVOL_CONTEXT* context  
)  
```

### Parameters

*context*   \_In\_\
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.

### Return value

Type: float

The output gain.

## 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 change the output gain, use [SetShapeFiltVolOutputGain](https://docs.xbox.com/reference/audio/shapefiltvolcontext/functions/setshapefiltvoloutputgain.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

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


## Related topics

- [GetShapeFiltVolOutputGainTarget](https://docs.xbox.com/reference/audio/shapefiltvolcontext/functions/getshapefiltvoloutputgaintarget.md)
- [SetShapeFiltVolOutputGain](https://docs.xbox.com/reference/audio/shapefiltvolcontext/functions/setshapefiltvoloutputgain.md)
- [ShapeFiltVolContext](https://docs.xbox.com/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members.md)
- [SetShapeFiltVolOutputGainTarget](https://docs.xbox.com/reference/audio/shapefiltvolcontext/functions/setshapefiltvoloutputgaintarget.md)
- [GetShapeFiltVolPeakMagnitude](https://docs.xbox.com/reference/audio/shapefiltvolcontext/functions/getshapefiltvolpeakmagnitude.md)
