mirror of
https://github.com/badvision/jace.git
synced 2024-11-30 23:49:52 +00:00
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