mirror of
https://github.com/badvision/jace.git
synced 2024-12-02 20:49:49 +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");
|
System.out.println("No MIDI devices found");
|
||||||
} else {
|
} else {
|
||||||
for (MidiDevice.Info dev : devices) {
|
for (MidiDevice.Info dev : devices) {
|
||||||
|
if (MidiSystem.getMidiDevice(dev).getMaxReceivers() == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
System.out.println("MIDI Device found: " + dev);
|
System.out.println("MIDI Device found: " + dev);
|
||||||
if ((preferredMidiDevice.getValue() == null && dev.getName().contains("Java Sound") && dev instanceof Synthesizer) ||
|
if ((preferredMidiDevice.getValue() == null && dev.getName().contains("Java Sound") && dev instanceof Synthesizer) ||
|
||||||
preferredMidiDevice.getValue().equalsIgnoreCase(dev.getName())
|
preferredMidiDevice.getValue().equalsIgnoreCase(dev.getName())
|
||||||
|
Loading…
Reference in New Issue
Block a user