Browse Source

Merge branch '2017-10-bontric-midiCC-fix' of https://github.com/bontric/Rack-MIDICC-Fork into 2017-10-bontric-midiCC-fix

tags/v0.5.0
ben 7 years ago
parent
commit
cbe7fb1df4
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/core/MidiIO.cpp

+ 3
- 3
src/core/MidiIO.cpp View File

@@ -57,15 +57,15 @@ std::vector<std::string> MidiIO::getDevices() {
} }


RtMidiIn *m = NULL; RtMidiIn *m = NULL;
if (midiInMap.empty()){
if (midiInMap.empty()) {
try { try {
m = new RtMidiIn();
m = new RtMidiIn();
} catch (RtMidiError &error) { } catch (RtMidiError &error) {
fprintf(stderr, "Failed to create RtMidiIn: %s\n", error.getMessage().c_str()); fprintf(stderr, "Failed to create RtMidiIn: %s\n", error.getMessage().c_str());
return names; return names;
} }
} else { } else {
m = midiInMap.begin()->second;
m = midiInMap.begin()->second;
} }


for (unsigned int i = 0; i < m->getPortCount(); i++) { for (unsigned int i = 0; i < m->getPortCount(); i++) {


Loading…
Cancel
Save