Lines Matching refs:resampler
298 pa_resampler *resampler = NULL; in pa_sink_input_new() local
469 if (!(resampler = pa_resampler_new( in pa_sink_input_new()
502 … i->actual_resample_method = resampler ? pa_resampler_get_method(resampler) : PA_RESAMPLER_INVALID; in pa_sink_input_new()
554 i->thread_info.resampler = resampler; in pa_sink_input_new()
768 if (i->thread_info.resampler) in sink_input_free()
769 pa_resampler_free(i->thread_info.resampler); in sink_input_free()
888 block_size_max_sink_input = i->thread_info.resampler ? in pa_sink_input_peek()
889 pa_resampler_max_block_size(i->thread_info.resampler) : in pa_sink_input_peek()
901 if (i->thread_info.resampler) { in pa_sink_input_peek()
902 ilength = pa_resampler_request(i->thread_info.resampler, slength); in pa_sink_input_peek()
970 } else if (!i->thread_info.resampler && nvfs) { in pa_sink_input_peek()
984 if (!i->thread_info.resampler) { in pa_sink_input_peek()
994 pa_resampler_run(i->thread_info.resampler, &wchunk, &rchunk); in pa_sink_input_peek()
1115 if (i->thread_info.resampler) in pa_sink_input_process_rewind()
1116 max_rewrite = pa_resampler_request(i->thread_info.resampler, max_rewrite); in pa_sink_input_process_rewind()
1130 if (i->thread_info.resampler) in pa_sink_input_process_rewind()
1131 amount = pa_resampler_result(i->thread_info.resampler, amount); in pa_sink_input_process_rewind()
1141 if (i->thread_info.resampler) in pa_sink_input_process_rewind()
1142 pa_resampler_rewind(i->thread_info.resampler, amount); in pa_sink_input_process_rewind()
1160 …return i->thread_info.resampler ? pa_resampler_request(i->thread_info.resampler, i->sink->thread_i… in pa_sink_input_get_max_rewind()
1171 …return i->thread_info.resampler ? pa_resampler_request(i->thread_info.resampler, i->sink->thread_i… in pa_sink_input_get_max_request()
1184 …i->update_max_rewind(i, i->thread_info.resampler ? pa_resampler_request(i->thread_info.resampler, … in pa_sink_input_update_max_rewind()
1195 …i->update_max_request(i, i->thread_info.resampler ? pa_resampler_request(i->thread_info.resampler,… in pa_sink_input_update_max_request()
1590 pa_return_val_if_fail(i->thread_info.resampler, -PA_ERR_BADSTATE); in pa_sink_input_set_rate()
1601 pa_resampler_set_input_rate(i->thread_info.resampler, rate); in pa_sink_input_set_rate()
2108 pa_resampler_set_input_rate(i->thread_info.resampler, PA_PTR_TO_UINT(userdata)); in pa_sink_input_process_msg()
2208 if (i->thread_info.resampler) in pa_sink_input_request_rewind()
2209 nbytes = pa_resampler_request(i->thread_info.resampler, nbytes); in pa_sink_input_request_rewind()
2235 if (i->thread_info.resampler) in pa_sink_input_request_rewind()
2236 nbytes = pa_resampler_result(i->thread_info.resampler, nbytes); in pa_sink_input_request_rewind()
2259 … i->thread_info.resampler ? pa_resampler_max_block_size(i->thread_info.resampler) : 0); in pa_sink_input_get_silence()
2303 if (i->thread_info.resampler && in pa_sink_input_update_resampler()
2304 …pa_sample_spec_equal(pa_resampler_output_sample_spec(i->thread_info.resampler), &i->sink->sample_s… in pa_sink_input_update_resampler()
2305 …pa_channel_map_equal(pa_resampler_output_channel_map(i->thread_info.resampler), &i->sink->channel_… in pa_sink_input_update_resampler()
2307 new_resampler = i->thread_info.resampler; in pa_sink_input_update_resampler()
2333 if (new_resampler == i->thread_info.resampler) in pa_sink_input_update_resampler()
2336 if (i->thread_info.resampler) in pa_sink_input_update_resampler()
2337 pa_resampler_free(i->thread_info.resampler); in pa_sink_input_update_resampler()
2339 i->thread_info.resampler = new_resampler; in pa_sink_input_update_resampler()