|
Javadoc for slick-ibxm 0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectibxm.OpenALMODPlayer
public class OpenALMODPlayer
A streaming mod/xm play back system
| Constructor Summary | |
|---|---|
OpenALMODPlayer()
|
|
| Method Summary | |
|---|---|
boolean |
done()
Check if the playback is complete. |
void |
init()
Initialise OpenAL LWJGL styley |
static Module |
loadModule(java.io.InputStream in)
Load a module using the IBXM |
void |
play(java.io.InputStream in,
boolean loop,
boolean start)
Play a mod or xm track streamed from the specified location |
void |
play(int source,
java.io.InputStream in,
boolean loop,
boolean start)
Play a mod or xm track streamed from the specified location |
void |
play(Module module,
int source,
boolean loop,
boolean start)
Play a mod or xm track streamed from the specified location |
void |
setup(float pitch,
float gain)
Setup the playback properties |
boolean |
stream(int bufferId)
Stream one section from the mod/xm into an OpenAL buffer |
void |
update()
Poll the bufferNames - check if we need to fill the bufferNames with another section. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenALMODPlayer()
| Method Detail |
|---|
public void init()
public void play(java.io.InputStream in,
boolean loop,
boolean start)
throws java.io.IOException
in - The input stream to read the music fromloop - True if the track should be loopedstart - True if the music should be started
java.io.IOException - The input stream to read the music from
public void play(int source,
java.io.InputStream in,
boolean loop,
boolean start)
throws java.io.IOException
source - The OpenAL source to play the music onin - The input stream to read the music fromloop - True if the track should be loopedstart - True if the music should be started
java.io.IOException - The input stream to read the music from
public void play(Module module,
int source,
boolean loop,
boolean start)
module - The moudle to play backsource - The OpenAL source to play the music onstart - True if the music should be startedloop - True if the track should be looped
public void setup(float pitch,
float gain)
pitch - The pitch to play back atgain - The volume to play back atpublic boolean done()
public static Module loadModule(java.io.InputStream in)
throws java.io.IOException
in - The input stream to read the module from
java.io.IOException - Indicates a failure to access the modulepublic void update()
public boolean stream(int bufferId)
bufferId - The ID of the buffer to fill
|
Javadoc for slick-ibxm 0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||