aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/jitter.h
blob: 6d8d4322bdf86f8d010593ec331ed2c7ebe93e2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
typedef struct jitter {
	int16_t			*spl;			/* pointer to sample buffer */
	int			len;			/* buffer size: number of samples */
	int			inptr, outptr;		/* write pointer and read pointer */
} jitter_t;

int jitter_create(jitter_t *jitter, int length);
void jitter_destroy(jitter_t *jitter);
void jitter_save(jitter_t *jb, int16_t *samples, int length);
void jitter_load(jitter_t *jb, int16_t *samples, int length);
void jitter_clear(jitter_t *jb);