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) 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 PLC_HISTORY_LEN
Definition: plc.h:107
int buf_ptr
Definition: plc.h:125
int pitch_offset
Definition: plc.h:117
#define PLC_PITCH_MIN
Definition: plc.h:97
int pitch
Definition: plc.h:119
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_free(plc_state_t *s)
Definition: plc.c:251
int plc_release(plc_state_t *s)
Definition: plc.c:245
int missing_samples
Definition: plc.h:115
plc_state_t * plc_init(plc_state_t *s)
Initialise a PLC context.
Definition: plc.c:233