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 Type
    Method
    Description
    void
    Frees all resources associated with this AudioDevice.
    int
     
    boolean
     
    void
    Pauses the audio device if supported
    void
    Unpauses the audio device if supported
    void
    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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface com.badlogic.gdx.audio.AudioDevice
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
    • getLatency

      public int getLatency()
      Specified by:
      getLatency in interface com.badlogic.gdx.audio.AudioDevice
      Returns:
      the latency in samples.
    • isMono

      public boolean isMono()
      Specified by:
      isMono in interface com.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 interface com.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 interface com.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 interface com.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 interface com.badlogic.gdx.audio.AudioDevice
      Parameters:
      p1 - The samples.
      p2 - The offset into the samples array
      p3 - 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 interface com.badlogic.gdx.audio.AudioDevice
      Parameters:
      p1 - The samples.
      p2 - The offset into the samples array
      p3 - the number of samples to write to the device