Home | History | Annotate | Download | only in libaudio-qsd8k

Lines Matching full:samplerate

224         uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status)
239 status_t lStatus = out->set(this, devices, format, channels, sampleRate);
264 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status,
275 status_t lStatus = in->set(this, devices, format, channels, sampleRate, acoustic_flags);
557 size_t AudioHardware::getBufferSize(uint32_t sampleRate, int channelCount)
561 if (sampleRate < 11025) {
563 } else if (sampleRate < 22050) {
565 } else if (sampleRate < 32000) {
567 } else if (sampleRate < 44100) {
577 size_t AudioHardware::getInputBufferSize(uint32_t sampleRate, int format, int channelCount)
587 if (sampleRate < 8000 || sampleRate > 48000) {
588 LOGW("getInputBufferSize bad sample rate: %d", sampleRate);
592 return getBufferSize(sampleRate, channelCount);
1506 uint32_t AudioHardware::getInputSampleRate(uint32_t sampleRate)
1513 delta = abs(sampleRate - inputSamplingRates[i]);
1555 if (lRate == 0) lRate = sampleRate();
1560 (lRate != sampleRate())) {
1563 if (pRate) *pRate = sampleRate();
1670 usleep((((bytes * 1000) / frameSize()) * 1000) / sampleRate());
1695 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate());
1907 usleep((((bytes * 1000) / frameSize()) * 1000) / sampleRate());
1947 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate());