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

# SetShapeFiltVolMode

> SetShapeFiltVolMode

# SetShapeFiltVolMode

Sets the mode of the state variable filter.

## Syntax

```cpp theme={null}
HRESULT SetShapeFiltVolMode(  
         SHAPE_FILTVOL_CONTEXT* context,  
         SHAPE_FILTER_MODE ShapeFilterMode  
)  
```

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

*ShapeFilterMode*   \
Type: [SHAPE\_FILTER\_MODE](/reference/audio/shapefiltvolcontext/enums/shape_filter_mode)

A member of the [SHAPE\_FILTER\_MODE](/reference/audio/shapefiltvolcontext/enums/shape_filter_mode) enumeration.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

The Filter/Volume (FLTVOL) block is implemented as a Chamberlin filter. It provides three filtering modes (low-pass, band-pass, and high-pass) and a bypass mode. To get the current mode, use [GetShapeFiltVolMode](/reference/audio/shapefiltvolcontext/functions/getshapefiltvolmode).

The filtering behavior is designed to be identical to that in XAudio2.

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

[ShapeFiltVolContext](/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members)


## Related topics

- [GetShapeFiltVolMode](/reference/audio/shapefiltvolcontext/functions/getshapefiltvolmode.md)
- [SHAPE_FILTER_MODE](/reference/audio/shapefiltvolcontext/enums/shape_filter_mode.md)
- [ShapeFiltVolContext](/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members.md)
- [SetShapeFiltVolQ](/reference/audio/shapefiltvolcontext/functions/setshapefiltvolq.md)
- [SetShapeFiltVolCommand](/reference/audio/shapeflowgraph/functions/setshapefiltvolcommand.md)
