conf: load module-x11-bell if available

Fixes !1375
This commit is contained in:
Wim Taymans 2022-10-03 12:00:16 +02:00
parent 750b4cdf7a
commit 4574678424
2 changed files with 10 additions and 9 deletions

View file

@ -159,14 +159,15 @@ context.modules = [
{ name = libpipewire-module-session-manager }
# Use libcanberra to play X11 Bell
#{ name = libpipewire-module-x11-bell
# args = {
# #sink.name = "@DEFAULT_SINK@"
# #sample.name = "bell-window-system"
# #x11.display = null
# #x11.xauthority = null
# }
#}
{ name = libpipewire-module-x11-bell
args = {
#sink.name = "@DEFAULT_SINK@"
#sample.name = "bell-window-system"
#x11.display = null
#x11.xauthority = null
}
flags = [ ifexists nofail ]
}
]
context.objects = [

View file

@ -109,7 +109,7 @@ static int play_sample(struct impl *impl)
if (sample == NULL)
sample = "bell-window-system";
pw_log_debug("play sample %s", sample);
pw_log_info("play sample %s", sample);
if ((res = ca_context_create(&ca)) < 0) {
pw_log_error("canberra context create error: %s", ca_strerror(res));