added airplay stream

This commit is contained in:
badaix 2016-11-05 13:39:47 +01:00
parent bd69940db6
commit c897b437f9
5 changed files with 118 additions and 4 deletions

View file

@ -17,6 +17,7 @@
***/
#include "streamManager.h"
#include "airplayStream.h"
#include "spotifyStream.h"
#include "processStream.h"
#include "pipeStream.h"
@ -74,6 +75,11 @@ PcmStream* StreamManager::addStream(const std::string& uri)
streams_.push_back(make_shared<SpotifyStream>(pcmListener_, streamUri));
return streams_.back().get();
}
else if (streamUri.scheme == "airplay")
{
streams_.push_back(make_shared<AirplayStream>(pcmListener_, streamUri));
return streams_.back().get();
}
else
{
throw SnapException("Unknown stream type: " + streamUri.scheme);