tag:blogger.com,1999:blog-4887465203449259946.post4740223153413116895..comments2015-07-18T10:11:36.553-07:00Comments on Sound Recognition - Thesis: Sound KillsKeyhttp://www.blogger.com/profile/09550101272739558257noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-4887465203449259946.post-58763766475630190932015-07-18T10:11:36.553-07:002015-07-18T10:11:36.553-07:00It seems that 6408764 is not a bug in java sound. ...It seems that 6408764 is not a bug in java sound. This exception is described in the javadoc getAudioInputStream():<br />/**<br /> * Obtains an audio input stream from the input stream provided. The stream<br /> * must point to valid audio file data. In general, audio file readers may<br /> * need to read some data from the stream before determining whether they<br /> * support it. These parsers must be able to mark the stream, read enough<br /> * data to determine whether they support the stream, and, if not, reset the<br /> * stream's read pointer to its original position. If the input stream does<br /> * not support this, this method may fail with an {@code IOException}.<br />*/<br /><br />To fix it in your code you need to wrap the InputStream to the stream which supports mark/reset, for example BufferedInputStream<br /><br />See: http://stackoverflow.com/questions/5529754/java-io-ioexception-mark-reset-not-supportedAnonymoushttps://www.blogger.com/profile/14554374384878752347noreply@blogger.com