|
||||||||||
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,
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 radius)
|
void |
setVolume(float volume)
|
void |
stop()
Stop the sound effect |
Method Detail |
---|
int getBufferID()
float getPosition()
boolean isPlaying()
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
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, float radius)
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
void setID(int id)
boolean setPosition(float position)
position
- Position in seconds.
boolean setPosition(float x, float y, float z)
void setVolume(float volume)
void stop()
int playAsSoundEffectUnbuffered(float pitch, float gain, boolean loop)
void setRange(float radius)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |