re-added Outurnate's Windows client for master branch

This commit is contained in:
Stijn Van der Borght 2020-03-30 20:43:03 +01:00 committed by Johannes Pohl
parent 6118e1a79d
commit 094ec9b53c
20 changed files with 857 additions and 107 deletions

View file

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