add new function pa_smoother_reset()

This commit is contained in:
Lennart Poettering 2008-06-20 22:17:40 +02:00
parent 11e55fe01f
commit 2b112fe9db
2 changed files with 10 additions and 0 deletions

View file

@ -449,3 +449,11 @@ pa_usec_t pa_smoother_translate(pa_smoother *s, pa_usec_t x, pa_usec_t y_delay)
return (pa_usec_t) ((double) y_delay / nde);
}
void pa_smoother_reset(pa_smoother *s) {
pa_assert(s);
s->n_history = 0;
s->abc_valid = FALSE;
}