import javax.sound.sampled.*; import javax.sound.sampled.Clip; import javax.sound.sampled.Line; static void javaSound_playAudioInputStream(AudioInputStream ais) ctex { Line.Info linfo = new Line.Info(Clip.class); Line line = AudioSystem.getLine(linfo); Clip clip = (Clip) line; //clip.addLineListener(...); clip.open(ais); clip.setFramePosition(0); // troubleshooting? clip.start(); javaSound_closeClipOnStop(clip); print("javaSound playing"); }