diff options
author | David Robillard <d@drobilla.net> | 2008-10-11 19:13:02 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-10-11 19:13:02 +0000 |
commit | 50841658ae80f28746ada691dfff90c341255fd8 (patch) | |
tree | 12c66e3437e1f91ae4197c46325108e5dc62745d | |
parent | 626892b63b34735362aff099c2935a619455870c (diff) | |
download | ingen-50841658ae80f28746ada691dfff90c341255fd8.tar.gz ingen-50841658ae80f28746ada691dfff90c341255fd8.tar.bz2 ingen-50841658ae80f28746ada691dfff90c341255fd8.zip |
Fix crash in some connection scenario or another. Control->control mixing. Maybe.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1640 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/engine/ConnectionImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/ConnectionImpl.cpp b/src/engine/ConnectionImpl.cpp index af71dd8a..64d51edf 100644 --- a/src/engine/ConnectionImpl.cpp +++ b/src/engine/ConnectionImpl.cpp @@ -198,7 +198,7 @@ ConnectionImpl::process(ProcessContext& context) // Scale the buffer down. if (src_port()->poly() > 1) - mix_buf->scale(1.0f/(float)src_port()->poly(), 0, _buffer_size-1); + mix_buf->scale(1.0f/(float)src_port()->poly(), 0, mix_buf->size()-1); } else if (_mode == EXTEND) { assert(type() == DataType::AUDIO || type() == DataType::CONTROL); |