summaryrefslogtreecommitdiffstats
path: root/src/modules/module-filter-heuristics.c
Commit message (Collapse)AuthorAgeFilesLines
* filter-heuristics: Match roles correctlyArun Raghavan2011-04-231-2/+23
|
* filters: Handle filters on sources as wellArun Raghavan2011-04-231-14/+51
| | | | | | This makes the core code in the filter-* modules generic enough to be used on sources or sinks. We need special handling for modules that introduce more than one sink (for now echo-cancel only).
* filters: Handle stream moves properlyArun Raghavan2011-04-231-11/+52
| | | | | | | | | | | | | | | | | | | | | | | | | This makes sure that we handle streams moving between sinks properly. To do this, we change the way the filter.* properties are handled a little bit. Firstly, this splits up the "filter.apply" property into two properties - "filter.want" and "filter.apply". "filter.apply" acts as before - it bypasses module-filter-heuristics and directly tells module-filter-apply what filters are to be applied. "filter.want" is used to tell module-filter-heuristics what filters the client wants. The module then decides whether to actually apply the filter or not (for now, this makes sure we don't apply echo-cancellation even if requested on phone sinks (where it is assumed AEC is taken care of or is not required). Next, we also make sure that we track whether the client set "filter.apply" or module-filter-heuristics did - and in the latter case, we recalculate "filter.apply" and then have module-filter-apply apply the filter if required. This introduces some evil in the form of causing the move_finish callback to possibly trigger another move, but we protect for this case (with a property) to be doubly sure of not causing an infinite loop.
* filter-heuristics: Only apply AEC if we're not already on a phone sinkArun Raghavan2011-04-231-2/+5
| | | | | | This makes sure that we don't apply AEC on sinks that are already connected to a "phone" device, the assumptiong being that anything marked as such either doesn't have need it, or handles it itself.
* filter: Move the proplist defines into the central place and document them.Colin Guthrie2011-04-201-3/+0
|
* filter-heuristics: New module that applies some basic heuristics regarding ↵Colin Guthrie2011-04-181-0/+117
filters. At present the only heuristic is one to apply the echo-cancel filter when dealing with phone streams.