summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2015-03-30 11:10:56 +0200
committerDavid Henningsson <david.henningsson@canonical.com>2015-03-30 11:10:56 +0200
commitc65a606ae73c9f9fa7bed4aade575395f4ff1890 (patch)
tree3112c36b71bc5dff9cb52760f890ce537f52a74f
parenta9059be749b6043d6cbc5b79652e8a4adda8994e (diff)
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 <david.henningsson@canonical.com>
-rw-r--r--man/pulse-daemon.conf.5.xml.in2
-rw-r--r--src/pulsecore/resampler.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/man/pulse-daemon.conf.5.xml.in b/man/pulse-daemon.conf.5.xml.in
index bc91a5af8..d221585dc 100644
--- a/man/pulse-daemon.conf.5.xml.in
+++ b/man/pulse-daemon.conf.5.xml.in
@@ -130,7 +130,7 @@ License along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
<option>
<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>
</option>
<option>
diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c
index f5a0e167f..2a54cec08 100644
--- a/src/pulsecore/resampler.c
+++ b/src/pulsecore/resampler.c
@@ -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 */