diff options
author | David Robillard <d@drobilla.net> | 2010-12-13 17:49:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-13 17:49:36 +0000 |
commit | 293ecec183eaf2f7fe04e1b4c291155f3fd5ac25 (patch) | |
tree | 751bd5ddb9788cbba2a4c6fdef74a4e0763da7cf /src | |
parent | dfa911687d647aa54fc0a68deaa8437f05656154 (diff) | |
download | patchage-293ecec183eaf2f7fe04e1b4c291155f3fd5ac25.tar.gz patchage-293ecec183eaf2f7fe04e1b4c291155f3fd5ac25.tar.bz2 patchage-293ecec183eaf2f7fe04e1b4c291155f3fd5ac25.zip |
Fix connecting to ALSA duplex ports.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2681 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-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; } } |