summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Scavone <gary@music.mcgill.ca>2014-03-26 10:20:12 -0400
committerGary Scavone <gary@music.mcgill.ca>2014-03-26 10:20:12 -0400
commit409bb15748e6a8762d81ad4a27741f486cbd4b97 (patch)
treeede1efbaaac1e0c0ba071cd8d4252d0b2607f081
parent1f11f7496aa42edb7aa12f0ad7a5e2264583a818 (diff)
Small fix in ALSA openVirtualPort() to correctly save the port number.
-rw-r--r--RtMidi.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/RtMidi.cpp b/RtMidi.cpp
index 3df0525..63bb486 100644
--- a/RtMidi.cpp
+++ b/RtMidi.cpp
@@ -1606,6 +1606,7 @@ void MidiInAlsa :: openVirtualPort( std::string portName )
error( RtMidiError::DRIVER_ERROR, errorString_ );
return;
}
+ data->vport = snd_seq_port_info_get_port(pinfo);
}
if ( inputData_.doInput == false ) {