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

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

*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](https://docs.xbox.com/reference/audio/shapefiltvolcontext/functions/getshapefiltvolq.md).

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

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

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


## Related topics

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