Lines Matching defs:method

147     pa_resample_method_t method;
150 method = PA_RESAMPLER_SPEEX_FLOAT_BASE + 1;
152 method = PA_RESAMPLER_TRIVIAL;
155 return method;
160 pa_resample_method_t method,
166 pa_assert(method >= 0);
167 pa_assert(method < PA_RESAMPLER_MAX);
171 method = PA_RESAMPLER_COPY;
174 if (!pa_resample_method_supported(method)) {
175 pa_log_warn("Support for resampler '%s' not compiled in, reverting to 'auto'.", pa_resample_method_to_string(method));
176 method = PA_RESAMPLER_AUTO;
179 switch (method) {
183 method = PA_RESAMPLER_AUTO;
189 pa_log_info("Resampler '%s' cannot do variable rate, reverting to resampler 'auto'.", pa_resample_method_to_string(method));
190 method = PA_RESAMPLER_AUTO;
199 method = PA_RESAMPLER_AUTO;
207 if (method == PA_RESAMPLER_AUTO)
208 method = choose_auto_resampler(flags, rate_a, rate_b);
211 /* At this point, method is supported in the sense that it
218 if (method >= PA_RESAMPLER_SPEEX_FLOAT_BASE && method <= PA_RESAMPLER_SPEEX_FLOAT_MAX) {
222 method = method - PA_RESAMPLER_SPEEX_FLOAT_BASE + PA_RESAMPLER_SPEEX_FIXED_BASE;
227 return method;
278 pa_resample_method_t method,
286 pa_assert(method >= 0);
287 pa_assert(method < PA_RESAMPLER_MAX);
289 if (method >= PA_RESAMPLER_SPEEX_FIXED_BASE && method <= PA_RESAMPLER_SPEEX_FIXED_MAX)
290 method = PA_RESAMPLER_SPEEX_FIXED_BASE;
292 switch (method) {
351 pa_resample_method_t method,
362 pa_assert(method >= 0);
363 pa_assert(method < PA_RESAMPLER_MAX);
365 method = fix_method(flags, method, a->rate, b->rate);
369 r->method = method;
395 r->work_format = choose_work_format(method, a->format, b->format, r->map_required);
440 pa_log_debug(" rate %d -> %d (method %s)",
441 a->rate, b->rate, pa_resample_method_to_string(r->method));
461 if (init_table[method](r) < 0)
576 if (r->method == PA_RESAMPLER_SOXR_MQ || r->method == PA_RESAMPLER_SOXR_HQ || r->method == PA_RESAMPLER_SOXR_VHQ) {
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)
751 return r->method;