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

# SetShapeFiltVolInputHeadroom

> SetShapeFiltVolInputHeadroom

Sets the input headroom.

## Syntax

```cpp theme={null}
HRESULT SetShapeFiltVolInputHeadroom(  
         SHAPE_FILTVOL_CONTEXT* context,  
         SHAPE_FILTER_HEADROOM inputHeadroom  
)  
```

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

*inputHeadroom*   \
Type: [SHAPE\_FILTER\_HEADROOM](https://docs.xbox.com/reference/audio/shapefiltvolcontext/enums/shape_filter_headroom.md)

A member of the [SHAPE\_FILTER\_HEADROOM](https://docs.xbox.com/reference/audio/shapefiltvolcontext/enums/shape_filter_headroom.md) enumeration.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

The state variable filter, by its nature, can create resonances causing intermediate values to exceed 1.0 (or -1.0). To mitigate the issues created by intermediate value saturation, the FLTVOL block has a programmable amount of headroom scaling, which is applied to the incoming signal and then compensated for upon output.

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

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


## Related topics

- [GetShapeFiltVolInputHeadroom](https://docs.xbox.com/reference/audio/shapefiltvolcontext/functions/getshapefiltvolinputheadroom.md)
- [SHAPE_FILTER_HEADROOM](https://docs.xbox.com/reference/audio/shapefiltvolcontext/enums/shape_filter_headroom.md)
- [GetShapeFiltVolInternalSaturate](https://docs.xbox.com/reference/audio/shapefiltvolcontext/functions/getshapefiltvolinternalsaturate.md)
- [ShapeFiltVolContext](https://docs.xbox.com/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members.md)
- [SetShapeFiltVolCommand](https://docs.xbox.com/reference/audio/shapeflowgraph/functions/setshapefiltvolcommand.md)
