|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectzombie.openal.AudioImpl
public class AudioImpl
A sound that can be played through OpenAL
| Field Summary | |
|---|---|
static float |
volDelta
|
| 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 |
float |
getRange()
|
AudioImpl |
initAudioImpl(SoundStore store,
int buffer)
|
boolean |
isPlaying()
Check if the sound is playing as sound fx |
static void |
pauseMusic()
Pause the music currently being played |
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)
|
static void |
restartMusic()
Restart the music currently being paused |
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 radius)
|
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 |
| Field Detail |
|---|
public static float volDelta
| Method Detail |
|---|
public AudioImpl initAudioImpl(SoundStore store,
int buffer)
public static void pauseMusic()
public static void restartMusic()
public int getBufferID()
getBufferID in interface Audiopublic float getPosition()
Audio
getPosition in interface Audioorg.newdawn.slick.openal.Audio#getPosition()public 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 boolean setPosition(float x,
float y,
float z)
setPosition in interface Audiopublic 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 Audiopublic void setRange(float radius)
setRange in interface Audiopublic float getRange()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||