Enum ChannelCountMode

java.lang.Object
java.lang.Enum<ChannelCountMode>
com.codename1.media.audio.ChannelCountMode
All Implemented Interfaces:
Comparable<ChannelCountMode>

public enum ChannelCountMode extends Enum<ChannelCountMode>
How an AudioNode decides the number of channels it mixes its inputs to, matching the Web Audio ChannelCountMode enumeration.
  • Enum Constant Details

    • MAX

      public static final ChannelCountMode MAX
      The number of channels is the largest number of channels among the connections to the input. channelCount is ignored.
    • CLAMPED_MAX

      public static final ChannelCountMode CLAMPED_MAX
      Like MAX, but never more than channelCount.
    • EXPLICIT

      public static final ChannelCountMode EXPLICIT
      Always exactly channelCount.
  • Method Details

    • values

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

      public static ChannelCountMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null