mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-12 00:26:41 +02:00
Rename msg::ClientSettings to msg::ClientInfo
This commit is contained in:
parent
e8bb8ecdba
commit
47f7291d4f
6 changed files with 24 additions and 23 deletions
|
@ -34,7 +34,7 @@
|
|||
#include "browseZeroConf/browse_mdns.hpp"
|
||||
#include "common/aixlog.hpp"
|
||||
#include "common/snap_exception.hpp"
|
||||
#include "message/client_settings.hpp"
|
||||
#include "message/client_info.hpp"
|
||||
#include "message/hello.hpp"
|
||||
#include "message/time.hpp"
|
||||
#include "time_provider.hpp"
|
||||
|
@ -163,13 +163,13 @@ void Controller::getNextMessage()
|
|||
{
|
||||
last_volume = volume;
|
||||
last_muted = muted;
|
||||
auto settings = std::make_shared<msg::ClientSettings>();
|
||||
settings->setVolume(static_cast<uint16_t>(volume * 100.));
|
||||
settings->setMuted(muted);
|
||||
clientConnection_->send(settings, [this](const boost::system::error_code& ec) {
|
||||
auto info = std::make_shared<msg::ClientInfo>();
|
||||
info->setVolume(static_cast<uint16_t>(volume * 100.));
|
||||
info->setMuted(muted);
|
||||
clientConnection_->send(info, [this](const boost::system::error_code& ec) {
|
||||
if (ec)
|
||||
{
|
||||
LOG(ERROR, LOG_TAG) << "Failed to send client settings, error: " << ec.message() << "\n";
|
||||
LOG(ERROR, LOG_TAG) << "Failed to send client info, error: " << ec.message() << "\n";
|
||||
reconnect();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue