Package com.prineside.luaj.mapping.parts
Class LJ_GDX.AudioDevice_AE.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX.AudioDevice_AE.LIP
- All Implemented Interfaces:
com.badlogic.gdx.audio.AudioDevice
,com.badlogic.gdx.utils.Disposable
,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- LJ_GDX.AudioDevice_AE
public static class LJ_GDX.AudioDevice_AE.LIP
extends InterfaceProxy
implements com.badlogic.gdx.audio.AudioDevice
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Frees all resources associated with this AudioDevice.int
boolean
isMono()
void
pause()
Pauses the audio device if supportedvoid
resume()
Unpauses the audio device if supportedvoid
setVolume
(float p1) Sets the volume in the range [0,1].void
writeSamples
(float[] p1, int p2, int p3) Writes the array of float PCM samples to the audio device and blocks until they have been processed.void
writeSamples
(short[] p1, int p2, int p3) Writes the array of 16-bit signed PCM samples to the audio device and blocks until they have been processed.Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.audio.AudioDevice
Frees all resources associated with this AudioDevice. Needs to be called when the device is no longer needed.- Specified by:
dispose
in interfacecom.badlogic.gdx.audio.AudioDevice
- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
-
getLatency
public int getLatency()- Specified by:
getLatency
in interfacecom.badlogic.gdx.audio.AudioDevice
- Returns:
- the latency in samples.
-
isMono
public boolean isMono()- Specified by:
isMono
in interfacecom.badlogic.gdx.audio.AudioDevice
- Returns:
- whether this AudioDevice is in mono or stereo mode.
-
pause
public void pause()Description copied from interface:com.badlogic.gdx.audio.AudioDevice
Pauses the audio device if supported- Specified by:
pause
in interfacecom.badlogic.gdx.audio.AudioDevice
-
resume
public void resume()Description copied from interface:com.badlogic.gdx.audio.AudioDevice
Unpauses the audio device if supported- Specified by:
resume
in interfacecom.badlogic.gdx.audio.AudioDevice
-
setVolume
public void setVolume(float p1) Description copied from interface:com.badlogic.gdx.audio.AudioDevice
Sets the volume in the range [0,1].- Specified by:
setVolume
in interfacecom.badlogic.gdx.audio.AudioDevice
-
writeSamples
public void writeSamples(float[] p1, int p2, int p3) Description copied from interface:com.badlogic.gdx.audio.AudioDevice
Writes the array of float PCM samples to the audio device and blocks until they have been processed.- Specified by:
writeSamples
in interfacecom.badlogic.gdx.audio.AudioDevice
- Parameters:
p1
- The samples.p2
- The offset into the samples arrayp3
- the number of samples to write to the device
-
writeSamples
public void writeSamples(short[] p1, int p2, int p3) Description copied from interface:com.badlogic.gdx.audio.AudioDevice
Writes the array of 16-bit signed PCM samples to the audio device and blocks until they have been processed.- Specified by:
writeSamples
in interfacecom.badlogic.gdx.audio.AudioDevice
- Parameters:
p1
- The samples.p2
- The offset into the samples arrayp3
- the number of samples to write to the device
-