public static SampleFrequency forInt ( int i ) { final SampleFrequency freq ; if ( i >= 0 && i < 12 ) freq = values ( ) [ i ] ; else freq = SAMPLE_FREQUENCY_NONE ; return freq ; }
Returns a sample frequency instance for the given index . If the index is not between 0 and 11 inclusive SAMPLE_FREQUENCY_NONE is returned .