diff options
author | Robin Gareus <robin@gareus.org> | 2019-11-19 16:20:28 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-11-19 16:20:28 +0100 |
commit | 7fec401b8da9b52af00e7cd7cc0acd2af72ee28e (patch) | |
tree | 5a9fc04565d6957bbf2be3c2eeca4774eb6f1a3f | |
parent | 4534af0a4c0582734b626f7cad6898573e6e2e07 (diff) |
Fix declick offset position for multi-channel tracks
-rw-r--r-- | libs/ardour/disk_reader.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/disk_reader.cc b/libs/ardour/disk_reader.cc index 0173e7490f..325bdca974 100644 --- a/libs/ardour/disk_reader.cc +++ b/libs/ardour/disk_reader.cc @@ -345,6 +345,7 @@ DiskReader::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp } const float initial_declick_gain = _declick_amp.gain (); + const sampleoffset_t declick_offs = _declick_offs; for (n = 0, chan = c->begin(); chan != c->end(); ++chan, ++n) { @@ -387,7 +388,7 @@ DiskReader::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp to ::run() */ - const samplecnt_t total = chaninfo->rbuf->read (disk_buf.data(), nframes, false, _declick_offs); + const samplecnt_t total = chaninfo->rbuf->read (disk_buf.data(), nframes, false, declick_offs); if (n == 0) { _declick_offs += total; |