summaryrefslogtreecommitdiff
path: root/libs/ardour/disk_reader.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2019-11-18 21:38:46 -0700
committerPaul Davis <paul@linuxaudiosystems.com>2019-11-18 21:45:39 -0700
commit4534af0a4c0582734b626f7cad6898573e6e2e07 (patch)
tree9b1b08d462dba34eabc56a1abe8900c76d85e4be /libs/ardour/disk_reader.cc
parent9b92084ed69aa03957a793be92122de2608cd852 (diff)
DiskReader::_declick_offs should only advance once per ::run() call
Diffstat (limited to 'libs/ardour/disk_reader.cc')
-rw-r--r--libs/ardour/disk_reader.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/disk_reader.cc b/libs/ardour/disk_reader.cc
index cc4748f7fb..0173e7490f 100644
--- a/libs/ardour/disk_reader.cc
+++ b/libs/ardour/disk_reader.cc
@@ -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