spandsp  0.0.6
private/plc.h File Reference

Go to the source code of this file.

Classes

struct  plc_state_s
 

Macros

#define PLC_PITCH_MIN   120
 
#define PLC_PITCH_MAX   40
 
#define PLC_PITCH_OVERLAP_MAX   (PLC_PITCH_MIN >> 2)
 
#define CORRELATION_SPAN   160
 
#define PLC_HISTORY_LEN   (CORRELATION_SPAN + PLC_PITCH_MIN)
 

Macro Definition Documentation

#define CORRELATION_SPAN   160

The length over which the AMDF function looks for similarity (20 ms)

#define PLC_HISTORY_LEN   (CORRELATION_SPAN + PLC_PITCH_MIN)

History buffer length. The buffer much also be at leat 1.25 times PLC_PITCH_MIN, but that is much smaller than the buffer needs to be for the pitch assessment.

#define PLC_PITCH_MAX   40

Maximum allowed pitch (200 Hz)

#define PLC_PITCH_MIN   120

Minimum allowed pitch (66 Hz)

#define PLC_PITCH_OVERLAP_MAX   (PLC_PITCH_MIN >> 2)

Maximum pitch OLA window