From 0132fbca88710d2c5ac5e7df98ac23a7f1959824 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 19 Jun 2006 19:22:26 +0000 Subject: Alsa MIDI driver updates (eg compiles) git-svn-id: http://svn.drobilla.net/lad/grauph@66 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/AlsaMidiDriver.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/libs/engine/AlsaMidiDriver.cpp b/src/libs/engine/AlsaMidiDriver.cpp index 1a97b823..991b9d28 100644 --- a/src/libs/engine/AlsaMidiDriver.cpp +++ b/src/libs/engine/AlsaMidiDriver.cpp @@ -48,7 +48,7 @@ AlsaMidiPort::AlsaMidiPort(AlsaMidiDriver* driver, DuplexPort* port assert(port->parent() != NULL); assert(port->poly() == 1); - if (port->port_info()->is_input()) { + if (port->is_input()) { if ((m_port_id = snd_seq_create_simple_port(driver->seq_handle(), port->path().c_str(), SND_SEQ_PORT_CAP_WRITE | SND_SEQ_PORT_CAP_SUBS_WRITE, SND_SEQ_PORT_TYPE_APPLICATION)) < 0) @@ -178,7 +178,7 @@ AlsaMidiPort::prepare_block(const samplecount block_start, const samplecount blo } m_patch_port->buffer(0)->filled_size(num_events); - m_patch_port->tied_port()->buffer(0)->filled_size(num_events); + //m_patch_port->tied_port()->buffer(0)->filled_size(num_events); } @@ -309,7 +309,7 @@ AlsaMidiDriver::prepare_block(const samplecount block_start, const samplecount b void AlsaMidiDriver::add_port(AlsaMidiPort* port) { - if (port->patch_port()->port_info()->is_input()) + if (port->patch_port()->is_input()) m_in_ports.push_back(port); else m_out_ports.push_back(port); @@ -327,7 +327,7 @@ AlsaMidiDriver::add_port(AlsaMidiPort* port) AlsaMidiPort* AlsaMidiDriver::remove_port(AlsaMidiPort* port) { - if (port->patch_port()->port_info()->is_input()) { + if (port->patch_port()->is_input()) { for (List::iterator i = m_in_ports.begin(); i != m_in_ports.end(); ++i) if ((*i) == (AlsaMidiPort*)port) return m_in_ports.remove(i)->elem(); -- cgit v1.2.1