diff options
Diffstat (limited to 'src/test/java/com/jsyn/util/DebugSampleLoader.java')
-rw-r--r-- | src/test/java/com/jsyn/util/DebugSampleLoader.java | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/test/java/com/jsyn/util/DebugSampleLoader.java b/src/test/java/com/jsyn/util/DebugSampleLoader.java index c0ddef5..02e546b 100644 --- a/src/test/java/com/jsyn/util/DebugSampleLoader.java +++ b/src/test/java/com/jsyn/util/DebugSampleLoader.java @@ -26,8 +26,6 @@ import com.jsyn.unitgen.LineOut; import com.jsyn.unitgen.VariableRateDataReader; import com.jsyn.unitgen.VariableRateMonoReader; import com.jsyn.unitgen.VariableRateStereoReader; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** * Play a sample from a WAV file using JSyn. @@ -36,8 +34,6 @@ import org.slf4j.LoggerFactory; */ public class DebugSampleLoader { - private static final Logger LOGGER = LoggerFactory.getLogger(DebugSampleLoader.class); - private Synthesizer synth; private VariableRateDataReader samplePlayer; private LineOut lineOut; @@ -80,11 +76,11 @@ public class DebugSampleLoader { // Load the sample and display its properties. SampleLoader.setJavaSoundPreferred(false); sample = SampleLoader.loadFloatSample(sampleFile); - LOGGER.debug("Sample has: channels = " + sample.getChannelsPerFrame()); - LOGGER.debug(" frames = " + sample.getNumFrames()); - LOGGER.debug(" rate = " + sample.getFrameRate()); - LOGGER.debug(" loopStart = " + sample.getSustainBegin()); - LOGGER.debug(" loopEnd = " + sample.getSustainEnd()); + System.out.println("Sample has: channels = " + sample.getChannelsPerFrame()); + System.out.println(" frames = " + sample.getNumFrames()); + System.out.println(" rate = " + sample.getFrameRate()); + System.out.println(" loopStart = " + sample.getSustainBegin()); + System.out.println(" loopEnd = " + sample.getSustainEnd()); if (sample.getChannelsPerFrame() == 1) { synth.add(samplePlayer = new VariableRateMonoReader()); @@ -109,13 +105,13 @@ public class DebugSampleLoader { // We can simply queue the entire file. // Or if it has a loop we can play the loop for a while. if (sample.getSustainBegin() < 0) { - LOGGER.debug("queue the sample"); + System.out.println("queue the sample"); samplePlayer.dataQueue.queue(sample); } else { - LOGGER.debug("queueOn the sample"); + System.out.println("queueOn the sample"); samplePlayer.dataQueue.queueOn(sample); synth.sleepFor(8.0); - LOGGER.debug("queueOff the sample"); + System.out.println("queueOff the sample"); samplePlayer.dataQueue.queueOff(sample); } |