summaryrefslogtreecommitdiffstats
path: root/src/server/InputPort.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-03 04:09:37 +0000
committerDavid Robillard <d@drobilla.net>2011-10-03 04:09:37 +0000
commit990007a6c0317aa0cce97f4e095bc98745c60c4d (patch)
treee5e3010b83ff525b900adf8096556984e0feacf7 /src/server/InputPort.cpp
parent8768c927968c2541bcac763d9a4f237081eaca4b (diff)
downloadingen-990007a6c0317aa0cce97f4e095bc98745c60c4d.tar.gz
ingen-990007a6c0317aa0cce97f4e095bc98745c60c4d.tar.bz2
ingen-990007a6c0317aa0cce97f4e095bc98745c60c4d.zip
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
Diffstat (limited to 'src/server/InputPort.cpp')
-rw-r--r--src/server/InputPort.cpp4
1 files changed, 2 insertions, 2 deletions
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();