1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-26 02:14:22 +00:00

Linux: Fixed a MIDI port read/write mixup

This commit is contained in:
Tom Poole 2018-01-17 12:14:10 +00:00
parent 1c21f34e21
commit 646aebb77e

View file

@ -390,7 +390,7 @@ static AlsaClient::Port* iterateMidiClient (const AlsaClient::Ptr& client,
{
if (snd_seq_query_next_port (seqHandle, portInfo) == 0
&& (snd_seq_port_info_get_capability (portInfo)
& (forInput ? SND_SEQ_PORT_CAP_SUBS_WRITE : SND_SEQ_PORT_CAP_SUBS_READ)) != 0)
& (forInput ? SND_SEQ_PORT_CAP_SUBS_READ : SND_SEQ_PORT_CAP_SUBS_WRITE)) != 0)
{
const String portName = snd_seq_port_info_get_name(portInfo);