Maven module :un.storage : media-aac :
Class : un.storage.media.aac.SampleFrequency
Extends/Implements : -
Subclasses : -

An enumeration that represents all possible sample frequencies AAC data can
have.
author  Alexander Simm


Variables : -
Functions : forInt, forFrequency, getIndex, getFrequency, getMaximalPredictionSFB, getPredictorCount, getMaximalTNS_SFB, toString




Returns a sample frequency instance for the given index. If the index
is not between 0 and 11 inclusive, SAMPLE_FREQUENCY_NONE is returned.
return  a sample frequency with the given index
public SampleFrequency forInt (int i)

public SampleFrequency forFrequency (int i)


Returns this sample frequency's index between 0 (96000) and 11 (8000)
or -1 if this is SAMPLE_FREQUENCY_NONE.
@return the sample frequency's index
public int getIndex ()


Returns the sample frequency as integer value. This may be a value
between 96000 and 8000, or 0 if this is SAMPLE_FREQUENCY_NONE.
return  the sample frequency
public int getFrequency ()


Returns the highest scale factor band allowed for ICPrediction at this
sample frequency.
This method is mainly used internally.
return  the highest prediction SFB
public int getMaximalPredictionSFB ()


Returns the number of predictors allowed for ICPrediction at this
sample frequency.
This method is mainly used internally.
return  the number of ICPredictors
public int getPredictorCount ()


Returns the highest scale factor band allowed for TNS at this
sample frequency.
This method is mainly used internally.
return  the highest SFB for TNS
public int getMaximalTNS_SFB (boolean shortWindow)


Returns a string representation of this sample frequency.
The method is identical to getDescription().
return  the sample frequency's description
public String toString ()