Lines Matching defs:rate
70 in_rewind_frames = in_rewind_frames % r->i_ss.rate;
77 matching_period = r->i_ss.rate / pa_resampler_get_gcd(r);
93 history_frames = PA_MAX(history_frames, r->i_ss.rate / 500);
493 /* try to change sink format and rate. This is done before the FIXATE hook since
502 /* rate update failed, or other parts of sample spec didn't match */
531 /* Note: for passthrough content we need to adjust the output rate to that of the current sink-input */
714 * to update the sample format and rate to avoid resampling */
1745 int pa_sink_input_set_rate(pa_sink_input *i, uint32_t rate) {
1751 if (i->sample_spec.rate == rate)
1754 i->sample_spec.rate = rate;
1757 pa_asyncmsgq_post(i->sink->asyncmsgq, PA_MSGOBJECT(i), PA_SINK_INPUT_MESSAGE_SET_RATE, PA_UINT_TO_PTR(rate), 0, NULL, NULL);
1759 i->thread_info.sample_spec.rate = rate;
1760 pa_resampler_set_input_rate(i->thread_info.resampler, rate);
1918 i->origin_rewind_bytes = i->origin_rewind_bytes * i->sample_spec.rate / i->sink->sample_spec.rate;
2181 /* try to change dest sink format and rate if possible without glitches.
2375 i->thread_info.sample_spec.rate = PA_PTR_TO_UINT(userdata);