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

# GetShapeFiltVolOutputGain

> GetShapeFiltVolOutputGain

# GetShapeFiltVolOutputGain

Gets the output gain.

## Syntax

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

### Parameters

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

### 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](/reference/audio/shapefiltvolcontext/functions/setshapefiltvoloutputgain).

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

[GetShapeFiltVolOutputGainTarget](/reference/audio/shapefiltvolcontext/functions/getshapefiltvoloutputgaintarget)\
[ShapeFiltVolContext](/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members)


## Related topics

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