public boolean setSampleRate ( int rate ) { boolean result = ( rate <= MAX_SAMPLE_RATE && rate >= MIN_SAMPLE_RATE ) ; sampleRate = rate ; return result ; }
Set the sample rate . Because this is not a value that may be guessed and corrected the value will be set to that given even if it is not valid .