Browse Source

Merge branch 'master' of github.com:VCVRack/Rack

tags/v0.5.0
Andrew Belt 7 years ago
parent
commit
0fc16402f6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/core/MidiIO.cpp

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

@@ -63,12 +63,12 @@ std::vector<std::string> MidiIO::getDevices() {


void MidiIO::openDevice(std::string deviceName) { void MidiIO::openDevice(std::string deviceName) {


MidiInWrapper *mw = midiInMap[deviceName];

if (this->id > 0 || this->deviceName != "") { if (this->id > 0 || this->deviceName != "") {
close(); close();
} }


MidiInWrapper *mw = midiInMap[deviceName];

if (!mw) { if (!mw) {
try { try {
mw = new MidiInWrapper(); mw = new MidiInWrapper();


Loading…
Cancel
Save