Package com.io7m.jnoisetype.api
Enum NTSampleKind
- java.lang.Object
-
- java.lang.Enum<NTSampleKind>
-
- com.io7m.jnoisetype.api.NTSampleKind
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NTSampleKind>
public enum NTSampleKind extends java.lang.Enum<NTSampleKind>
- See Also:
- "SoundFontⓡ Technical Specification 2.04, §7.10 The SHDR subchunk"
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SAMPLE_KIND_LEFTA left stereo sample.SAMPLE_KIND_LINKEDA linked sample.SAMPLE_KIND_MONOA mono sample.SAMPLE_KIND_NONEA nonexistent sample kind; used in terminal records.SAMPLE_KIND_RIGHTA right stereo sample.SAMPLE_KIND_ROM_LEFTA left stereo sample in a ROM.SAMPLE_KIND_ROM_LINKEDA linked sample in a ROM.SAMPLE_KIND_ROM_MONOA mono sample in a ROM.SAMPLE_KIND_ROM_RIGHTA right stereo sample in a ROM.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intvalue()static NTSampleKindvalueOf(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.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static NTSampleKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NTSampleKind c : NTSampleKind.values()) System.out.println(c);
- 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 namejava.lang.NullPointerException- if the argument is null
-
value
public int value()
- Returns:
- The integer value of the enumeration
-
-