change stream with "SetStream (id)"

This commit is contained in:
badaix 2016-02-03 22:34:52 +01:00
parent 0092f79f88
commit 5fae6e85f7
10 changed files with 90 additions and 8 deletions

View file

@ -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_)