mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 23:56:43 +02:00
added airplay stream
This commit is contained in:
parent
bd69940db6
commit
c897b437f9
5 changed files with 118 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue