From db3995c559974cc655373b654e26944c983a4b01 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 21 Feb 2020 13:19:31 -0700 Subject: 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() --- libs/ardour/disk_reader.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libs/ardour/disk_reader.cc') 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 -- cgit v1.2.3