diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-11-18 21:38:46 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-11-18 21:45:39 -0700 |
commit | 4534af0a4c0582734b626f7cad6898573e6e2e07 (patch) | |
tree | 9b1b08d462dba34eabc56a1abe8900c76d85e4be /libs/ardour/disk_reader.cc | |
parent | 9b92084ed69aa03957a793be92122de2608cd852 (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.cc | 4 |
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 |