diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-02-21 13:19:31 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-02-21 13:19:31 -0700 |
commit | db3995c559974cc655373b654e26944c983a4b01 (patch) | |
tree | e14c4c583a47bc929532c0611b054993dac8184d /libs/ardour/disk_reader.cc | |
parent | 8e8d2f86a86ea4334e78f761cabd6f84fc0ff63b (diff) |
fix playback glitch : do not adjust file_sample[Type] after read, it is canonical
We told the DR to read from pos+shift, and it increment file_sample[T] appropriately. We should not adjust it. The
only thing that gets adjusted is the sample that will playback (as a result of PlaybackBuffer::increment_read_ptr()
Diffstat (limited to 'libs/ardour/disk_reader.cc')
-rw-r--r-- | libs/ardour/disk_reader.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/ardour/disk_reader.cc b/libs/ardour/disk_reader.cc index 9d730e1a74..e293874c8b 100644 --- a/libs/ardour/disk_reader.cc +++ b/libs/ardour/disk_reader.cc @@ -822,11 +822,7 @@ DiskReader::seek (samplepos_t sample, bool complete_refill) * buffer for backwards-internal-seek */ - sample += shift; - - playback_sample = sample; - file_sample[DataType::AUDIO] = sample; - file_sample[DataType::MIDI] = sample; + playback_sample += shift; /* we always move the read-ptr forwards, since even when in * reverse, the data is placed in the buffer in normal read |