Browse Source

Fix blank MIDI driver bug

tags/v0.6.1
Andrew Belt 6 years ago
parent
commit
4e12141e3a
2 changed files with 6 additions and 6 deletions
  1. +1
    -1
      dep/nanosvg
  2. +5
    -5
      src/midi.cpp

+ 1
- 1
dep/nanosvg

@@ -1 +1 @@
Subproject commit 06c1f0f3bb041d69a73bb74067d063a700215b0e
Subproject commit 9a74da4db5ac74083e444010d75114658581b9c7

+ 5
- 5
src/midi.cpp View File

@@ -55,11 +55,11 @@ std::vector<int> MidiIO::getDriverIds() {
}

std::string MidiIO::getDriverName(int driverId) {
MidiDriver *driver = drivers[driverId];
if (driver) {
return driver->getName();
}
return "";
auto it = drivers.find(driverId);
if (it == drivers.end())
return "";
return it->second->getName();
}

void MidiIO::setDriverId(int driverId) {


Loading…
Cancel
Save