Lines Matching refs:rate

132     gcd = r->i_ss.rate;
133 n = r->o_ss.rate;
182 pa_log_info("Resampler 'copy' cannot change sampling rate, reverting to resampler 'auto'.");
189 pa_log_info("Resampler '%s' cannot do variable rate, reverting to resampler 'auto'.", pa_resample_method_to_string(method));
365 method = fix_method(flags, method, a->rate, b->rate);
440 pa_log_debug(" rate %d -> %d (method %s)",
441 a->rate, b->rate, pa_resample_method_to_string(r->method));
456 r->lfe_filter = pa_lfe_filter_new(&wss, &r->o_cm, (float)crossover_freq, b->rate * 3);
499 void pa_resampler_set_input_rate(pa_resampler *r, uint32_t rate) {
501 pa_assert(rate > 0);
504 if (r->i_ss.rate == rate)
511 r->i_ss.rate = rate;
517 void pa_resampler_set_output_rate(pa_resampler *r, uint32_t rate) {
519 pa_assert(rate > 0);
522 if (r->o_ss.rate == rate)
529 r->o_ss.rate = rate;
535 pa_lfe_filter_update_rate(r->lfe_filter, rate);
558 in_length = (out_length - 1) * r->i_ss.rate / r->o_ss.rate + 1;
581 ratio = (double)r->i_ss.rate / (double)r->o_ss.rate;
594 out_length = in_length * r->o_ss.rate / r->i_ss.rate;
595 if ((double)in_length * (double)r->o_ss.rate / (double)r->i_ss.rate - out_length > 0)
598 else if (r->method >= PA_RESAMPLER_SRC_SINC_BEST_QUALITY && r->method <= PA_RESAMPLER_SRC_SINC_FASTEST && r->i_ss.rate > r->o_ss.rate && r->i_ss.rate % r->o_ss.rate > 0 && (double)in_length * (double)r->o_ss.rate / (double)r->i_ss.rate - out_length <= 0)
600 else if (r->method == PA_RESAMPLER_SRC_ZERO_ORDER_HOLD && r->i_ss.rate > r->o_ss.rate && (double)in_length * (double)r->o_ss.rate / (double)r->i_ss.rate - out_length <= 0)
625 max_ss.rate = PA_MAX(r->i_ss.rate, r->o_ss.rate);
634 block_size_max = ((uint64_t) frames * r->i_ss.rate / max_ss.rate) * r->i_fz;
647 * block size. In this case also updating the resampler rate should
648 * fail if the new rate would cause an excessive max block size (in
1571 out_n_frames = ((in_n_frames*r->o_ss.rate)/r->i_ss.rate)+EXTRA_FRAMES;
1625 if ((r->in_frames == 0) && (r->i_ss.rate != r->o_ss.rate)) {
1676 frames = r->out_frames * r->i_ss.rate / r->o_ss.rate;
1688 return (pa_usec_t) (pa_resampler_get_delay(r, false) * PA_USEC_PER_SEC / r->i_ss.rate);
1691 /* Get GCD of input and output rate. */
1710 return (uint64_t) PA_RESAMPLER_MAX_DELAY_USEC * r->i_ss.rate * 3 / PA_USEC_PER_SEC / 2;
1718 pa_assert(r->o_ss.rate == r->i_ss.rate);