Searched refs:sampleRates (Results 1 – 2 of 2) sorted by relevance
166 int[] sampleRates = info.getSampleRates(); in getMaxSampleRate() local167 if (sampleRates == null || sampleRates.length == 0) { in getMaxSampleRate()170 int sampleRate = sampleRates[0]; in getMaxSampleRate()171 for (int i = 1; i < sampleRates.length; i++) { in getMaxSampleRate()172 if (sampleRates[i] > sampleRate) { in getMaxSampleRate()173 sampleRate = sampleRates[i]; in getMaxSampleRate()
115 int[] sampleRates = new int[]{48000, 96000, 16000, 8000}; in getSampleRate_withMultipleSampleRates_returnsMax() local116 when(audioDeviceInfo.getSampleRates()).thenReturn(sampleRates); in getSampleRate_withMultipleSampleRates_returnsMax()