Skip to main content

SetShapeEqCompRawFilterCoefficients

Sets the raw coefficients of an equalizer filter.

Syntax

Parameters

context   _Inout_
Type: SHAPE_EQCOMP_CONTEXT*
Pointer to a SHAPE_EQCOMP_CONTEXT structure. filterIndex   
Type: SHAPE_EQCOMP_FILTER_INDEX
A member of the SHAPE_EQCOMP_FILTER_INDEX enumeration. a1   
Type: INT32
Raw coefficient a1 for the specified equalizer filter. a2   
Type: INT32
Raw coefficient a2 for the specified equalizer filter. b0   
Type: INT32
Raw coefficient b0 for the specified equalizer filter. b1   
Type: INT32
Raw coefficient b1 for the specified equalizer filter. b2   
Type: INT32
Raw coefficient b2 for the specified equalizer filter.

Return value

Type: HRESULT HRESULT success or error code.

Remarks

The coefficients of each biquad filter (b0, b1, b2, a1, and a2) are stored as 24-bit integers. This allows for a coefficient range of up to ±7.998, which is suitable for providing coefficients for the types of filters allowed: a frequency range of 20 Hz to 18 kHz, and a gain range of -18 dB to 18 dB. For more information, see Equalization and compression in Overview of SHAPE.

Requirements

Header: shapeeqcompcontext.h Supported platforms: XBOX One family consoles and XBOX Series consoles

See also

ShapeEqCompContext
Last modified on August 20, 2026