Home
last modified time | relevance | path

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

/third_party/pulseaudio/src/modules/rtp/
Dmodule-rtp-recv.c109 double estimated_rate; member
278 double estimated_rate, alpha = 0.02; in rtpoll_work_cb() local
331estimated_rate = (double) current_rate * (double) RATE_UPDATE_INTERVAL / (double) (RATE_UPDATE_INT… in rtpoll_work_cb()
332 if (fabs(s->estimated_rate - s->avg_estimated_rate) > 1) { in rtpoll_work_cb()
333 …double ratio = (estimated_rate + s->estimated_rate - 2*s->avg_estimated_rate) / (s->estimated_rate in rtpoll_work_cb()
336 s->avg_estimated_rate = alpha * estimated_rate + (1-alpha) * s->avg_estimated_rate; in rtpoll_work_cb()
337 s->estimated_rate = estimated_rate; in rtpoll_work_cb()
338 …Estimated target rate: %.0f Hz, using average of %.0f Hz (α=%.3f)", estimated_rate, s->avg_estima… in rtpoll_work_cb()
537 s->estimated_rate = (double) s->sink_input->sample_spec.rate; in session_new()