|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.openal.AudioLoader
public class AudioLoader
A utility to provide a simple and rational interface to the slick internals
| Constructor Summary | |
|---|---|
AudioLoader()
|
|
| Method Summary | |
|---|---|
static Audio |
getAudio(java.lang.String format,
java.io.InputStream in)
Get audio data in a playable state by loading the complete audio into memory. |
static Audio |
getStreamingAudio(java.lang.String format,
java.net.URL url)
Get audio data in a playable state by setting up a stream that can be piped into OpenAL - i.e. |
static void |
update()
Allow the streaming system to update itself |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AudioLoader()
| Method Detail |
|---|
public static Audio getAudio(java.lang.String format,
java.io.InputStream in)
throws java.io.IOException
format - The format of the audio to be loaded (something like "XM" or "OGG")in - The input stream from which to load the audio data
java.io.IOException - Indicates a failure to access the audio data
public static Audio getStreamingAudio(java.lang.String format,
java.net.URL url)
throws java.io.IOException
format - The format of the audio to be loaded (something like "XM" or "OGG")url - The location of the data that should be streamed
java.io.IOException - Indicates a failure to access the audio datapublic static void update()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||