Home
last modified time | relevance | path

Searched refs:trivial_data (Results 1 – 1 of 1) sorted by relevance

/third_party/pulseaudio/src/pulsecore/resampler/
Dtrivial.c28 struct trivial_data { /* data specific to the trivial resampler */ struct
36 struct trivial_data *trivial_data; in trivial_resample() argument
43 trivial_data = r->impl.data; in trivial_resample()
48 for (o_index = 0;; o_index++, trivial_data->o_counter++) { in trivial_resample()
49 i_index = ((uint64_t) trivial_data->o_counter * r->i_ss.rate) / r->o_ss.rate; in trivial_resample()
50 i_index = i_index > trivial_data->i_counter ? i_index - trivial_data->i_counter : 0; in trivial_resample()
65 trivial_data->i_counter += in_n_frames; in trivial_resample()
68 while (trivial_data->i_counter >= r->i_ss.rate) { in trivial_resample()
69 pa_assert(trivial_data->o_counter >= r->o_ss.rate); in trivial_resample()
71 trivial_data->i_counter -= r->i_ss.rate; in trivial_resample()
[all …]