Class AudioKey

All Implemented Interfaces:
Savable, Cloneable

public class AudioKey extends AssetKey<AudioData>
AudioKey is extending AssetKey by holding stream flag.
  • Constructor Details

    • AudioKey

      public AudioKey(String name, boolean stream, boolean streamCache)
      Create a new AudioKey.
      Parameters:
      name - Name of the asset
      stream - If true, the audio will be streamed. Otherwise, it will be buffered entirely and then played.
      streamCache - If stream is true, then this specifies if the stream cache is used. When enabled, the audio stream will be read entirely but not decoded, allowing features such as seeking, determining duration and looping.
    • AudioKey

      public AudioKey(String name, boolean stream)
      Create a new AudioKey
      Parameters:
      name - Name of the asset
      stream - If true, the audio will be streamed. Otherwise, it will be buffered entirely and then played.
    • AudioKey

      public AudioKey(String name)
    • AudioKey

      public AudioKey()
  • Method Details