Package Acquisition.pamAudio
Class PamAudioSystem
java.lang.Object
Acquisition.pamAudio.PamAudioSystem
Deprecated.
Now replaced with PamAudioFileManager.
- Author:
- Jamie Macaulay
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AudioInputStream
getAudioInputStream
(File file) Deprecated.Open an audio input stream.
-
Constructor Details
-
PamAudioSystem
public PamAudioSystem()Deprecated.
-
-
Method Details
-
getAudioInputStream
public static AudioInputStream getAudioInputStream(File file) throws UnsupportedAudioFileException, IOException Deprecated.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:
UnsupportedAudioFileException
- thrown if it can't understand the audio format.IOException
-