mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
fix appending new audio data during clip recording
This commit is contained in:
parent
7455b99b45
commit
25400a4936
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue