summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-05-13 23:54:02 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2020-05-13 23:54:02 -0600
commitd776415d54d5b984f6155e121f455ce33e858df2 (patch)
treeaa2534709283f2aef7772c363a7d38df4c14f59f
parent7660ea29d277212633c86e43a105355a04a4dc09 (diff)
DiskReader: always reset file_sample[AUDIO] after an overwrite
In theory we only need to do this if the use of a loop for a given overwrite differs from the previous refill or overwrite. However, keeping track of this is hard, and this way effectively enforces the notion that if we do the arithmetic correct, for cases where there's no change in the use of a loop location, this ends up being a no-op (i.e. we are resetting it back to its current value)
-rw-r--r--libs/ardour/disk_reader.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/ardour/disk_reader.cc b/libs/ardour/disk_reader.cc
index 4ed24bcf4b..5124898630 100644
--- a/libs/ardour/disk_reader.cc
+++ b/libs/ardour/disk_reader.cc
@@ -748,9 +748,7 @@ DiskReader::overwrite_existing_audio ()
}
}
- if (_loop_location) {
- file_sample[DataType::AUDIO] = start;
- }
+ file_sample[DataType::AUDIO] = start;
return ret;
}