forked from Apple-2-Tools/jace
Applying suggestion from issue #32 - Thanks Lutepatious!
This commit is contained in:
parent
3b9d6a232e
commit
d4e6724bf0
@ -548,6 +548,9 @@ public class PassportMidiInterface extends Card {
|
||||
System.out.println("No MIDI devices found");
|
||||
} else {
|
||||
for (MidiDevice.Info dev : devices) {
|
||||
if (MidiSystem.getMidiDevice(dev).getMaxReceivers() == 0) {
|
||||
continue;
|
||||
}
|
||||
System.out.println("MIDI Device found: " + dev);
|
||||
if ((preferredMidiDevice.getValue() == null && dev.getName().contains("Java Sound") && dev instanceof Synthesizer) ||
|
||||
preferredMidiDevice.getValue().equalsIgnoreCase(dev.getName())
|
||||
|
Loading…
Reference in New Issue
Block a user