Permalink
Browse files

Preferences Dialog does not open #74

  • Loading branch information...
Angelo Gülle
Angelo Gülle committed Apr 3, 2018
1 parent 4664c15 commit 9affaf9ce315f58ae76f4b31d07b6135658358bf
Showing with 4 additions and 0 deletions.
  1. +4 −0 Midi Automator/src/main/java/com/midi_automator/utils/MidiUtils.java
@@ -127,19 +127,23 @@
String name = infos[i].getName();
int maxReceivers = device.getMaxReceivers();
int maxTransmitters = device.getMaxTransmitters();
log.debug("Found Midi device: " + name);
if (direction == null) {
midiDeviceSignatures.add(name);
log.debug("Returning Midi device: " + name);
} else {
if (direction.equals("IN") && (maxTransmitters != 0)) {
midiDeviceSignatures.add(name);
log.debug("Returning Midi IN device: " + name);
}
if (direction.equals("OUT") && (maxReceivers != 0)) {
midiDeviceSignatures.add(name);
log.debug("Returning Midi OUT device: " + name);
}
}

0 comments on commit 9affaf9

Please sign in to comment.