|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Audio
The description of of audio data loaded by the AudioLoader
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)
Play this sound as a sound effect |
boolean |
setPosition(float position)
Seeks to a position in the music. |
void |
stop()
Stop the sound effect |
Method Detail |
---|
void stop()
int getBufferID()
boolean isPlaying()
int playAsSoundEffect(float pitch, float gain, boolean loop)
pitch
- The pitch of the play backgain
- The gain of the play backloop
- True if we should loop
int playAsSoundEffect(float pitch, float gain, boolean loop, float x, float y, float z)
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
int playAsMusic(float pitch, float gain, boolean loop)
pitch
- The pitch of the play backgain
- The gain of the play backloop
- True if we should loop
boolean setPosition(float position)
position
- Position in seconds.
float getPosition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |