throw new UnsupportedOperationException();
return new AndroidAudioInputStream(file.toURL());
File file = File.createTempFile("javax.sound.sampled-", null); file.deleteOnExit(); BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(file)); byte[] buffer = new byte[1024]; int count = stream.read(buffer); while (count >= 0) { out.write(buffer, 0, count); count = stream.read(buffer); } out.flush(); out.close(); return getAudioInputStream(file);
return new AndroidAudioInputStream(url);