Commit c65a606a authored by David Henningsson's avatar David Henningsson

resampler: Allow disabling the LFE filter by setting crossover to 0

When crossover_freq is set to 0, this restores the old behaviour
of letting the LFE channel be the average of the source channels,
without additional processing. This can be useful e g in case the
user already has a hardware crossover.
Signed-off-by: David Henningsson's avatarDavid Henningsson <>
parent a9059be7
......@@ -130,7 +130,7 @@ License along with PulseAudio; if not, see <>.
<p><opt>lfe-crossover-freq=</opt> The crossover frequency (in Hz) for the
LFE filter. Defaults to 120 Hz.</p>
LFE filter. Defaults to 120 Hz. Set it to 0 to disable the LFE filter.</p>
......@@ -416,7 +416,7 @@ pa_resampler* pa_resampler_new(
if (r->map_required)
setup_remap(r, &r->remap, &lfe_filter_required);
if (lfe_filter_required) {
if (lfe_filter_required && crossover_freq > 0) {
pa_sample_spec wss = r->o_ss;
wss.format = r->work_format;
/* FIXME: For now just hardcode maxrewind to 3 seconds */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment