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

# SetShapeFiltVolQ

> SetShapeFiltVolQ

# SetShapeFiltVolQ

Sets the Q (quality) factor.

## Syntax

```cpp theme={null}
HRESULT SetShapeFiltVolQ(  
         SHAPE_FILTVOL_CONTEXT* context,  
         float q  
)  
```

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

*q*   \
Type: float

The Q factor.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

The Filter/Volume (FLTVOL) block is implemented as a Chamberlin filter. The greater the value of Q, the narrower the bandwidth of the filter. To get the current value of Q, use [GetShapeFiltVolQ](/reference/audio/shapefiltvolcontext/functions/getshapefiltvolq).

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

[SetShapeFiltVolQTarget](/reference/audio/shapefiltvolcontext/functions/setshapefiltvolqtarget)\
[ShapeFiltVolContext](/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members)


## Related topics

- [SetShapeFiltVolQTarget](/reference/audio/shapefiltvolcontext/functions/setshapefiltvolqtarget.md)
- [GetShapeFiltVolQ](/reference/audio/shapefiltvolcontext/functions/getshapefiltvolq.md)
- [ShapeFiltVolContext](/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members.md)
- [SetShapeFiltVolFrequency](/reference/audio/shapefiltvolcontext/functions/setshapefiltvolfrequency.md)
- [SetShapeFiltVolMode](/reference/audio/shapefiltvolcontext/functions/setshapefiltvolmode.md)
