Fix audio channel init when no audio devices are present
authorMartin Fleisz <martin.fleisz@thincast.com>
Mon, 30 Dec 2019 11:59:14 +0000 (12:59 +0100)
committerMartin Fleisz <martin.fleisz@thincast.com>
Mon, 30 Dec 2019 11:59:14 +0000 (12:59 +0100)
commitd21e0a6d6d8a32115332fe887f38b5e52f2bf866
tree51c041335412a7460b6f37ba9880f8539e9396e6
parent2df3eb045566c5fedee332099b6783e4def2cb4d
Fix audio channel init when no audio devices are present

This PR fixes the handling of using rdpsnd or audin when the system has
no audio device available.
In case of a missing playback device the
Windows backend now correctly reports an error and the fake rdpsnd
backend is loaded.
If audin is enabled and no microphone is present the channel
initialization will report an error but it won't cut the connection (as
it did before).
channels/audin/client/audin_main.c
channels/audin/client/winmm/audin_winmm.c
channels/rdpsnd/client/winmm/rdpsnd_winmm.c