lfe-filter: Enable LFE filter in the resampler
authorDavid Henningsson <david.henningsson@canonical.com>
Tue, 24 Mar 2015 09:29:13 +0000 (10:29 +0100)
committerDavid Henningsson <david.henningsson@canonical.com>
Mon, 30 Mar 2015 08:52:29 +0000 (10:52 +0200)
commit979f19a434733afba0480e2ba456cccc98362e05
treebd60003344961fa9c107629cd5030b2f0a14334b
parentf3ebf6b667b155f5fe6526bd70881c79e07d7874
lfe-filter: Enable LFE filter in the resampler

When enable-lfe-remixing is set, an LFE channel is present in the
resampler's destination channel map but not in the source channel map,
we insert a low-pass filter instead of just averaging the channels.
Other channels will get a high-pass filter.

In this patch, the crossover frequency is hardcoded to 120Hz (to be fixed
in later patches).

Note that in current state the LFE filter is
 - not very optimised
 - not rewind friendly (rewinding can cause audible artifacts)

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/Makefile.am
src/pulsecore/filter/crossover.c
src/pulsecore/filter/crossover.h
src/pulsecore/filter/lfe-filter.c [new file with mode: 0644]
src/pulsecore/filter/lfe-filter.h [new file with mode: 0644]
src/pulsecore/resampler.c
src/pulsecore/resampler.h