public class WAVLoader extends Object
| Constructor and Description |
|---|
WAVLoader() |
| Modifier and Type | Method and Description |
|---|---|
static WAVData |
loadFromFile(String filename)
This method loads a (.wav) file into a WAVData object.
|
static WAVData |
loadFromStream(InputStream stream)
This method loads a (.wav) file into a WAVData object.
|
public static WAVData loadFromFile(String filename) throws IOException
filename - The name of the (.wav) fileUnsupportedAudioFileException - if the format of the audio if not
supported.IOException - If the file can no be found or some other IO error
occurspublic static WAVData loadFromStream(InputStream stream) throws IOException
stream - An InputStream for the .WAV stream.UnsupportedAudioFileException - if the format of the audio if not
supported.IOException - If the file can no be found or some other IO error
occurs