13
0

DiskReader::_declick_offs should only advance once per ::run() call

This commit is contained in:
Paul Davis 2019-11-18 21:38:46 -07:00
parent 9b92084ed6
commit 4534af0a4c

View File

@ -388,8 +388,10 @@ DiskReader::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp
*/
const samplecnt_t total = chaninfo->rbuf->read (disk_buf.data(), nframes, false, _declick_offs);
_declick_offs += total;
if (n == 0) {
_declick_offs += total;
}
}
/* reset _declick_amp to the correct gain before