13
0

trivial reorder of variable assigment

This commit is contained in:
Paul Davis 2020-05-12 10:09:23 -06:00
parent 27e45e9336
commit c2e774e99d

View File

@ -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;