samer@43: % austream - construct audio stream from ordinary stream samer@43: % austream :: java.io.InputStream -> java.sound.sampled.AudioInputStream. samer@0: function str=austream(str) samer@0: if ~str.markSupported, str=java.io.BufferedInputStream(str); end samer@0: str=javax.sound.sampled.AudioSystem.getAudioInputStream(str); samer@0: end