Class OpenALSound
- java.lang.Object
-
- com.badlogic.gdx.backends.lwjgl3.audio.OpenALSound
-
-
Constructor Summary
Constructors Constructor Description OpenALSound(OpenALLwjgl3Audio audio)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()floatduration()Returns the length of the sound in seconds.intgetChannels()returns the number of channels of the sound (1 for mono, 2 for stereo).intgetRate()returns the original sample rate of the sound in Hz.longloop()longloop(float volume)longloop(float volume, float pitch, float pan)voidpause()voidpause(long soundId)longplay()longplay(float volume)longplay(float volume, float pitch, float pan)voidresume()voidresume(long soundId)voidsetLooping(long soundId, boolean looping)voidsetPan(long soundId, float pan, float volume)voidsetPitch(long soundId, float pitch)voidsetVolume(long soundId, float volume)voidstop()voidstop(long soundId)
-
-
-
Constructor Detail
-
OpenALSound
public OpenALSound(OpenALLwjgl3Audio audio)
-
-
Method Detail
-
play
public long play()
- Specified by:
playin interfacecom.badlogic.gdx.audio.Sound
-
play
public long play(float volume)
- Specified by:
playin interfacecom.badlogic.gdx.audio.Sound
-
loop
public long loop()
- Specified by:
loopin interfacecom.badlogic.gdx.audio.Sound
-
loop
public long loop(float volume)
- Specified by:
loopin interfacecom.badlogic.gdx.audio.Sound
-
stop
public void stop()
- Specified by:
stopin interfacecom.badlogic.gdx.audio.Sound
-
dispose
public void dispose()
- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable- Specified by:
disposein interfacecom.badlogic.gdx.audio.Sound
-
stop
public void stop(long soundId)
- Specified by:
stopin interfacecom.badlogic.gdx.audio.Sound
-
pause
public void pause()
- Specified by:
pausein interfacecom.badlogic.gdx.audio.Sound
-
pause
public void pause(long soundId)
- Specified by:
pausein interfacecom.badlogic.gdx.audio.Sound
-
resume
public void resume()
- Specified by:
resumein interfacecom.badlogic.gdx.audio.Sound
-
resume
public void resume(long soundId)
- Specified by:
resumein interfacecom.badlogic.gdx.audio.Sound
-
setPitch
public void setPitch(long soundId, float pitch)- Specified by:
setPitchin interfacecom.badlogic.gdx.audio.Sound
-
setVolume
public void setVolume(long soundId, float volume)- Specified by:
setVolumein interfacecom.badlogic.gdx.audio.Sound
-
setLooping
public void setLooping(long soundId, boolean looping)- Specified by:
setLoopingin interfacecom.badlogic.gdx.audio.Sound
-
setPan
public void setPan(long soundId, float pan, float volume)- Specified by:
setPanin interfacecom.badlogic.gdx.audio.Sound
-
play
public long play(float volume, float pitch, float pan)- Specified by:
playin interfacecom.badlogic.gdx.audio.Sound
-
loop
public long loop(float volume, float pitch, float pan)- Specified by:
loopin interfacecom.badlogic.gdx.audio.Sound
-
duration
public float duration()
Returns the length of the sound in seconds.
-
getRate
public int getRate()
returns the original sample rate of the sound in Hz.
-
getChannels
public int getChannels()
returns the number of channels of the sound (1 for mono, 2 for stereo).
-
-