Lines Matching defs:rate
99 frames_to_time(unsigned int rate,
102 return (frames * 1000000ULL) / rate;
105 static inline snd_pcm_uframes_t time_to_frames(unsigned int rate,
108 return (time * rate) / 1000000ULL;
151 lhandle->rate = rrate;
156 rrate != lhandle->rate) {
157 logit(LOG_CRIT, "Rate does not match (requested %uHz, got %uHz, resample %u)\n", lhandle->rate, rrate, lhandle->resample);
160 lhandle->pitch = (double)lhandle->rate_req / (double)lhandle->rate;
326 snd_pcm_hw_params_t *pt_params, *ct_params; /* templates with rate, format and channels */
384 static void showlatency(snd_output_t *out, size_t latency, unsigned int rate,
388 d = (double)latency / (double)rate;
454 (double)loop->play->rate) * 1000;
457 (double)loop->capt->rate) * 1000;
459 (double)loop->play->rate) * 1000;
462 (double)loop->play->rate) * 1000;
464 (double)loop->capt->rate) * 1000;
467 (double)loop->play->rate) * 1000;
1364 lhandle->sync_point = lhandle->rate * 15; /* every 15 seconds */
1549 loop->play->rate == loop->capt->rate &&
1585 if (loop->play->rate_req != loop->play->rate ||
1586 loop->capt->rate_req != loop->capt->rate) {
1630 loop->src_data.src_ratio = (double)loop->play->rate /
1631 (double)loop->capt->rate;
1664 loop->pitch_delta = 1.0 / ((double)loop->capt->rate * 4);
1822 if ((int)lhandle->rate != err)
2071 OUT(" access = %s, format = %s, rate = %u, channels = %u\n", snd_pcm_access_name(lhandle->access), snd_pcm_format_name(lhandle->format), lhandle->rate, lhandle->channels);