Module "module-match" should be loaded once at most. Refusing to load.
Warning
Missing data may cause bugs to languish.
Summary
(Summarize the bug encountered concisely) Hi!
I would like to have a fine-grained control over default streams volume. Most of the clients are python ALSA clients, so I can't rely on process name only. And some of the clients are native pulse apps. Because the streams are so different, to I try to load several module-match modules for different properties to distinguish them like the following:
load-module module-match key=application.process.binary table=/etc/pulse/match_binary.table
load-module module-match key=media.software table=/etc/pulse/match_software.table
However only first one loads fine and all subsequent give the following error:
Module "module-match" should be loaded once at most. Refusing to load.
I believe it is an issue because there should be no reason to disallow other modules as long as they use different keys.
P.S. By the way, the key
parameter should be documented.
environment
N/A
Steps to reproduce
(How one can reproduce the issue - this is very important)
touch /etc/pulse/match_binary.table /etc/pulse/match_software.table
pactl load-module module-match key=application.process.binary table=/etc/pulse/match_binary.table
pactl load-module module-match key=media.software table=/etc/pulse/match_software.table
What is the current bug behavior?
Module "module-match" should be loaded once at most. Refusing to load.
What is the expected correct behavior?
Module loads