|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The BaseAudioRenderer
interface is a simple abstraction for
playing audio sound.
Method Summary | |
BaseAudioRenderer |
createRenderer()
Creates another empty renderer based on this renderer. |
URL |
getAudioFile()
Returns the audio file associated with this audio renderer. |
float |
getVolume()
Returns this audio volume. |
boolean |
isPlaying()
Returns true, if this audio is currently playing. |
void |
play()
Begins playback of this audio renderer. |
void |
play(URL audiofile)
Begins playback of specified audio file. |
void |
setLoop(boolean b)
The sound is playing continuously until stop is called. |
void |
setVolume(float volume)
Sets audio volume in [0.0f - 1.0f]. |
void |
stop()
Stops currently played audio. |
Method Detail |
public boolean isPlaying()
public URL getAudioFile()
public void play(URL audiofile)
audiofile
- the audio file to be played by this renderer.public void play()
public void stop()
public void setLoop(boolean b)
Note: if the internal renderer doesn't support built-in loop, please use thread that wait the sound ended and restart the sound.
b
- true, the audio is playing continously.public void setVolume(float volume)
public float getVolume()
public BaseAudioRenderer createRenderer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |