spandsp 3.0.0
time_scale_state_s Struct Reference

#include <time_scale.h>

Public Attributes

int sample_rate
 The sample rate of both the incoming and outgoing signal.
int min_pitch
 The minimum pitch we will search for, in samples per cycle.
int max_pitch
 The maximum pitch we will search for, in samples per cycle.
float playout_rate
 The playout speed, as the fraction output time/input time. (i.e. >1.0 == slow down, 1.0 == no speed change, <1.0 == speed up).
double rcomp
double rate_nudge
 The fractional sample adjustment, to allow for non-integer values of lcp.
int lcp
int buf_len
 The active length of buf at the current sample rate.
int fill
 The number of samples in buf.
int16_t buf [(2 *48000/60)]
 Buffer for residual samples kept over from one call of time_scale() to the next.

Detailed Description

Audio time scaling descriptor.

Member Data Documentation

◆ buf

int16_t time_scale_state_s::buf[(2 *48000/60)]

Buffer for residual samples kept over from one call of time_scale() to the next.

Referenced by time_scale().

◆ buf_len

int time_scale_state_s::buf_len

The active length of buf at the current sample rate.

Referenced by time_scale(), and time_scale_init().

◆ fill

int time_scale_state_s::fill

The number of samples in buf.

Referenced by time_scale(), and time_scale_init().

◆ max_pitch

int time_scale_state_s::max_pitch

The maximum pitch we will search for, in samples per cycle.

Referenced by time_scale(), and time_scale_init().

◆ min_pitch

int time_scale_state_s::min_pitch

The minimum pitch we will search for, in samples per cycle.

Referenced by time_scale(), time_scale_init(), and time_scale_max_output_len().

◆ playout_rate

float time_scale_state_s::playout_rate

The playout speed, as the fraction output time/input time. (i.e. >1.0 == slow down, 1.0 == no speed change, <1.0 == speed up).

Referenced by time_scale(), time_scale_max_output_len(), and time_scale_rate().

◆ rate_nudge

double time_scale_state_s::rate_nudge

The fractional sample adjustment, to allow for non-integer values of lcp.

Referenced by time_scale(), and time_scale_init().

◆ sample_rate

int time_scale_state_s::sample_rate

The sample rate of both the incoming and outgoing signal.

Referenced by time_scale_init().


The documentation for this struct was generated from the following file: