|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Sound
A Sound is a short audio clip that can be played numerous times in parallel. It's completely loaded into memory so only load
small audio files. Call the dispose()
method when you're done using the Sound.
Sound instances are created via a call to Audio.newSound(FileHandle)
.
Method Summary | |
---|---|
void |
dispose()
Releases all the resources. |
void |
play()
Plays the sound. |
void |
play(float volume)
Plays the sound. |
void |
stop()
Stops playing all instances of this sound. |
Method Detail |
---|
void play()
void play(float volume)
volume
- the volume in the range [0,1]void stop()
void dispose()
dispose
in interface Disposable
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |