mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-10 14:51:41 +02:00
configurable client ID
This commit is contained in:
parent
77bd32247a
commit
81f46ff41f
4 changed files with 22 additions and 11 deletions
|
@ -46,7 +46,7 @@
|
|||
class Controller : public MessageReceiver
|
||||
{
|
||||
public:
|
||||
Controller(size_t instance);
|
||||
Controller(const std::string& clientId, size_t instance);
|
||||
void start(const PcmDevice& pcmDevice, const std::string& host, size_t port, int latency);
|
||||
void stop();
|
||||
|
||||
|
@ -61,6 +61,7 @@ public:
|
|||
private:
|
||||
void worker();
|
||||
bool sendTimeSyncMessage(long after = 1000);
|
||||
std::string clientId_;
|
||||
size_t instance_;
|
||||
std::atomic<bool> active_;
|
||||
std::thread controllerThread_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue