From 50841658ae80f28746ada691dfff90c341255fd8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 11 Oct 2008 19:13:02 +0000 Subject: 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 --- src/engine/ConnectionImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/engine/ConnectionImpl.cpp') 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); -- cgit v1.2.1