mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-02 19:01:47 +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
|
@ -29,6 +29,7 @@
|
|||
#include <set>
|
||||
#include "message/message.h"
|
||||
#include "common/queue.h"
|
||||
#include "pcmreader/streamManager.h"
|
||||
|
||||
|
||||
using asio::ip::tcp;
|
||||
|
@ -79,6 +80,9 @@ public:
|
|||
return socket_->remote_endpoint().address().to_string();
|
||||
}
|
||||
|
||||
void setPcmReader(PcmReaderPtr pcmReader);
|
||||
const PcmReaderPtr pcmReader() const;
|
||||
|
||||
protected:
|
||||
void socketRead(void* _to, size_t _bytes);
|
||||
void getNextMessage();
|
||||
|
@ -96,6 +100,7 @@ protected:
|
|||
MessageReceiver* messageReceiver_;
|
||||
Queue<std::shared_ptr<const msg::BaseMessage>> messages_;
|
||||
size_t bufferMs_;
|
||||
PcmReaderPtr pcmReader_;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue