]> code.delx.au - pulseaudio/blobdiff - src/pulsecore/time-smoother.h
remap: Change remapping function argument type from void to int16_t / float as approp...
[pulseaudio] / src / pulsecore / time-smoother.h
index 038b7ae49694c0f3e9b613c172f5c802d6feb927..3cb56612fe974a2d681af6146ee93e318f648737 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef foopulsetimesmootherhfoo
 #define foopulsetimesmootherhfoo
 
-/* $Id$ */
-
 /***
   This file is part of PulseAudio.
 
 
 typedef struct pa_smoother pa_smoother;
 
-pa_smoother* pa_smoother_new(pa_usec_t adjust_x, pa_usec_t history_x, pa_bool_t monotonic);
+pa_smoother* pa_smoother_new(
+        pa_usec_t x_adjust_time,
+        pa_usec_t x_history_time,
+        bool monotonic,
+        bool smoothing,
+        unsigned min_history,
+        pa_usec_t x_offset,
+        bool paused);
+
+void pa_smoother_free(pa_smoother* s);
 
+/* Adds a new value to our dataset. x = local/system time, y = remote time */
 void pa_smoother_put(pa_smoother *s, pa_usec_t x, pa_usec_t y);
+
+/* Returns an interpolated value based on the dataset. x = local/system time, return value = remote time */
 pa_usec_t pa_smoother_get(pa_smoother *s, pa_usec_t x);
 
+/* Translates a time span from the remote time domain to the local one. x = local/system time when to estimate, y_delay = remote time span */
+pa_usec_t pa_smoother_translate(pa_smoother *s, pa_usec_t x, pa_usec_t y_delay);
+
+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, bool abrupt);
+
+void pa_smoother_reset(pa_smoother *s, pa_usec_t time_offset, bool paused);
+
+void pa_smoother_fix_now(pa_smoother *s);
+
 #endif