mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-12 08:36:43 +02:00
wasapi: added client option for selecting shared/exclusive mode
This commit is contained in:
parent
95a369be79
commit
9737c1ac44
5 changed files with 70 additions and 28 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue