diff options
author | Phil Burk <[email protected]> | 2021-09-01 20:20:27 -0700 |
---|---|---|
committer | Phil Burk <[email protected]> | 2021-09-01 20:23:51 -0700 |
commit | d33fb2c959fff6471dc48434b37b01ac98874e82 (patch) | |
tree | 9844c2762853cd3a22c59093d0f25484a7d202cb /src/main/java/com/jsyn/devices/javasound/MidiDeviceTools.java | |
parent | 911c8c9f292374b1668ce5e30a539f7e62f75369 (diff) |
jsyn: remove dependency on SLF4J
It was causing too many problems and had no apparent benefit.
Fixes #101
Diffstat (limited to 'src/main/java/com/jsyn/devices/javasound/MidiDeviceTools.java')
-rw-r--r-- | src/main/java/com/jsyn/devices/javasound/MidiDeviceTools.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/main/java/com/jsyn/devices/javasound/MidiDeviceTools.java b/src/main/java/com/jsyn/devices/javasound/MidiDeviceTools.java index 9cff095..a7a7528 100644 --- a/src/main/java/com/jsyn/devices/javasound/MidiDeviceTools.java +++ b/src/main/java/com/jsyn/devices/javasound/MidiDeviceTools.java @@ -16,8 +16,6 @@ package com.jsyn.devices.javasound; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import javax.sound.midi.MidiDevice; import javax.sound.midi.MidiSystem; @@ -27,20 +25,18 @@ import javax.sound.midi.Synthesizer; public class MidiDeviceTools { - private static final Logger LOGGER = LoggerFactory.getLogger(MidiDeviceTools.class); - /** Print the available MIDI Devices. */ public static void listDevices() { // Ask the MidiSystem what is available. MidiDevice.Info[] infos = MidiSystem.getMidiDeviceInfo(); // Print info about each device. for (MidiDevice.Info info : infos) { - LOGGER.debug("MIDI Info: " + info.getDescription() + ", " + info.getName() + ", " + System.out.println("MIDI Info: " + info.getDescription() + ", " + info.getName() + ", " + info.getVendor() + ", " + info.getVersion()); // Get the device for more information. try { MidiDevice device = MidiSystem.getMidiDevice(info); - LOGGER.debug(" Device: " + ", #recv = " + device.getMaxReceivers() + System.out.println(" Device: " + ", #recv = " + device.getMaxReceivers() + ", #xmit = " + device.getMaxTransmitters() + ", open = " + device.isOpen() + ", " + device); } catch (MidiUnavailableException e) { @@ -67,7 +63,7 @@ public class MidiDeviceTools { || (info.getDescription().toLowerCase() .contains(text.toLowerCase()))) { keyboard = device; - LOGGER.debug("Chose: " + info.getDescription()); + System.out.println("Chose: " + info.getDescription()); break; } } |