mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-29 08:56:18 +02:00
PCM reader is configured by URI
This commit is contained in:
parent
c4094a2175
commit
a9015edb22
9 changed files with 108 additions and 84 deletions
|
@ -28,7 +28,7 @@
|
|||
#include <mutex>
|
||||
|
||||
#include "streamSession.h"
|
||||
#include "pcmreader/pipeReader.h"
|
||||
#include "pcmreader/pcmReaderFactory.h"
|
||||
#include "common/queue.h"
|
||||
#include "message/message.h"
|
||||
#include "message/header.h"
|
||||
|
@ -57,7 +57,7 @@ struct StreamServerSettings
|
|||
std::vector<std::string> pcmStreams;
|
||||
std::string codec;
|
||||
int32_t bufferMs;
|
||||
msg::SampleFormat sampleFormat;
|
||||
std::string sampleFormat;
|
||||
size_t pipeReadMs;
|
||||
};
|
||||
|
||||
|
@ -97,13 +97,12 @@ private:
|
|||
void handleAccept(socket_ptr socket);
|
||||
StreamSession* getStreamSession(const std::string& mac);
|
||||
mutable std::mutex mutex_;
|
||||
std::unique_ptr<PcmReader> pcmReader_;
|
||||
std::vector<std::shared_ptr<PcmReader>> pcmReader_;
|
||||
std::set<std::shared_ptr<StreamSession>> sessions_;
|
||||
asio::io_service* io_service_;
|
||||
std::shared_ptr<tcp::acceptor> acceptor_;
|
||||
|
||||
StreamServerSettings settings_;
|
||||
msg::SampleFormat sampleFormat_;
|
||||
Queue<std::shared_ptr<msg::BaseMessage>> messages_;
|
||||
std::unique_ptr<ControlServer> controlServer_;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue