diff options
author | David Robillard <d@drobilla.net> | 2012-05-12 07:04:11 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-12 07:04:11 +0000 |
commit | 52011c3b045d9f49a4bc25c9f545bb35e5c2a0a9 (patch) | |
tree | 29012d7da9bf9e0525574b3d8713eaf828626ac5 /src/server/DuplexPort.cpp | |
parent | 2e8a9b483a8d2ca7ba2a4feb4a845a32ab1eebeb (diff) | |
download | ingen-52011c3b045d9f49a4bc25c9f545bb35e5c2a0a9.tar.gz ingen-52011c3b045d9f49a4bc25c9f545bb35e5c2a0a9.tar.bz2 ingen-52011c3b045d9f49a4bc25c9f545bb35e5c2a0a9.zip |
More work towards checking contexts via parameter rather than thread magic.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4376 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/DuplexPort.cpp')
-rw-r--r-- | src/server/DuplexPort.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/server/DuplexPort.cpp b/src/server/DuplexPort.cpp index 1a62d562..7da3dd5e 100644 --- a/src/server/DuplexPort.cpp +++ b/src/server/DuplexPort.cpp @@ -55,14 +55,16 @@ DuplexPort::DuplexPort( } bool -DuplexPort::get_buffers(BufferFactory& bufs, +DuplexPort::get_buffers(Context& context, + BufferFactory& bufs, Raul::Array<BufferRef>* buffers, uint32_t poly) const { - if (_is_output) - return InputPort::get_buffers(bufs, buffers, poly); - else - return OutputPort::get_buffers(bufs, buffers, poly); + if (_is_output) { + return InputPort::get_buffers(context, bufs, buffers, poly); + } else { + return OutputPort::get_buffers(context, bufs, buffers, poly); + } } /** Prepare for the execution of parent patch */ |