|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectzombie.openal.NullAudio
public class NullAudio
A null implementation used to provide an object reference when sound has failed.
| Constructor Summary | |
|---|---|
NullAudio()
|
|
| Method Summary | |
|---|---|
int |
getBufferID()
get the ID of the OpenAL buffer holding this data (if any). |
float |
getPosition()
Return the current playing position in the sound |
boolean |
isPlaying()
Check if the sound is playing as sound fx |
int |
playAsMusic(float pitch,
float gain,
boolean loop)
Play this sound as music |
int |
playAsSoundEffect(float pitch,
float gain,
boolean loop)
Play this sound as a sound effect |
int |
playAsSoundEffect(float pitch,
float gain,
boolean loop,
float x,
float y,
float z,
float radius)
Play this sound as a sound effect |
int |
playAsSoundEffectUnbuffered(float pitch,
float gain,
boolean loop)
|
void |
setID(int id)
|
boolean |
setPosition(float position)
Seeks to a position in the music. |
boolean |
setPosition(float x,
float y,
float z)
|
void |
setRange(float f)
|
void |
setVolume(float volume)
|
void |
stop()
Stop the sound effect |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullAudio()
| Method Detail |
|---|
public int getBufferID()
Audio
getBufferID in interface Audioorg.newdawn.slick.openal.Audio#getBufferID()public float getPosition()
Audio
getPosition in interface Audioorg.newdawn.slick.openal.Audio#getPosition()public void setRange(float f)
setRange in interface Audio
public boolean setPosition(float x,
float y,
float z)
setPosition in interface Audiopublic boolean isPlaying()
Audio
isPlaying in interface Audioorg.newdawn.slick.openal.Audio#isPlaying()
public int playAsMusic(float pitch,
float gain,
boolean loop)
Audio
playAsMusic in interface Audiopitch - The pitch of the play backgain - The gain of the play backloop - True if we should loop
org.newdawn.slick.openal.Audio#playAsMusic(float, float, boolean)
public int playAsSoundEffect(float pitch,
float gain,
boolean loop)
Audio
playAsSoundEffect in interface Audiopitch - The pitch of the play backgain - The gain of the play backloop - True if we should loop
org.newdawn.slick.openal.Audio#playAsSoundEffect(float, float, boolean)
public int playAsSoundEffect(float pitch,
float gain,
boolean loop,
float x,
float y,
float z,
float radius)
Audio
playAsSoundEffect in interface Audiopitch - The pitch of the play backgain - The gain of the play backloop - True if we should loopx - The x position of the soundy - The y position of the soundz - The z position of the sound
org.newdawn.slick.openal.Audio#playAsSoundEffect(float, float, boolean, float, float, float)public void setID(int id)
setID in interface Audiopublic boolean setPosition(float position)
Audio
setPosition in interface Audioposition - Position in seconds.
org.newdawn.slick.openal.Audio#setPosition(float)public void setVolume(float volume)
setVolume in interface Audiopublic void stop()
Audio
stop in interface Audioorg.newdawn.slick.openal.Audio#stop()
public int playAsSoundEffectUnbuffered(float pitch,
float gain,
boolean loop)
playAsSoundEffectUnbuffered in interface Audio
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||