filter-apply: Add ability to pass parameters to a filter module

System Internals / PulseAudio - KimjeongYeon [gmail.com] - 13 April 2017 15:24 EDT

Currently passing parameters to a filter loaded by module-filter-apply is not possible.

To enable passing parameters to a filter this patch uses an additional property filter.apply.{MODULE_NAME}.parameters. This way, filters like virtual-surround-sink and ladspa-sink are fully supported. For example: paplay file.wav --property=filter.apply=ladspa-sink \--property=filter.apply.ladspa-sink.parameters="plugin=ladspa \ label=ladspa_stereo control=0"

caabff2 filter-apply: Add ability to pass parameters to a filter module
src/modules/module-filter-apply.c | 51 ++++++++++++++++++++++++++++++---------
1 file changed, 39 insertions(+), 12 deletions(-)

Upstream: cgit.freedesktop.org


  • Share