Set a JACK error message handler when initializing the backend
commit9a60184bf63640f0b12b9e4a894b98e83212d229
authorChris Robinson <chris.kcat@gmail.com>
Fri, 12 Aug 2016 03:43:54 +0000 (11 20:43 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Fri, 12 Aug 2016 03:43:54 +0000 (11 20:43 -0700)
tree83b236fcdeb5c703d4149364749bab55ff01b1d5
parent56d3598020f553681ec88b830c21218556a80a84
Set a JACK error message handler when initializing the backend

JACK2 will print error messages to stderr if it fails to connect to a server.
Users who don't normally use JACK but have the client lib installed will get
those messages even though OpenAL Soft will continue on to find a working
backend without trouble. So to avoid it, set an error message handler that'll
log them as warnings.

This isn't that great because there's no way to tell whether the error messages
are due to the server not running, or some other problem. And it resets the
callback to the default afterward even if it may have been set to something
else before. JACK2, which is what needs this workaround in the first place,
doesn't export the jack_error_callback pointer to properly save and restore it.
Alc/backends/jack.c