mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-12 08:36:43 +02:00
change stream with "SetStream (id)"
This commit is contained in:
parent
0092f79f88
commit
5fae6e85f7
10 changed files with 90 additions and 8 deletions
|
@ -74,6 +74,17 @@ const PcmReaderPtr StreamManager::getDefaultStream()
|
|||
}
|
||||
|
||||
|
||||
const PcmReaderPtr StreamManager::getStream(const std::string& id)
|
||||
{
|
||||
for (auto stream: streams_)
|
||||
{
|
||||
if (stream->getUri().id() == id)
|
||||
return stream;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
void StreamManager::start()
|
||||
{
|
||||
for (auto stream: streams_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue