From 06c34ee30b63d0cfd8c7ae77adc637f9da9a84dd Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 12 Jan 2014 02:46:46 +0000 Subject: Combine port buffers and set state into a single voice object. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5309 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/DuplexPort.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/server/DuplexPort.cpp') diff --git a/src/server/DuplexPort.cpp b/src/server/DuplexPort.cpp index 0e19e939..439d40ef 100644 --- a/src/server/DuplexPort.cpp +++ b/src/server/DuplexPort.cpp @@ -88,15 +88,15 @@ DuplexPort::inherit_neighbour(const PortImpl* port, } bool -DuplexPort::get_buffers(BufferFactory& bufs, - Raul::Array* buffers, - uint32_t poly, - bool real_time) const +DuplexPort::get_buffers(BufferFactory& bufs, + Raul::Array* voices, + uint32_t poly, + bool real_time) const { if (_is_output) { - return InputPort::get_buffers(bufs, buffers, poly, real_time); + return InputPort::get_buffers(bufs, voices, poly, real_time); } else { - return OutputPort::get_buffers(bufs, buffers, poly, real_time); + return OutputPort::get_buffers(bufs, voices, poly, real_time); } } @@ -115,7 +115,7 @@ DuplexPort::pre_process(Context& context) perspective. Prepare buffers for write so plugins can deliver to them */ for (uint32_t v = 0; v < _poly; ++v) { - _buffers->at(v)->prepare_write(context); + _voices->at(v).buffer->prepare_write(context); } } else { /* This is a a graph input, which is an output from the internal -- cgit v1.2.1