getAudioInputStream
public static javax.sound.sampled.AudioInputStream getAudioInputStream(java.io.File file)
throws javax.sound.sampled.UnsupportedAudioFileException,
java.io.IOException
Open an audio input stream. If the file is a Wav file, then it will attempt to read the
file with PAMGuards bespoke audio stream reader. This includes support for wav files which
are > 2GByte in size and also works for floating point 32 bit files (which the Java one doesn't).
If that fails, or if its not a wav file, then the standard java AudioInputStream
is used.
- Parameters:
file
- file to open
- Returns:
- a new audio input stream
- Throws:
javax.sound.sampled.UnsupportedAudioFileException
- thrown if it can't understand the audio format.
java.io.IOException