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

# SetShapeFiltVolInputHeadroom

> 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](/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context)\*

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

*inputHeadroom*   \
Type: [SHAPE\_FILTER\_HEADROOM](/reference/audio/shapefiltvolcontext/enums/shape_filter_headroom)

A member of the [SHAPE\_FILTER\_HEADROOM](/reference/audio/shapefiltvolcontext/enums/shape_filter_headroom) 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)](/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

[GetShapeFiltVolInputHeadroom](/reference/audio/shapefiltvolcontext/functions/getshapefiltvolinputheadroom)\
[ShapeFiltVolContext](/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members)


## Related topics

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