diff options
author | David Robillard <d@drobilla.net> | 2008-07-29 05:50:52 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-07-29 05:50:52 +0000 |
commit | f0e920ab170569fc9eaf5858af2e9ae3e8d44993 (patch) | |
tree | 1e1fa0a7b2bfeb0e6ca4541c570f445fc4541ff0 /src/libs/engine/ConnectionImpl.cpp | |
parent | de58b508b28a42b072fb26d2633aa0af37ee7c0e (diff) | |
download | ingen-f0e920ab170569fc9eaf5858af2e9ae3e8d44993.tar.gz ingen-f0e920ab170569fc9eaf5858af2e9ae3e8d44993.tar.bz2 ingen-f0e920ab170569fc9eaf5858af2e9ae3e8d44993.zip |
Fix stateful port value setting stuff (trigger output ports on note/trigger/etc modules now work correctly).
git-svn-id: http://svn.drobilla.net/lad/ingen@1302 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/ConnectionImpl.cpp')
-rw-r--r-- | src/libs/engine/ConnectionImpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/engine/ConnectionImpl.cpp b/src/libs/engine/ConnectionImpl.cpp index 63f2028c..07884336 100644 --- a/src/libs/engine/ConnectionImpl.cpp +++ b/src/libs/engine/ConnectionImpl.cpp @@ -146,7 +146,7 @@ ConnectionImpl::process(ProcessContext& context) // Write last value of src buffer to remainder of dst buffer, if necessary if (copy_size < mix_buf->size()) - mix_buf->set(src_buffer->value_at(copy_size-1), copy_size, mix_buf->size()-1); + mix_buf->set_block(src_buffer->value_at(copy_size-1), copy_size, mix_buf->size()-1); // Accumulate the source's voices into local buffer starting at the second // voice (buffer is already set to first voice above) @@ -160,7 +160,7 @@ ConnectionImpl::process(ProcessContext& context) for (uint32_t j=1; j < src_port()->poly(); ++j) src_value += ((AudioBuffer*)src_port()->buffer(j))->value_at(copy_size-1); - mix_buf->set(src_value, copy_size, mix_buf->size()-1); + mix_buf->set_block(src_value, copy_size, mix_buf->size()-1); } // Scale the buffer down. |