From 990007a6c0317aa0cce97f4e095bc98745c60c4d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 Oct 2011 04:09:37 +0000 Subject: Use port type instead of buffer type where appropriate. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3524 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/InputPort.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/InputPort.cpp') diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp index 2abd17eb..98922b07 100644 --- a/src/server/InputPort.cpp +++ b/src/server/InputPort.cpp @@ -83,7 +83,7 @@ InputPort::get_buffers(BufferFactory& bufs, size_t num_connections = (ThreadManager::thread_is(THREAD_PROCESS)) ? _connections.size() : _num_connections; - if (buffer_type() == PortType::AUDIO && num_connections == 0) { + if (is_a(PortType::AUDIO) && num_connections == 0) { // Audio input with no connections, use shared zero buffer for (uint32_t v = 0; v < poly; ++v) buffers->at(v) = bufs.silent_buffer(); @@ -216,7 +216,7 @@ void InputPort::post_process(Context& context) { if (_set_by_user) { - if (buffer_type() == PortType::EVENTS) { + if (is_a(PortType::EVENTS)) { // Clear events received via a SetPortValue for (uint32_t v = 0; v < _poly; ++v) { buffer(v)->clear(); -- cgit v1.2.1