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)
58 int16_t
buf[TIME_SCALE_BUF_LEN];
Definition private/time_scale.h:36
int min_pitch
The minimum pitch we will search for, in samples per cycle.
Definition private/time_scale.h:40
int buf_len
The active length of buf at the current sample rate.
Definition private/time_scale.h:53
double rate_nudge
The fractional sample adjustment, to allow for non-integer values of lcp.
Definition private/time_scale.h:49
int fill
The number of samples in buf.
Definition private/time_scale.h:55
int16_t buf[(2 *48000/60)]
Buffer for residual samples kept over from one call of time_scale() to the next.
Definition private/time_scale.h:58
float playout_rate
The playout speed, as the fraction output time/input time. (i.e. >1.0 == slow down,...
Definition private/time_scale.h:45
int sample_rate
The sample rate of both the incoming and outgoing signal.
Definition private/time_scale.h:38
int max_pitch
The maximum pitch we will search for, in samples per cycle.
Definition private/time_scale.h:42