Class AndroidAudioData

All Implemented Interfaces:
Cloneable

public class AndroidAudioData extends AudioData
  • Field Details Link icon

    • assetKey Link icon

      protected AssetKey<?> assetKey
    • currentVolume Link icon

      protected float currentVolume
  • Constructor Details Link icon

    • AndroidAudioData Link icon

      public AndroidAudioData()
    • AndroidAudioData Link icon

      protected AndroidAudioData(int id)
  • Method Details Link icon

    • getAssetKey Link icon

      public AssetKey<?> getAssetKey()
    • setAssetKey Link icon

      public void setAssetKey(AssetKey<?> assetKey)
    • getDataType Link icon

      public AudioData.DataType getDataType()
      Specified by:
      getDataType in class AudioData
      Returns:
      The data type, either Buffer or Stream.
    • getDuration Link icon

      public float getDuration()
      Specified by:
      getDuration in class AudioData
      Returns:
      the duration in seconds of the audio clip.
    • resetObject Link icon

      public void resetObject()
      Description copied from class: NativeObject
      Called when the GL context is restarted to reset all IDs. Prevents "white textures" on display restart.
      Specified by:
      resetObject in class NativeObject
    • deleteObject Link icon

      public void deleteObject(Object rendererObject)
      Description copied from class: NativeObject
      Deletes the GL object from the GPU when it is no longer used. Called automatically by the GL object manager.
      Specified by:
      deleteObject in class NativeObject
      Parameters:
      rendererObject - The renderer to be used to delete the object
    • getCurrentVolume Link icon

      public float getCurrentVolume()
    • setCurrentVolume Link icon

      public void setCurrentVolume(float currentVolume)
    • createDestructableClone Link icon

      public NativeObject createDestructableClone()
      Description copied from class: NativeObject
      Creates a shallow clone of this GL Object. The deleteObject method should be functional for this object.
      Specified by:
      createDestructableClone in class NativeObject
      Returns:
      a new instance
    • getUniqueId Link icon

      public long getUniqueId()
      Description copied from class: NativeObject
      Returns a unique ID for this NativeObject. No other NativeObject shall have the same ID.
      Specified by:
      getUniqueId in class NativeObject
      Returns:
      unique ID for this NativeObject.