wasapi: added client option for selecting shared/exclusive mode

This commit is contained in:
Stijn Van der Borght 2020-04-03 22:55:01 +01:00 committed by Johannes Pohl
parent 95a369be79
commit 9737c1ac44
5 changed files with 70 additions and 28 deletions

View file

@ -145,7 +145,7 @@ void Controller::onMessageReceived(ClientConnection* /*connection*/, const msg::
#endif
#ifdef HAS_WASAPI
if (!player_ && (player_name.empty() || (player_name == "wasapi")))
player_ = make_unique<WASAPIPlayer>(pcm_device, stream_);
player_ = make_unique<WASAPIPlayer>(pcm_device, stream_, settings_.player.wasapi_mode);
#endif
if (!player_)
throw SnapException("No audio player support");