more assert/debugging
git-svn-id: svn://localhost/ardour2/branches/3.0@10127 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f40c7c45be
commit
e5a9ea3ed9
@ -49,6 +49,7 @@ public:
|
||||
assert(_capacity > 0);
|
||||
assert(src.type() == DataType::AUDIO);
|
||||
assert(len <= _capacity);
|
||||
assert( src_offset <= ((framecnt_t) src.capacity()-len));
|
||||
memcpy(_data + dst_offset, ((AudioBuffer&)src).data() + src_offset, sizeof(Sample) * len);
|
||||
if (dst_offset == 0 && src_offset == 0 && len == _capacity) {
|
||||
_silent = src.silent();
|
||||
|
Loading…
Reference in New Issue
Block a user