mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-06 04:41:44 +02:00
Reformat code
This commit is contained in:
parent
de75ad9b2c
commit
a013558e81
2 changed files with 3 additions and 4 deletions
|
@ -44,7 +44,6 @@ ClientConnection::~ClientConnection()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void ClientConnection::socketRead(void* _to, size_t _bytes)
|
void ClientConnection::socketRead(void* _to, size_t _bytes)
|
||||||
{
|
{
|
||||||
size_t toRead = _bytes;
|
size_t toRead = _bytes;
|
||||||
|
@ -173,8 +172,8 @@ void ClientConnection::getNextMessage()
|
||||||
{
|
{
|
||||||
socketRead(&buffer_[0], base_msg_size_);
|
socketRead(&buffer_[0], base_msg_size_);
|
||||||
base_message_.deserialize(buffer_.data());
|
base_message_.deserialize(buffer_.data());
|
||||||
// LOG(DEBUG) << "getNextMessage: " << baseMessage.type << ", size: " << baseMessage.size << ", id: " << baseMessage.id << ", refers: " <<
|
// LOG(DEBUG) << "getNextMessage: " << base_message_.type << ", size: " << base_message_.size << ", id: " << base_message_.id
|
||||||
// baseMessage.refersTo << "\n";
|
// << ", refers: " << base_message_.refersTo << "\n";
|
||||||
if (base_message_.size > buffer_.size())
|
if (base_message_.size > buffer_.size())
|
||||||
buffer_.resize(base_message_.size);
|
buffer_.resize(base_message_.size);
|
||||||
// {
|
// {
|
||||||
|
|
|
@ -50,7 +50,7 @@ public:
|
||||||
{
|
{
|
||||||
return ((rate_ != 0) || (bits_ != 0) || (channels_ != 0));
|
return ((rate_ != 0) || (bits_ != 0) || (channels_ != 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t rate() const
|
uint32_t rate() const
|
||||||
{
|
{
|
||||||
return rate_;
|
return rate_;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue