mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-16 02:26:41 +02:00
Client uses less memory allocations
This commit is contained in:
parent
6999391f43
commit
e9a5a36855
7 changed files with 135 additions and 44 deletions
|
@ -178,6 +178,16 @@ void Controller::start(const PcmDevice& pcmDevice, const std::string& host, size
|
|||
}
|
||||
|
||||
|
||||
void Controller::run(const PcmDevice& pcmDevice, const std::string& host, size_t port, int latency)
|
||||
{
|
||||
pcmDevice_ = pcmDevice;
|
||||
latency_ = latency;
|
||||
clientConnection_.reset(new ClientConnection(this, host, port));
|
||||
worker();
|
||||
// controllerThread_ = thread(&Controller::worker, this);
|
||||
}
|
||||
|
||||
|
||||
void Controller::stop()
|
||||
{
|
||||
LOG(DEBUG) << "Stopping Controller" << endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue