diff options
Diffstat (limited to 'src/PatchageCanvas.cpp')
-rw-r--r-- | src/PatchageCanvas.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp index 99593e0..4f6a12e 100644 --- a/src/PatchageCanvas.cpp +++ b/src/PatchageCanvas.cpp @@ -111,15 +111,12 @@ PatchageCanvas::find_port(const PortID& id) continue; if (pp->type() == ALSA_MIDI) { - /*cerr << "ALSA PORT: " << (int)pp->alsa_addr()->client << ":" - << (int)pp->alsa_addr()->port << endl;*/ - if (pp->alsa_addr() && pp->alsa_addr()->client == id.id.alsa_addr.client && pp->alsa_addr()->port == id.id.alsa_addr.port) { - if (!id.is_input && module->type() == Input) { - //cerr << "WRONG DIRECTION, SKIPPED PORT" << endl; - } else { + if ((module->type() == InputOutput) + || (id.is_input && (module->type() == Input)) + || (!id.is_input && (module->type() == Output))) { return pp; } } |