module-x11-bell: force pulse backend

The libcanberra ALSA backend has some races and causes crashes, we
should try to not use that one.

Fixes #3688
This commit is contained in:
Wim Taymans 2023-12-05 16:18:30 +01:00
parent 22db59d8a3
commit 8ecc61e117

View file

@ -104,6 +104,11 @@ static int play_sample(struct impl *impl)
res = -EIO;
goto exit;
}
if ((res = ca_context_set_driver(ca, "pulse")) < 0) {
pw_log_error("canberra context set backend error: %s", ca_strerror(res));
res = -EIO;
goto exit_destroy;
}
if ((res = ca_context_open(ca)) < 0) {
pw_log_error("canberra context open error: %s", ca_strerror(res));
res = -EIO;