Lines Matching refs:rate
76 return spec->rate * size_table[spec->format] * spec->channels;
83 return (((pa_usec_t) (length / (size_table[spec->format] * spec->channels)) * PA_USEC_PER_SEC) / spec->rate);
90 return (size_t) (((t * spec->rate) / PA_USEC_PER_SEC)) * (size_table[spec->format] * spec->channels);
97 spec->rate = 0;
107 int pa_sample_rate_valid(uint32_t rate) {
109 * a higher-than-nominal rate to get rid of excessive buffer
111 return rate > 0 && rate <= PA_RATE_MAX * 101 / 100;
121 if (PA_UNLIKELY(!pa_sample_rate_valid(spec->rate) ||
142 (a->rate == b->rate) &&
179 pa_snprintf(s, l, _("%s %uch %uHz"), pa_sample_format_to_string(spec->format), spec->channels, spec->rate);