<BUG>public class AudioUtils {public static int getValidSampleRates(int channelConfiguration, int audioEncoding) {for (int rate : new int[]{8000, 11025, 16000, 22050, 44100}) {  // add the rates you wish to check againstint bffrSize = AudioRecord.getMinBufferSize(rate, channelConfiguration, audioEncoding);</BUG><CONTEXT>package github.nisrulz.scripts.audio;import android.media.AudioRecord;<extra_id_0>if (bffrSize > 0) {</CONTEXT>
private AudioUtils() {}for (int rate : new int[] {8000, 11025, 16000, 22050, 44100int bffrSize = AudioRecord.getMinBufferSize(rate, channelConfiguration, audioEncoding);