lib 1009770 // tritonus share lib 1009766 // tritonus AudioOutputStream import org.tritonus.share.sampled.file.*; import org.tritonus.sampled.file.*; static OutputStream audioOutputStreamAsOutputStream(final AudioOutputStream audioOut) { ret new OutputStream { public void write(int b) throws IOException { audioOut.write(new byte[] { (byte) b }, 0, 1); } public void write(byte[] b) throws IOException { audioOut.write(b, 0, l(b)); } public void write(byte[] b, int o, int l) throws IOException { audioOut.write(b, o, l); } }; }