Go to the documentation of this file.
28 #if !defined(_SPANDSP_PLC_H_)
29 #define _SPANDSP_PLC_H_
97 #define PLC_PITCH_MIN 120
99 #define PLC_PITCH_MAX 40
101 #define PLC_PITCH_OVERLAP_MAX (PLC_PITCH_MIN >> 2)
103 #define CORRELATION_SPAN 160
107 #define PLC_HISTORY_LEN (CORRELATION_SPAN + PLC_PITCH_MIN)
129 #if defined(__cplusplus)
166 #if defined(__cplusplus)
timestamp_t last_speech_sender_len
Definition: playout.h:119
#define PLC_PITCH_MAX
Definition: plc.h:99
timestamp_t last_speech_sender_stamp
Definition: playout.h:117
int16_t history[(160+120)]
Definition: plc.h:123
int plc_rx(plc_state_t *s, int16_t amp[], int len)
Process a block of received audio samples for PLC.
Definition: plc.c:115
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 plc_rx(plc_state_t *s, int16_t amp[], int len)
Process a block of received audio samples for PLC.
Definition: plc.c:115
int plc_fillin(plc_state_t *s, int16_t amp[], int len)
Fill-in a block of missing audio samples.
Definition: plc.c:159
int pitch_offset
Definition: plc.h:117
int pitch
Definition: plc.h:119
int plc_release(plc_state_t *s)
Definition: plc.c:245
float pitchbuf[120]
Definition: plc.h:121
#define PLC_PITCH_MIN
Definition: plc.h:97
int plc_fillin(plc_state_t *s, int16_t amp[], int len)
Fill-in a block of missing audio samples.
Definition: plc.c:159
#define CORRELATION_SPAN
Definition: plc.h:103
int plc_release(plc_state_t *s)
Definition: plc.c:245
int32_t state_just_in_time
Definition: playout.h:125
plc_state_t * plc_init(plc_state_t *s)
Initialise a PLC context.
Definition: plc.c:233
int time_scale_rate(time_scale_state_t *s, float playout_rate)
Change the time scale rate.
Definition: time_scale.c:101
int plc_free(plc_state_t *s)
Definition: plc.c:251
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
int missing_samples
Definition: plc.h:115
#define PLC_HISTORY_LEN
Definition: plc.h:107
int type
Definition: playout.h:64
int buf_ptr
Definition: plc.h:125
int32_t state_late
Definition: playout.h:127
Definition: private/time_scale.h:36
int plc_free(plc_state_t *s)
Definition: plc.c:251
plc_state_t * plc_init(plc_state_t *s)
Initialise a PLC context.
Definition: plc.c:233