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 TypeMethodDescriptionvoiddispose()Frees all resources associated with this AudioDevice.intbooleanisMono()voidpause()Pauses the audio device if supportedvoidresume()Unpauses the audio device if supportedvoidsetVolume(float p1) Sets the volume in the range [0,1].voidwriteSamples(float[] p1, int p2, int p3) Writes the array of float PCM samples to the audio device and blocks until they have been processed.voidwriteSamples(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.AudioDeviceFrees all resources associated with this AudioDevice. Needs to be called when the device is no longer needed.- Specified by:
disposein interfacecom.badlogic.gdx.audio.AudioDevice- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable
-
getLatency
public int getLatency()- Specified by:
getLatencyin interfacecom.badlogic.gdx.audio.AudioDevice- Returns:
- the latency in samples.
-
isMono
public boolean isMono()- Specified by:
isMonoin 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.AudioDevicePauses the audio device if supported- Specified by:
pausein interfacecom.badlogic.gdx.audio.AudioDevice
-
resume
public void resume()Description copied from interface:com.badlogic.gdx.audio.AudioDeviceUnpauses the audio device if supported- Specified by:
resumein interfacecom.badlogic.gdx.audio.AudioDevice
-
setVolume
public void setVolume(float p1) Description copied from interface:com.badlogic.gdx.audio.AudioDeviceSets the volume in the range [0,1].- Specified by:
setVolumein interfacecom.badlogic.gdx.audio.AudioDevice
-
writeSamples
public void writeSamples(float[] p1, int p2, int p3) Description copied from interface:com.badlogic.gdx.audio.AudioDeviceWrites the array of float PCM samples to the audio device and blocks until they have been processed.- Specified by:
writeSamplesin 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.AudioDeviceWrites the array of 16-bit signed PCM samples to the audio device and blocks until they have been processed.- Specified by:
writeSamplesin 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
-