public enum SampleFrequency extends java.lang.Enum<SampleFrequency>
Modifier and Type | Method and Description |
---|---|
static SampleFrequency |
forFrequency(int i) |
static SampleFrequency |
forInt(int i)
Returns a sample frequency instance for the given index.
|
int |
getFrequency()
Returns the sample frequency as integer value.
|
int |
getIndex()
Returns this sample frequency's index between 0 (96000) and 11 (8000)
or -1 if this is SAMPLE_FREQUENCY_NONE.
|
int |
getMaximalPredictionSFB()
Returns the highest scale factor band allowed for ICPrediction at this
sample frequency.
|
int |
getMaximalTNS_SFB(boolean shortWindow)
Returns the highest scale factor band allowed for TNS at this
sample frequency.
|
int |
getPredictorCount()
Returns the number of predictors allowed for ICPrediction at this
sample frequency.
|
java.lang.String |
toString()
Returns a string representation of this sample frequency.
|
static SampleFrequency |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SampleFrequency[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SampleFrequency SAMPLE_FREQUENCY_96000
public static final SampleFrequency SAMPLE_FREQUENCY_88200
public static final SampleFrequency SAMPLE_FREQUENCY_64000
public static final SampleFrequency SAMPLE_FREQUENCY_48000
public static final SampleFrequency SAMPLE_FREQUENCY_44100
public static final SampleFrequency SAMPLE_FREQUENCY_32000
public static final SampleFrequency SAMPLE_FREQUENCY_24000
public static final SampleFrequency SAMPLE_FREQUENCY_22050
public static final SampleFrequency SAMPLE_FREQUENCY_16000
public static final SampleFrequency SAMPLE_FREQUENCY_12000
public static final SampleFrequency SAMPLE_FREQUENCY_11025
public static final SampleFrequency SAMPLE_FREQUENCY_8000
public static final SampleFrequency SAMPLE_FREQUENCY_NONE
public static SampleFrequency[] values()
for (SampleFrequency c : SampleFrequency.values()) System.out.println(c);
public static SampleFrequency 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 static SampleFrequency forInt(int i)
public static SampleFrequency forFrequency(int i)
public int getIndex()
public int getFrequency()
public int getMaximalPredictionSFB()
public int getPredictorCount()
public int getMaximalTNS_SFB(boolean shortWindow)
public java.lang.String toString()
getDescription()
.toString
in class java.lang.Enum<SampleFrequency>