From 28321c051ed849b0fbd1f7b1aaee19b8ca807390 Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Thu, 8 Jan 2015 11:49:37 -0500 Subject: Update to ALSA port type search. --- RtMidi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RtMidi.cpp b/RtMidi.cpp index cb3fa02..ce6db63 100644 --- a/RtMidi.cpp +++ b/RtMidi.cpp @@ -1385,7 +1385,8 @@ unsigned int portInfo( snd_seq_t *seq, snd_seq_port_info_t *pinfo, unsigned int snd_seq_port_info_set_port( pinfo, -1 ); while ( snd_seq_query_next_port( seq, pinfo ) >= 0 ) { unsigned int atyp = snd_seq_port_info_get_type( pinfo ); - if ( ( atyp & SND_SEQ_PORT_TYPE_MIDI_GENERIC ) == 0 ) continue; + if ( ( ( atyp & SND_SEQ_PORT_TYPE_MIDI_GENERIC ) == 0 ) && + ( ( atyp & SND_SEQ_PORT_TYPE_SYNTH ) == 0 ) ) continue; unsigned int caps = snd_seq_port_info_get_capability( pinfo ); if ( ( caps & type ) != type ) continue; if ( count == portNumber ) return 1; -- cgit v1.2.3