Enum Class PcmFormat

java.lang.Object
java.lang.Enum<PcmFormat>
de.pottgames.tuningfork.PcmFormat
All Implemented Interfaces:
Serializable, Comparable<PcmFormat>, Constable

public enum PcmFormat extends Enum<PcmFormat>
  • Enum Constant Details

    • SURROUND_7DOT1_16_BIT

      public static final PcmFormat SURROUND_7DOT1_16_BIT
    • SURROUND_7DOT1_8_BIT

      public static final PcmFormat SURROUND_7DOT1_8_BIT
    • SURROUND_6DOT1_16_BIT

      public static final PcmFormat SURROUND_6DOT1_16_BIT
    • SURROUND_6DOT1_8_BIT

      public static final PcmFormat SURROUND_6DOT1_8_BIT
    • SURROUND_5DOT1_16_BIT

      public static final PcmFormat SURROUND_5DOT1_16_BIT
    • SURROUND_5DOT1_8_BIT

      public static final PcmFormat SURROUND_5DOT1_8_BIT
    • QUAD_16_BIT

      public static final PcmFormat QUAD_16_BIT
    • QUAD_8_BIT

      public static final PcmFormat QUAD_8_BIT
    • FLOAT_STEREO_64_BIT

      public static final PcmFormat FLOAT_STEREO_64_BIT
    • FLOAT_STEREO_32_BIT

      public static final PcmFormat FLOAT_STEREO_32_BIT
    • STEREO_16_BIT

      public static final PcmFormat STEREO_16_BIT
    • STEREO_8_BIT

      public static final PcmFormat STEREO_8_BIT
    • FLOAT_MONO_64_BIT

      public static final PcmFormat FLOAT_MONO_64_BIT
    • FLOAT_MONO_32_BIT

      public static final PcmFormat FLOAT_MONO_32_BIT
    • MONO_16_BIT

      public static final PcmFormat MONO_16_BIT
    • MONO_8_BIT

      public static final PcmFormat MONO_8_BIT
    • MS_ADPCM_MONO

      public static final PcmFormat MS_ADPCM_MONO
    • MS_ADPCM_STEREO

      public static final PcmFormat MS_ADPCM_STEREO
  • Method Details

    • values

      public static PcmFormat[] 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 PcmFormat 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
    • getAlId

      public int getAlId()
    • getChannels

      public int getChannels()
    • getBitsPerSample

      public int getBitsPerSample()
    • getDataType

      public PcmFormat.PcmDataType getDataType()
    • isSupportedChannelCount

      public static boolean isSupportedChannelCount(int channels)
    • isSupportedBitRate

      public static boolean isSupportedBitRate(int bits)
    • determineFormat

      public static PcmFormat determineFormat(int channels, int bitsPerSample, PcmFormat.PcmDataType pcmDataType)