mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 16:16:42 +02:00
Added dummy classes for spotify stream reader
This commit is contained in:
parent
accb15c98f
commit
17879618c7
10 changed files with 223 additions and 6 deletions
|
@ -17,6 +17,8 @@
|
|||
***/
|
||||
|
||||
#include "streamManager.h"
|
||||
#include "spotifyStream.h"
|
||||
#include "processStream.h"
|
||||
#include "pipeStream.h"
|
||||
#include "fileStream.h"
|
||||
#include "common/utils.h"
|
||||
|
@ -62,6 +64,16 @@ PcmStream* StreamManager::addStream(const std::string& uri)
|
|||
streams_.push_back(make_shared<FileStream>(pcmListener_, streamUri));
|
||||
return streams_.back().get();
|
||||
}
|
||||
else if (streamUri.scheme == "process")
|
||||
{
|
||||
streams_.push_back(make_shared<ProcessStream>(pcmListener_, streamUri));
|
||||
return streams_.back().get();
|
||||
}
|
||||
else if (streamUri.scheme == "spotify")
|
||||
{
|
||||
streams_.push_back(make_shared<SpotifyStream>(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