summaryrefslogtreecommitdiffstats
path: root/src/libs/engine
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-06-19 19:22:26 +0000
committerDavid Robillard <d@drobilla.net>2006-06-19 19:22:26 +0000
commit0132fbca88710d2c5ac5e7df98ac23a7f1959824 (patch)
tree24ffe90845f1a2ed22bca9cb610d46525beb982c /src/libs/engine
parentf260589c35d4bfdac6add58dd92c2394d143813a (diff)
downloadingen-0132fbca88710d2c5ac5e7df98ac23a7f1959824.tar.gz
ingen-0132fbca88710d2c5ac5e7df98ac23a7f1959824.tar.bz2
ingen-0132fbca88710d2c5ac5e7df98ac23a7f1959824.zip
Alsa MIDI driver updates (eg compiles)
git-svn-id: http://svn.drobilla.net/lad/grauph@66 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine')
-rw-r--r--src/libs/engine/AlsaMidiDriver.cpp8
1 files changed, 4 insertions, 4 deletions
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<MidiMessage>* 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<AlsaMidiPort*>::iterator i = m_in_ports.begin(); i != m_in_ports.end(); ++i)
if ((*i) == (AlsaMidiPort*)port)
return m_in_ports.remove(i)->elem();