mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-19 03:56:14 +02:00
added fileReader for testing purposes
This commit is contained in:
parent
d44232114a
commit
060e52aeee
6 changed files with 162 additions and 2 deletions
|
@ -19,6 +19,7 @@
|
|||
#include "common/utils.h"
|
||||
#include "streamManager.h"
|
||||
#include "pipeReader.h"
|
||||
#include "fileReader.h"
|
||||
#include "common/log.h"
|
||||
|
||||
|
||||
|
@ -54,6 +55,11 @@ PcmReader* StreamManager::addStream(const std::string& uri)
|
|||
streams_.push_back(make_shared<PipeReader>(pcmListener_, readerUri));//, sampleFormat, codec, pcmReadMs);
|
||||
return streams_.back().get();
|
||||
}
|
||||
else if (readerUri.scheme == "file")
|
||||
{
|
||||
streams_.push_back(make_shared<FileReader>(pcmListener_, readerUri));//, sampleFormat, codec, pcmReadMs);
|
||||
return streams_.back().get();
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue