|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectzombie.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.lang.String ref)
get audio data in a playable state by loading the complete audio into memory. |
static Audio |
getAudioFile(java.lang.String format,
java.lang.String ref)
|
static Audio |
getStreamingAudio(java.lang.String format,
java.lang.String url)
|
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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AudioLoader()
| Method Detail |
|---|
public static Audio getAudio(java.lang.String format,
java.lang.String ref)
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 getAudioFile(java.lang.String format,
java.lang.String ref)
throws java.io.IOException
java.io.IOException
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 data
public static Audio getStreamingAudio(java.lang.String format,
java.lang.String url)
throws java.io.IOException
java.io.IOExceptionpublic static void update()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||