Skip to main content

Interface: GraphicEqualizerOptions

Defined in: packages/player/src/filters.ts:502

AudioFilters.graphicEqualizer options.

Properties

gainsDb

readonly gainsDb: readonly number[];

Defined in: packages/player/src/filters.ts:515

Exactly 18 band gains in dB, ordered to match GRAPHIC_EQUALIZER_BANDS.

ffmpeg's superequalizer takes linear gains in [0, 20] with 1 as unity (af_superequalizer.c:330-347, one AV_OPT_TYPE_FLOAT per band; the value lands in param[i].gain and is used as an amplitude multiplier when the FIR is designed). This API takes dB because that is what an EQ UI has, and converts with 10 ** (dB / 20) — so the +26.02 dB ceiling is ours, the dB spelling of ffmpeg's linear 20, and anything above it is rejected rather than silently clamped.