public class Mini2DxOpenALSound
extends java.lang.Object
implements com.badlogic.gdx.audio.Sound
OpenALSound to support sound completion events| Constructor and Description |
|---|
Mini2DxOpenALSound(Mini2DxOpenALAudio audio) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
float |
duration()
Returns the length of the sound in seconds.
|
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 Mini2DxOpenALSound(Mini2DxOpenALAudio audio)
public long play()
play in interface com.badlogic.gdx.audio.Soundpublic long play(float volume)
play in interface com.badlogic.gdx.audio.Soundpublic long loop()
loop in interface com.badlogic.gdx.audio.Soundpublic long loop(float volume)
loop in interface com.badlogic.gdx.audio.Soundpublic void stop()
stop in interface com.badlogic.gdx.audio.Soundpublic void dispose()
dispose in interface com.badlogic.gdx.audio.Sounddispose in interface com.badlogic.gdx.utils.Disposablepublic void stop(long soundId)
stop in interface com.badlogic.gdx.audio.Soundpublic void pause()
pause in interface com.badlogic.gdx.audio.Soundpublic void pause(long soundId)
pause in interface com.badlogic.gdx.audio.Soundpublic void resume()
resume in interface com.badlogic.gdx.audio.Soundpublic void resume(long soundId)
resume in interface com.badlogic.gdx.audio.Soundpublic void setPitch(long soundId,
float pitch)
setPitch in interface com.badlogic.gdx.audio.Soundpublic void setVolume(long soundId,
float volume)
setVolume in interface com.badlogic.gdx.audio.Soundpublic void setLooping(long soundId,
boolean looping)
setLooping in interface com.badlogic.gdx.audio.Soundpublic void setPan(long soundId,
float pan,
float volume)
setPan in interface com.badlogic.gdx.audio.Soundpublic long play(float volume,
float pitch,
float pan)
play in interface com.badlogic.gdx.audio.Soundpublic long loop(float volume,
float pitch,
float pan)
loop in interface com.badlogic.gdx.audio.Soundpublic float duration()