mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-19 03:56:14 +02:00
on connect: assign correct stream to client
This commit is contained in:
parent
07d76f365f
commit
a4e501c960
5 changed files with 34 additions and 63 deletions
|
@ -52,12 +52,12 @@ PcmReader* StreamManager::addStream(const std::string& uri)
|
|||
|
||||
if (readerUri.scheme == "pipe")
|
||||
{
|
||||
streams_.push_back(make_shared<PipeReader>(pcmListener_, readerUri));//, sampleFormat, codec, pcmReadMs);
|
||||
streams_.push_back(make_shared<PipeReader>(pcmListener_, readerUri));
|
||||
return streams_.back().get();
|
||||
}
|
||||
else if (readerUri.scheme == "file")
|
||||
{
|
||||
streams_.push_back(make_shared<FileReader>(pcmListener_, readerUri));//, sampleFormat, codec, pcmReadMs);
|
||||
streams_.push_back(make_shared<FileReader>(pcmListener_, readerUri));
|
||||
return streams_.back().get();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue