mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-18 11:36:14 +02:00
Add meta stream source
This commit is contained in:
parent
f1e672d375
commit
27a9e710a2
20 changed files with 367 additions and 64 deletions
|
@ -112,7 +112,7 @@ void FlacEncoder::encode(const msg::PcmChunk& chunk)
|
|||
double resMs = static_cast<double>(encodedSamples_) / sampleFormat_.msRate();
|
||||
// LOG(INFO, LOG_TAG) << "encoded: " << chunk->payloadSize << "\tframes: " << encodedSamples_ << "\tres: " << resMs << "\n";
|
||||
encodedSamples_ = 0;
|
||||
listener_->onChunkEncoded(this, flacChunk_, resMs);
|
||||
encoded_callback_(*this, flacChunk_, resMs);
|
||||
flacChunk_ = make_shared<msg::PcmChunk>(chunk.format, 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue