parent
1ec283d213
commit
86613af37e
@ -322,8 +322,9 @@ SlesOutput::Play(const void *chunk, size_t size)
|
|||||||
assert(filled < BUFFER_SIZE);
|
assert(filled < BUFFER_SIZE);
|
||||||
|
|
||||||
cond.wait(lock, [this]{
|
cond.wait(lock, [this]{
|
||||||
assert(filled == 0);
|
bool ret = n_queued != N_BUFFERS;
|
||||||
return n_queued != N_BUFFERS;
|
assert(ret || filled == 0);
|
||||||
|
return ret;
|
||||||
});
|
});
|
||||||
|
|
||||||
size_t nbytes = std::min(BUFFER_SIZE - filled, size);
|
size_t nbytes = std::min(BUFFER_SIZE - filled, size);
|
||||||
|
Loading…
Reference in New Issue
Block a user