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 ALException, IOException
filename - The name of the (.wav) fileALException - 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 ALException, IOException
stream - An InputStream for the .WAV stream.ALException - if the format of the audio if not supported.IOException - If the file can no be found or some other IO error
occurs