13
0

fix appending new audio data during clip recording

This commit is contained in:
Paul Davis 2024-09-30 13:18:06 -06:00
parent 7455b99b45
commit 25400a4936

View File

@ -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;
}