Lines Matching refs:rate
77 in_rewind_frames = in_rewind_frames % r->i_ss.rate;
78 history_max = (uint64_t) PA_RESAMPLER_MAX_DELAY_USEC * r->i_ss.rate * 3 / PA_USEC_PER_SEC / 2;
84 matching_period = r->i_ss.rate / pa_resampler_get_gcd(r);
96 history_frames = PA_MAX(history_frames, r->i_ss.rate / 500);
157 /* Generate square wave with given length, frequency and sample rate. */
161 dt = 1.0 / ss->rate;
186 " --from-rate=SAMPLERATE From sample rate in Hz (defaults to 44100)\n"
187 " --to-rate=SAMPLERATE To sample rate in Hz (defaults to 44100)\n"
194 "and input sample rate. Then this input data is resampled to the output rate, rewound\n"
241 {"from-rate", 1, NULL, ARG_FROM_SAMPLERATE},
242 {"to-rate", 1, NULL, ARG_TO_SAMPLERATE},
261 a.rate = 48000;
262 b.rate = 44100;
293 a.rate = (uint32_t) atoi(optarg);
297 b.rate = (uint32_t) atoi(optarg);
327 samples, pa_resample_method_to_string(method), a.rate, b.rate, rewind);
405 delay_expected = delay_before + (double)(in_rewind_size + history_size) / (double)in_frame_size - n_out_expected * (double)a.rate / (double)b.rate;
408 in_resampler_buffer = lround((delay_after - delay_expected) * (double)b.rate / (double)a.rate);