Enum NTSampleKind

java.lang.Object
java.lang.Enum<NTSampleKind>
com.io7m.jnoisetype.api.NTSampleKind
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NTSampleKind>, java.lang.constant.Constable

public enum NTSampleKind
extends java.lang.Enum<NTSampleKind>
See Also:
"SoundFontⓡ Technical Specification 2.04, §7.10 The SHDR subchunk"
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant Description
    SAMPLE_KIND_LEFT
    A left stereo sample.
    SAMPLE_KIND_LINKED
    A linked sample.
    SAMPLE_KIND_MONO
    A mono sample.
    SAMPLE_KIND_NONE
    A nonexistent sample kind; used in terminal records.
    SAMPLE_KIND_RIGHT
    A right stereo sample.
    SAMPLE_KIND_ROM_LEFT
    A left stereo sample in a ROM.
    SAMPLE_KIND_ROM_LINKED
    A linked sample in a ROM.
    SAMPLE_KIND_ROM_MONO
    A mono sample in a ROM.
    SAMPLE_KIND_ROM_RIGHT
    A right stereo sample in a ROM.
  • Method Summary

    Modifier and Type Method Description
    int value()  
    static NTSampleKind valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static NTSampleKind[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • SAMPLE_KIND_NONE

      public static final NTSampleKind SAMPLE_KIND_NONE
      A nonexistent sample kind; used in terminal records.
    • SAMPLE_KIND_MONO

      public static final NTSampleKind SAMPLE_KIND_MONO
      A mono sample.
    • SAMPLE_KIND_RIGHT

      public static final NTSampleKind SAMPLE_KIND_RIGHT
      A right stereo sample.
    • SAMPLE_KIND_LEFT

      public static final NTSampleKind SAMPLE_KIND_LEFT
      A left stereo sample.
    • SAMPLE_KIND_LINKED

      public static final NTSampleKind SAMPLE_KIND_LINKED
      A linked sample.
    • SAMPLE_KIND_ROM_MONO

      public static final NTSampleKind SAMPLE_KIND_ROM_MONO
      A mono sample in a ROM.
    • SAMPLE_KIND_ROM_RIGHT

      public static final NTSampleKind SAMPLE_KIND_ROM_RIGHT
      A right stereo sample in a ROM.
    • SAMPLE_KIND_ROM_LEFT

      public static final NTSampleKind SAMPLE_KIND_ROM_LEFT
      A left stereo sample in a ROM.
    • SAMPLE_KIND_ROM_LINKED

      public static final NTSampleKind SAMPLE_KIND_ROM_LINKED
      A linked sample in a ROM.
  • Method Details

    • values

      public static NTSampleKind[] 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 NTSampleKind valueOf​(java.lang.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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • value

      public int value()
      Returns:
      The integer value of the enumeration