mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-22 21:46:15 +02:00
new log class: "logState"
This commit is contained in:
parent
a4e501c960
commit
a759911474
5 changed files with 40 additions and 17 deletions
|
@ -111,9 +111,7 @@ void Controller::onMessageReceived(ClientConnection* connection, const msg::Base
|
|||
throw SnapException("codec not supported: \"" + headerChunk_->codec + "\"");
|
||||
|
||||
sampleFormat_ = decoder_->setHeader(headerChunk_.get());
|
||||
logO << "sample rate: " << sampleFormat_.rate << "Hz\n";
|
||||
logO << "bits/sample: " << sampleFormat_.bits << "\n";
|
||||
logO << "channels : " << sampleFormat_.channels << "\n";
|
||||
logState << "sampleformat: " << sampleFormat_.rate << ":" << sampleFormat_.bits << ":" << sampleFormat_.channels << "\n";
|
||||
|
||||
stream_.reset(new Stream(sampleFormat_));
|
||||
stream_->setBufferLen(serverSettings_->bufferMs - latency_);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue