Wrote /root/JavaX-Caches/tmp_1568383478/main.java - 4956 bytes (written=4956, should be 4956)
javac=0, ecj=1, useJarBot=0
Checking ECJ at port 4898 at 127.0.0.1
/root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_494949823 /root/JavaX-Caches/tmp_1568383478/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1568383478/main.java:13: error: class, interface, or enum expected
sclass WAVDecoder /*implements com.badlogic.audio.io.Decoder*/ implements AutoCloseable {
^
/root/JavaX-Caches/tmp_1568383478/main.java:18: error: class, interface, or enum expected
int channels;
^
/root/JavaX-Caches/tmp_1568383478/main.java:21: error: class, interface, or enum expected
float sampleRate;
^
/root/JavaX-Caches/tmp_1568383478/main.java:23: error: class, interface, or enum expected
bool ignoreSampleRate = true;
^
/root/JavaX-Caches/tmp_1568383478/main.java:24: error: class, interface, or enum expected
bool twentyFourBit;
^
/root/JavaX-Caches/tmp_1568383478/main.java:27: error: class, interface, or enum expected
int specifiedDataLength;
^
/root/JavaX-Caches/tmp_1568383478/main.java:29: error: class, interface, or enum expected
int remainingDataBytes;
^
/root/JavaX-Caches/tmp_1568383478/main.java:31: error: class, interface, or enum expected
static int defaultBufferSize = 128*1024; //1024*1024
^
/root/JavaX-Caches/tmp_1568383478/main.java:33: error: class, interface, or enum expected
*(File wavFile) {
^
/root/JavaX-Caches/tmp_1568383478/main.java:35: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1568383478/main.java:39: error: class, interface, or enum expected
if( !in.read4ByteString().equals( "RIFF" ) )
^
/root/JavaX-Caches/tmp_1568383478/main.java:42: error: class, interface, or enum expected
in.readIntLittleEndian();
^
/root/JavaX-Caches/tmp_1568383478/main.java:44: error: class, interface, or enum expected
if( !in.read4ByteString().equals( "WAVE" ) )
^
/root/JavaX-Caches/tmp_1568383478/main.java:47: error: class, interface, or enum expected
S s = in.read4ByteString();
^
/root/JavaX-Caches/tmp_1568383478/main.java:48: error: class, interface, or enum expected
if (eq(s, "bext")) { // skip extension block
^
/root/JavaX-Caches/tmp_1568383478/main.java:50: error: class, interface, or enum expected
s = in.read4ByteString();
^
/root/JavaX-Caches/tmp_1568383478/main.java:51: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1568383478/main.java:56: error: class, interface, or enum expected
if( in.readIntLittleEndian() != 16 )
^
/root/JavaX-Caches/tmp_1568383478/main.java:59: error: class, interface, or enum expected
int format;
^
/root/JavaX-Caches/tmp_1568383478/main.java:60: error: class, interface, or enum expected
if ((format = in.readShortLittleEndian()) != 1)
^
/root/JavaX-Caches/tmp_1568383478/main.java:63: error: class, interface, or enum expected
channels = in.readShortLittleEndian();
^
/root/JavaX-Caches/tmp_1568383478/main.java:65: error: class, interface, or enum expected
sampleRate = in.readIntLittleEndian();
^
/root/JavaX-Caches/tmp_1568383478/main.java:66: error: class, interface, or enum expected
if (sampleRate != 44100)
^
/root/JavaX-Caches/tmp_1568383478/main.java:71: error: class, interface, or enum expected
in.readIntLittleEndian();
^
/root/JavaX-Caches/tmp_1568383478/main.java:72: error: class, interface, or enum expected
in.readShortLittleEndian();
^
/root/JavaX-Caches/tmp_1568383478/main.java:73: error: class, interface, or enum expected
int fmt = in.readShortLittleEndian();
^
/root/JavaX-Caches/tmp_1568383478/main.java:75: error: class, interface, or enum expected
if (fmt == 24) twentyFourBit = true;
^
/root/JavaX-Caches/tmp_1568383478/main.java:76: error: class, interface, or enum expected
else if (fmt != 16)
^
/root/JavaX-Caches/tmp_1568383478/main.java:79: error: class, interface, or enum expected
S tag;
^
/root/JavaX-Caches/tmp_1568383478/main.java:80: error: class, interface, or enum expected
while (!(tag = in.read4ByteString()).equals("data")) {
^
/root/JavaX-Caches/tmp_1568383478/main.java:84: error: class, interface, or enum expected
in.skip(len);
^
/root/JavaX-Caches/tmp_1568383478/main.java:85: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1568383478/main.java:88: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1568383478/main.java:99: error: class, interface, or enum expected
public int readMonoSamples(short[] samples, int n default samples.length) {
^
/root/JavaX-Caches/tmp_1568383478/main.java:101: error: class, interface, or enum expected
for (int i = 0; i < n && remainingDataBytes > 0; i++) {
^
/root/JavaX-Caches/tmp_1568383478/main.java:101: error: class, interface, or enum expected
for (int i = 0; i < n && remainingDataBytes > 0; i++) {
^
/root/JavaX-Caches/tmp_1568383478/main.java:101: error: class, interface, or enum expected
for (int i = 0; i < n && remainingDataBytes > 0; i++) {
^
/root/JavaX-Caches/tmp_1568383478/main.java:103: error: class, interface, or enum expected
try {
^
/root/JavaX-Caches/tmp_1568383478/main.java:106: error: class, interface, or enum expected
sample /= channels;
^
/root/JavaX-Caches/tmp_1568383478/main.java:107: error: class, interface, or enum expected
samples[i] = (short) iround(max(-32768, min(32767, sample)));
^
/root/JavaX-Caches/tmp_1568383478/main.java:108: error: class, interface, or enum expected
readSamples++;
^
/root/JavaX-Caches/tmp_1568383478/main.java:109: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1568383478/main.java:110: error: class, interface, or enum expected
catch (Exception ex) { break; } // ouch
^
/root/JavaX-Caches/tmp_1568383478/main.java:114: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1568383478/main.java:116: error: class, interface, or enum expected
public int readStereoSamples(short[] samples, int n default samples.length) {
^
/root/JavaX-Caches/tmp_1568383478/main.java:118: error: class, interface, or enum expected
for (int i = 0; i < n && remainingDataBytes > 0; i += 2) {
^
/root/JavaX-Caches/tmp_1568383478/main.java:118: error: class, interface, or enum expected
for (int i = 0; i < n && remainingDataBytes > 0; i += 2) {
^
/root/JavaX-Caches/tmp_1568383478/main.java:118: error: class, interface, or enum expected
for (int i = 0; i < n && remainingDataBytes > 0; i += 2) {
^
/root/JavaX-Caches/tmp_1568383478/main.java:120: error: class, interface, or enum expected
try {
^
/root/JavaX-Caches/tmp_1568383478/main.java:122: error: class, interface, or enum expected
short right;
^
/root/JavaX-Caches/tmp_1568383478/main.java:123: error: class, interface, or enum expected
if (channels > 1)
^
/root/JavaX-Caches/tmp_1568383478/main.java:125: error: class, interface, or enum expected
else
^
/root/JavaX-Caches/tmp_1568383478/main.java:127: error: class, interface, or enum expected
samples[i] = left;
^
/root/JavaX-Caches/tmp_1568383478/main.java:128: error: class, interface, or enum expected
samples[i+1] = right;
^
/root/JavaX-Caches/tmp_1568383478/main.java:129: error: class, interface, or enum expected
readSamples += 2;
^
/root/JavaX-Caches/tmp_1568383478/main.java:130: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1568383478/main.java:131: error: class, interface, or enum expected
catch (Exception ex) { break; } // ouch
^
/root/JavaX-Caches/tmp_1568383478/main.java:135: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1568383478/main.java:138: error: class, interface, or enum expected
if (twentyFourBit) { --remainingDataBytes; in.read(); }
^
/root/JavaX-Caches/tmp_1568383478/main.java:138: error: class, interface, or enum expected
if (twentyFourBit) { --remainingDataBytes; in.read(); }
^
/root/JavaX-Caches/tmp_1568383478/main.java:140: error: class, interface, or enum expected
ret in.readShortLittleEndian();
^
/root/JavaX-Caches/tmp_1568383478/main.java:141: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1568383478/main.java:143: error: class, interface, or enum expected
int bytesPerValue() { ret twentyFourBit ? 3 : 2; }
^
/root/JavaX-Caches/tmp_1568383478/main.java:145: error: class, interface, or enum expected
int totalValues() { ret specifiedDataLength/bytesPerValue(); }
^
/root/JavaX-Caches/tmp_1568383478/main.java:149: error: class, interface, or enum expected
public void skipSamples(long samples) ctex {
^
/root/JavaX-Caches/tmp_1568383478/main.java:151: error: class, interface, or enum expected
remainingDataBytes -= bytesToSkip;
^
/root/JavaX-Caches/tmp_1568383478/main.java:152: error: class, interface, or enum expected
in.skip(bytesToSkip);
^
/root/JavaX-Caches/tmp_1568383478/main.java:153: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1568383478/main.java:155: error: class, interface, or enum expected
public void close() ctex { in.close(); }
^
/root/JavaX-Caches/tmp_1568383478/main.java:155: error: class, interface, or enum expected
public void close() ctex { in.close(); }
^
70 errors