Lines Matching defs:rate
379 /* try to change source format and rate. This is done before the FIXATE hook since
388 /* rate update failed, or other parts of sample spec didn't match */
504 resampler_history = (uint64_t) PA_RESAMPLER_MAX_DELAY_USEC * o->source->sample_spec.rate / PA_USEC_PER_SEC;
561 * to update the sample format and rate to avoid resampling */
924 resampler_history = (uint64_t) PA_RESAMPLER_MAX_DELAY_USEC * o->source->sample_spec.rate / PA_USEC_PER_SEC;
1267 int pa_source_output_set_rate(pa_source_output *o, uint32_t rate) {
1273 if (o->sample_spec.rate == rate)
1276 o->sample_spec.rate = rate;
1278 pa_asyncmsgq_post(o->source->asyncmsgq, PA_MSGOBJECT(o), PA_SOURCE_OUTPUT_MESSAGE_SET_RATE, PA_UINT_TO_PTR(rate), 0, NULL, NULL);
1603 /* try to change dest source format and rate if possible without glitches.
1741 o->thread_info.sample_spec.rate = PA_PTR_TO_UINT(userdata);
1875 resampler_history = (uint64_t) PA_RESAMPLER_MAX_DELAY_USEC * o->source->sample_spec.rate / PA_USEC_PER_SEC;