public enum SourceFrequency extends java.lang.Enum<SourceFrequency>
LAMEHeader
,
LAME Header FormatEnum Constant and Description |
---|
FREQ_32KHZ
32 khz or smaller
|
FREQ_44_1KHZ
44.1 khz
|
FREQ_48_KHZ
48 khz
|
FREQ_HIGHER
higher than 48 khz
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
gets the name of the source frequency.
|
java.lang.String |
toString()
gets a string representation of the source frequency enum.
|
static SourceFrequency |
valueOf(int frequency)
converts an integral value to its corresponding LAME source frequency enum.
|
static SourceFrequency |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SourceFrequency[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SourceFrequency FREQ_32KHZ
public static final SourceFrequency FREQ_44_1KHZ
public static final SourceFrequency FREQ_48_KHZ
public static final SourceFrequency FREQ_HIGHER
public static SourceFrequency[] values()
for (SourceFrequency c : SourceFrequency.values()) System.out.println(c);
public static SourceFrequency valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public static SourceFrequency valueOf(int frequency) throws java.lang.IllegalArgumentException
frequency
- integral value to be converted to a LAME source frequency enum.java.lang.IllegalArgumentException
- if the value is not a valid LAME source frequency.public java.lang.String toString()
toString
in class java.lang.Enum<SourceFrequency>