From 25400a4936193b2f3cec40cc259eea3c6dd26a1c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 30 Sep 2024 13:18:06 -0600 Subject: [PATCH] fix appending new audio data during clip recording --- libs/ardour/triggerbox.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index 2596382313..4ce64f1e39 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -1311,7 +1311,7 @@ AudioTrigger::AudioData::append (Sample const * src, samplecnt_t cnt, uint32_t c return -1; } samplecnt_t to_copy = std::min (cnt, (capacity - length)); - memcpy (at(chan), src, cnt * sizeof (Sample)); + memcpy (at(chan) + length, src, cnt * sizeof (Sample)); length += cnt; return to_copy; }