|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.openal.AudioImpl
public class AudioImpl
A sound that can be played through OpenAL
Constructor Summary | |
---|---|
protected |
AudioImpl()
|
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 |
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)
Play this sound as a sound effect |
static void |
restartMusic()
Restart the music currently being paused |
boolean |
setPosition(float position)
Seeks to a position in the music. |
void |
stop()
Stop the sound effect |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AudioImpl()
Method Detail |
---|
public int getBufferID()
getBufferID
in interface Audio
public void stop()
Audio
stop
in interface Audio
Audio.stop()
public boolean isPlaying()
Audio
isPlaying
in interface Audio
Audio.isPlaying()
public int playAsSoundEffect(float pitch, float gain, boolean loop)
Audio
playAsSoundEffect
in interface Audio
pitch
- The pitch of the play backgain
- The gain of the play backloop
- True if we should loop
Audio.playAsSoundEffect(float, float, boolean)
public int playAsSoundEffect(float pitch, float gain, boolean loop, float x, float y, float z)
Audio
playAsSoundEffect
in interface Audio
pitch
- 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
Audio.playAsSoundEffect(float, float, boolean, float, float, float)
public int playAsMusic(float pitch, float gain, boolean loop)
Audio
playAsMusic
in interface Audio
pitch
- The pitch of the play backgain
- The gain of the play backloop
- True if we should loop
Audio.playAsMusic(float, float, boolean)
public static void pauseMusic()
public static void restartMusic()
public boolean setPosition(float position)
Audio
setPosition
in interface Audio
position
- Position in seconds.
Audio.setPosition(float)
public float getPosition()
Audio
getPosition
in interface Audio
Audio.getPosition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |