Class AndroidAudioData

All Implemented Interfaces:
Cloneable

public class AndroidAudioData extends AudioData
  • Field Details

    • assetKey

      protected AssetKey<?> assetKey
    • currentVolume

      protected float currentVolume
  • Constructor Details

    • AndroidAudioData

      public AndroidAudioData()
    • AndroidAudioData

      protected AndroidAudioData(int id)
  • Method Details

    • getAssetKey

      public AssetKey<?> getAssetKey()
    • setAssetKey

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

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

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

      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

      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

      public float getCurrentVolume()
    • setCurrentVolume

      public void setCurrentVolume(float currentVolume)
    • createDestructableClone

      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

      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.