mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-29 00:46:17 +02:00
instance id for snapclient
This commit is contained in:
parent
a54a7f9a37
commit
bb7bea1b6c
5 changed files with 30 additions and 11 deletions
|
@ -34,7 +34,15 @@
|
|||
using namespace std;
|
||||
|
||||
|
||||
Controller::Controller() : MessageReceiver(), active_(false), latency_(0), stream_(nullptr), decoder_(nullptr), player_(nullptr), serverSettings_(nullptr), asyncException_(false)
|
||||
Controller::Controller(size_t instance) : MessageReceiver(),
|
||||
instance_(instance),
|
||||
active_(false),
|
||||
latency_(0),
|
||||
stream_(nullptr),
|
||||
decoder_(nullptr),
|
||||
player_(nullptr),
|
||||
serverSettings_(nullptr),
|
||||
asyncException_(false)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -174,7 +182,7 @@ void Controller::worker()
|
|||
{
|
||||
clientConnection_->start();
|
||||
|
||||
msg::Hello hello(clientConnection_->getMacAddress());
|
||||
msg::Hello hello(clientConnection_->getMacAddress(), instance_);
|
||||
clientConnection_->send(&hello);
|
||||
|
||||
msg::Time timeReq;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue