| Constructor and Description |
|---|
OpenALSound(OpenALLwjgl3Audio audio) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
float |
duration()
Returns the length of the sound in seconds.
|
int |
getChannels()
returns the number of channels of the sound (1 for mono, 2 for stereo).
|
int |
getRate()
returns the original sample rate of the sound in Hz.
|
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 OpenALSound(OpenALLwjgl3Audio 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()
public int getRate()
public int getChannels()