summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/time-smoother.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-06-20 22:17:40 +0200
committerLennart Poettering <lennart@poettering.net>2008-06-20 22:17:40 +0200
commit2b112fe9db9005b3e445e7dc462f5ec7202b8fe3 (patch)
treeccfab2d507f6759bcf3d68a8baa7a999186e845c /src/pulsecore/time-smoother.c
parent11e55fe01fcf85f9954577795b0517eac8373390 (diff)
add new function pa_smoother_reset()
Diffstat (limited to 'src/pulsecore/time-smoother.c')
-rw-r--r--src/pulsecore/time-smoother.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pulsecore/time-smoother.c b/src/pulsecore/time-smoother.c
index 2723edba..fe5a4f18 100644
--- a/src/pulsecore/time-smoother.c
+++ b/src/pulsecore/time-smoother.c
@@ -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;
+
+}