mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
add new function pa_smoother_reset()
This commit is contained in:
parent
11e55fe01f
commit
2b112fe9db
2 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,4 +44,6 @@ void pa_smoother_set_time_offset(pa_smoother *s, pa_usec_t x_offset);
|
|||
void pa_smoother_pause(pa_smoother *s, pa_usec_t x);
|
||||
void pa_smoother_resume(pa_smoother *s, pa_usec_t x);
|
||||
|
||||
void pa_smoother_reset(pa_smoother *s);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue