basic coreAudio playback is working

This commit is contained in:
Johannes Pohl 2016-09-13 14:49:20 +02:00
parent 71e0a89e29
commit 20ab3deedb
4 changed files with 81 additions and 10 deletions

View file

@ -119,7 +119,7 @@ void Controller::onMessageReceived(ClientConnection* connection, const msg::Base
#elif HAS_COREAUDIO
player_.reset(new CoreAudioPlayer(pcmDevice_, stream_.get()));
#else
throw SnapException("No ALSA or OPENSL support");
throw SnapException("No audio player support");
#endif
player_->setVolume(serverSettings_->getVolume() / 100.);
player_->setMute(serverSettings_->isMuted());