From 2f9d275c6b279aa12eab9ca93dbee1c6c3dfada1 Mon Sep 17 00:00:00 2001 From: Tobias Schlemmer Date: Tue, 25 Mar 2014 20:26:51 +0100 Subject: [PATCH] Add sequence number also to MIDI sink names. --- RtMidi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RtMidi.cpp b/RtMidi.cpp index 609f6d7a..c57422c1 100644 --- a/RtMidi.cpp +++ b/RtMidi.cpp @@ -1716,6 +1716,8 @@ std::string MidiOutAlsa :: getPortName( unsigned int portNumber ) snd_seq_get_any_client_info( data->seq, cnum, cinfo ); std::ostringstream os; os << snd_seq_client_info_get_name(cinfo); + os << " "; // GO: These lines added to make sure devices are listed + os << snd_seq_port_info_get_client( pinfo ); // GO: with full portnames added to ensure individual device names os << ":"; os << snd_seq_port_info_get_port(pinfo); stringName = os.str();