|
|
@@ -63,12 +63,12 @@ std::vector<std::string> MidiIO::getDevices() { |
|
|
|
|
|
|
|
void MidiIO::openDevice(std::string deviceName) { |
|
|
|
|
|
|
|
MidiInWrapper *mw = midiInMap[deviceName]; |
|
|
|
|
|
|
|
if (this->id > 0 || this->deviceName != "") { |
|
|
|
close(); |
|
|
|
} |
|
|
|
|
|
|
|
MidiInWrapper *mw = midiInMap[deviceName]; |
|
|
|
|
|
|
|
if (!mw) { |
|
|
|
try { |
|
|
|
mw = new MidiInWrapper(); |
|
|
|