13
0

more assert/debugging

git-svn-id: svn://localhost/ardour2/branches/3.0@10127 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-09-26 18:54:55 +00:00
parent f40c7c45be
commit e5a9ea3ed9

View File

@ -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();