diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/test/java/com/jsyn/engine/TestWaveFileReadWrite.java | 2 | ||||
-rw-r--r-- | src/test/java/com/jsyn/ports/TestSequentialData.java | 4 | ||||
-rw-r--r-- | src/test/java/com/jsyn/unitgen/TestEnvelopeAttackDecay.java | 8 | ||||
-rw-r--r-- | src/test/resources/log4j.xml (renamed from src/main/resources/log4j.xml) | 6 |
4 files changed, 10 insertions, 10 deletions
diff --git a/src/test/java/com/jsyn/engine/TestWaveFileReadWrite.java b/src/test/java/com/jsyn/engine/TestWaveFileReadWrite.java index b5051e6..a027d0b 100644 --- a/src/test/java/com/jsyn/engine/TestWaveFileReadWrite.java +++ b/src/test/java/com/jsyn/engine/TestWaveFileReadWrite.java @@ -43,7 +43,7 @@ public class TestWaveFileReadWrite { writer.setSamplesPerFrame(numChannels); writer.setBitsPerSample(16); - for (var datum : data) { + for (float datum : data) { writer.write(datum); } writer.close(); diff --git a/src/test/java/com/jsyn/ports/TestSequentialData.java b/src/test/java/com/jsyn/ports/TestSequentialData.java index 2f27ec2..f95ebcb 100644 --- a/src/test/java/com/jsyn/ports/TestSequentialData.java +++ b/src/test/java/com/jsyn/ports/TestSequentialData.java @@ -37,8 +37,8 @@ public class TestSequentialData { @Test public void testCrossfade() { - var sample1 = new FloatSample(data1); - var sample2 = new FloatSample(data2); + FloatSample sample1 = new FloatSample(data1); + FloatSample sample2 = new FloatSample(data2); SequentialDataCrossfade xfade = new SequentialDataCrossfade(); xfade.setup(sample1, 4, 3, sample2, 1, 6); diff --git a/src/test/java/com/jsyn/unitgen/TestEnvelopeAttackDecay.java b/src/test/java/com/jsyn/unitgen/TestEnvelopeAttackDecay.java index 8328bb7..b30d9f1 100644 --- a/src/test/java/com/jsyn/unitgen/TestEnvelopeAttackDecay.java +++ b/src/test/java/com/jsyn/unitgen/TestEnvelopeAttackDecay.java @@ -43,7 +43,7 @@ public class TestEnvelopeAttackDecay extends TestUnitGate { @Test public void testOnOff() throws InterruptedException { - var envelope = new EnvelopeAttackDecay(); + EnvelopeAttackDecay envelope = new EnvelopeAttackDecay(); synthesisEngine.add(envelope); envelope.attack.set(0.1); @@ -81,7 +81,7 @@ public class TestEnvelopeAttackDecay extends TestUnitGate { @Test public void testRetrigger() throws InterruptedException { - var envelope = new EnvelopeAttackDecay(); + EnvelopeAttackDecay envelope = new EnvelopeAttackDecay(); synthesisEngine.add(envelope); envelope.attack.set(0.1); @@ -117,9 +117,9 @@ public class TestEnvelopeAttackDecay extends TestUnitGate { @Test public void testAutoDisable() throws InterruptedException { - var ramp = new LinearRamp(); + LinearRamp ramp = new LinearRamp(); synthesisEngine.add(ramp); - var envelope = new EnvelopeAttackDecay(); + EnvelopeAttackDecay envelope = new EnvelopeAttackDecay(); envelope.attack.set(0.1); envelope.decay.set(0.1); synthesisEngine.add(envelope); diff --git a/src/main/resources/log4j.xml b/src/test/resources/log4j.xml index cc107b1..43fb2e0 100644 --- a/src/main/resources/log4j.xml +++ b/src/test/resources/log4j.xml @@ -1,5 +1,5 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" > +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration debug="false"> <appender name="default.console" class="org.apache.log4j.ConsoleAppender"> <param name="target" value="System.out"/> @@ -9,7 +9,7 @@ </appender> <root> - <priority value="INFO" /> + <priority value="DEBUG" /> <appender-ref ref="default.console"/> </root> </log4j:configuration> |