mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 21:26:26 +01:00
update audio-buffer assert, take offset into account
This commit is contained in:
parent
74385d7267
commit
591ff9ceb6
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ public:
|
||||||
assert(&src != this);
|
assert(&src != this);
|
||||||
assert(_capacity > 0);
|
assert(_capacity > 0);
|
||||||
assert(src.type() == DataType::AUDIO);
|
assert(src.type() == DataType::AUDIO);
|
||||||
assert(len <= _capacity);
|
assert(dst_offset + len <= _capacity);
|
||||||
assert( src_offset <= ((framecnt_t) src.capacity()-len));
|
assert( src_offset <= ((framecnt_t) src.capacity()-len));
|
||||||
memcpy(_data + dst_offset, ((const AudioBuffer&)src).data() + src_offset, sizeof(Sample) * len);
|
memcpy(_data + dst_offset, ((const AudioBuffer&)src).data() + src_offset, sizeof(Sample) * len);
|
||||||
if (dst_offset == 0 && src_offset == 0 && len == _capacity) {
|
if (dst_offset == 0 && src_offset == 0 && len == _capacity) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue