!7 lib 1001094 // JavaLayer 1.0.1 lib 1003620 // mp3spi1.9.4.jar lib 1003621 // tritonus_share.jar import javax.sound.sampled.*; p { File file = william_silent("hello"); print("MP3 size: " + file.length()); fixContextClassLoader(); AudioInputStream in = AudioSystem.getAudioInputStream(file); AudioFormat baseFormat = in.getFormat(); AudioFormat decodedFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, baseFormat.getSampleRate(), 16, baseFormat.getChannels(), baseFormat.getChannels() * 2, baseFormat.getSampleRate(), false); AudioInputStream din = AudioSystem.getAudioInputStream(decodedFormat, in); int numBytes = din.available(); System.out.println("numbytes: "+numBytes); byte[] buffer = new byte[numBytes]; int count=0, n; while ((n = din.read(buffer, count, numBytes-count)) > 0) { count += n; print("Read " + count + " bytes"); } }