Lines Matching defs:resampler
236 pa_resampler *resampler = NULL;
417 if (!pa_source_output_new_data_is_passthrough(data)) /* no resampler for passthrough content */
418 if (!(resampler = pa_resampler_new(
451 o->actual_resample_method = resampler ? pa_resampler_get_method(resampler) : PA_RESAMPLER_INVALID;
487 o->thread_info.resampler = resampler;
662 if (o->thread_info.resampler)
663 pa_resampler_free(o->thread_info.resampler);
819 } else if (!o->thread_info.resampler && nvfs) {
822 /* If we don't need a resampler we can merge the
838 if (!o->thread_info.resampler)
844 mbs = pa_resampler_max_block_size(o->thread_info.resampler);
849 pa_resampler_run(o->thread_info.resampler, &qchunk, &rchunk);
879 * without pa_source_output_push() called in between. In that case, the resampler has already
885 source_output_nbytes = pa_resampler_result(o->thread_info.resampler, nbytes);
892 if (o->thread_info.resampler && length == 0) {
896 resampler_bytes = (size_t) pa_resampler_get_delay(o->thread_info.resampler, false) * pa_frame_size(&o->source->sample_spec);
900 pa_resampler_rewind(o->thread_info.resampler, source_output_nbytes, NULL, 0);
912 return pa_resampler_result(o->thread_info.resampler, o->source->thread_info.max_rewind);
930 o->update_max_rewind(o, pa_resampler_result(o->thread_info.resampler, nbytes));
1271 pa_return_val_if_fail(o->thread_info.resampler, -PA_ERR_BADSTATE);
1733 r[0] += pa_resampler_get_delay_usec(o->thread_info.resampler);
1742 pa_resampler_set_output_rate(o->thread_info.resampler, PA_PTR_TO_UINT(userdata));
1812 /* Updates the source output's resampler with whatever the current source
1822 if (o->thread_info.resampler &&
1823 pa_sample_spec_equal(pa_resampler_input_sample_spec(o->thread_info.resampler), &o->source->sample_spec) &&
1824 pa_channel_map_equal(pa_resampler_input_channel_map(o->thread_info.resampler), &o->source->channel_map))
1826 new_resampler = o->thread_info.resampler;
1852 if (new_resampler == o->thread_info.resampler)
1855 if (o->thread_info.resampler)
1856 pa_resampler_free(o->thread_info.resampler);
1858 o->thread_info.resampler = new_resampler;
1882 pa_log_debug("Updated resampler for source output %d", o->index);