26 #if !defined(_SPANDSP_PRIVATE_TIME_SCALE_H_)
27 #define _SPANDSP_PRIVATE_TIME_SCALE_H_
29 #define TIME_SCALE_MAX_SAMPLE_RATE 48000
30 #define TIME_SCALE_MIN_PITCH 60
31 #define TIME_SCALE_MAX_PITCH 250
32 #define TIME_SCALE_BUF_LEN (2*TIME_SCALE_MAX_SAMPLE_RATE/TIME_SCALE_MIN_PITCH)
46 int16_t buf[TIME_SCALE_BUF_LEN];
int time_scale_free(time_scale_state_t *s)
Free a time scale context.
Definition: time_scale.c:165
time_scale_state_t * time_scale_init(time_scale_state_t *s, int sample_rate, float playout_rate)
Initialise a time scale context.
Definition: time_scale.c:126
int time_scale_max_output_len(time_scale_state_t *s, int input_len)
Find the maximum possible output samples.
Definition: time_scale.c:280
int time_scale_rate(time_scale_state_t *s, float playout_rate)
Change the time scale rate.
Definition: time_scale.c:101
int time_scale_release(time_scale_state_t *s)
Release a time scale context.
Definition: time_scale.c:159
int time_scale(time_scale_state_t *s, int16_t out[], int16_t in[], int len)
Time scale a chunk of audio samples.
Definition: time_scale.c:172
Definition: private/time_scale.h:36