trivial reorder of variable assigment
This commit is contained in:
parent
27e45e9336
commit
c2e774e99d
@ -576,19 +576,18 @@ DiskReader::set_pending_overwrite (OverwriteReason why)
|
|||||||
const samplecnt_t reserved_size = c->front ()->rbuf->reserved_size ();
|
const samplecnt_t reserved_size = c->front ()->rbuf->reserved_size ();
|
||||||
const samplecnt_t bufsize = c->front ()->rbuf->bufsize ();
|
const samplecnt_t bufsize = c->front ()->rbuf->bufsize ();
|
||||||
|
|
||||||
overwrite_sample = playback_sample - reserved_size;
|
|
||||||
|
|
||||||
overwrite_offset = c->front ()->rbuf->read_ptr ();
|
overwrite_offset = c->front ()->rbuf->read_ptr ();
|
||||||
|
overwrite_sample = playback_sample - reserved_size;
|
||||||
|
|
||||||
if (overwrite_offset > reserved_size) {
|
if (overwrite_offset > reserved_size) {
|
||||||
/*
|
/*
|
||||||
* |----------------------------------------------------------------------|
|
* |----------------------------------------------------------------------|
|
||||||
* ^ ^
|
* ^ ^
|
||||||
* RRRRRRRRRRRRRRRRoverwrite_offset (old read_ptr)
|
* RRRRRRRRRRRRRRRRoverwrite_offset (old read_ptr)
|
||||||
* |<- second ->|<------------------ first chunk ------------------------>|
|
* |<- second ->|<------------------ first chunk ------------------------>|
|
||||||
*
|
*
|
||||||
* Fill the the end of the buffer ("first chunk"), above
|
* Fill the the end of the buffer ("first chunk"), above
|
||||||
*/
|
*/
|
||||||
|
|
||||||
overwrite_offset -= reserved_size;
|
overwrite_offset -= reserved_size;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user