mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 16:16:42 +02:00
Add meta stream source
This commit is contained in:
parent
f1e672d375
commit
27a9e710a2
20 changed files with 367 additions and 64 deletions
|
@ -123,7 +123,7 @@ void PosixStream::do_read()
|
|||
if ((idle_bytes_ == 0) || (idle_bytes_ <= max_idle_bytes_))
|
||||
{
|
||||
// the encoder will update the tvEncodedChunk when a chunk is encoded
|
||||
onChunkRead(*chunk_);
|
||||
chunkRead(*chunk_);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -150,7 +150,7 @@ void PosixStream::do_read()
|
|||
else
|
||||
{
|
||||
// reading chunk_ms_ took longer than chunk_ms_
|
||||
pcmListener_->onResync(this, std::chrono::duration_cast<std::chrono::milliseconds>(-next_read).count());
|
||||
resync(-next_read);
|
||||
first_ = true;
|
||||
wait(read_timer_, duration + kResyncTolerance, [this] { do_read(); });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue