Enum Class PlaybackThread.StopReason

java.lang.Object
java.lang.Enum<PlaybackThread.StopReason>
ca.corbett.extras.audio.PlaybackThread.StopReason
All Implemented Interfaces:
Serializable, Comparable<PlaybackThread.StopReason>, Constable
Enclosing class:
PlaybackThread

public static enum PlaybackThread.StopReason extends Enum<PlaybackThread.StopReason>
  • Enum Constant Details

    • AUDIO_EXHAUSTED

      public static final PlaybackThread.StopReason AUDIO_EXHAUSTED
      The audio stopped because the clip ran to the very end.
    • INTERRUPTED

      public static final PlaybackThread.StopReason INTERRUPTED
      The audio stopped because it was interrupted by a call to stop() or because a listener signalled us to stop.
    • LIMIT_REACHED

      public static final PlaybackThread.StopReason LIMIT_REACHED
      The audio stopped because a limit was configured when we started, and we hit that limit.
  • Method Details

    • values

      public static PlaybackThread.StopReason[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PlaybackThread.StopReason valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null