jack1 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
484B

  1. #include "jack/jack.h"
  2. typedef struct time_smoother {
  3. int history_size;
  4. jack_nframes_t *x;
  5. jack_nframes_t *y;
  6. int num_valid;
  7. } time_smoother;
  8. time_smoother *time_smoother_new( int history_size );
  9. void time_smoother_free( time_smoother *ts );
  10. void time_smoother_put ( time_smoother *ts, jack_nframes_t x, jack_nframes_t y );
  11. void time_smoother_get_linear_params( time_smoother *ts, jack_nframes_t now_x, jack_nframes_t now_y,
  12. jack_nframes_t history, double *a, double *b );