Rename WasapiMode to SharingMode

The mode is more general and will be applied
in a second step also to other audio devices
This commit is contained in:
badaix 2020-04-10 10:15:58 +02:00
parent 5cc37f98f4
commit 30753f9f61
5 changed files with 17 additions and 21 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_, settings_.player.wasapi_mode);
player_ = make_unique<WASAPIPlayer>(pcm_device, stream_, settings_.player.sharing_mode);
#endif
if (!player_)
throw SnapException("No audio player support");