public class LibgdxSound
extends java.lang.Object
implements org.mini2Dx.core.audio.Sound
| Modifier and Type | Field and Description |
|---|---|
com.badlogic.gdx.audio.Sound |
sound |
| Constructor and Description |
|---|
LibgdxSound(com.badlogic.gdx.audio.Sound sound) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
long |
loop() |
long |
loop(float volume) |
long |
loop(float volume,
float pitch,
float pan) |
void |
pause() |
void |
pause(long soundId) |
long |
play() |
long |
play(float volume) |
long |
play(float volume,
float pitch,
float pan) |
void |
resume() |
void |
resume(long soundId) |
void |
setLooping(long soundId,
boolean looping) |
void |
setPan(long soundId,
float pan,
float volume) |
void |
setPitch(long soundId,
float pitch) |
void |
setVolume(long soundId,
float volume) |
void |
stop() |
void |
stop(long soundId) |
public long play()
play in interface org.mini2Dx.core.audio.Soundpublic long play(float volume)
play in interface org.mini2Dx.core.audio.Soundpublic long play(float volume,
float pitch,
float pan)
play in interface org.mini2Dx.core.audio.Soundpublic long loop()
loop in interface org.mini2Dx.core.audio.Soundpublic long loop(float volume)
loop in interface org.mini2Dx.core.audio.Soundpublic long loop(float volume,
float pitch,
float pan)
loop in interface org.mini2Dx.core.audio.Soundpublic void stop()
stop in interface org.mini2Dx.core.audio.Soundpublic void pause()
pause in interface org.mini2Dx.core.audio.Soundpublic void resume()
resume in interface org.mini2Dx.core.audio.Soundpublic void stop(long soundId)
stop in interface org.mini2Dx.core.audio.Soundpublic void pause(long soundId)
pause in interface org.mini2Dx.core.audio.Soundpublic void resume(long soundId)
resume in interface org.mini2Dx.core.audio.Soundpublic void setLooping(long soundId,
boolean looping)
setLooping in interface org.mini2Dx.core.audio.Soundpublic void setPitch(long soundId,
float pitch)
setPitch in interface org.mini2Dx.core.audio.Soundpublic void setVolume(long soundId,
float volume)
setVolume in interface org.mini2Dx.core.audio.Soundpublic void setPan(long soundId,
float pan,
float volume)
setPan in interface org.mini2Dx.core.audio.Soundpublic void dispose()
dispose in interface org.mini2Dx.gdx.utils.Disposable