Go to the source code of this file.
Classes | |
| struct | plc_state_t |
Defines | |
| #define | _SPANDSP_PLC_H_ |
| #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) |
Functions | |
| int | plc_rx (plc_state_t *s, int16_t amp[], int len) |
| Process a block of received audio samples for PLC. | |
| int | plc_fillin (plc_state_t *s, int16_t amp[], int len) |
| Fill-in a block of missing audio samples. | |
| plc_state_t * | plc_init (plc_state_t *s) |
| Initialise a PLC context. | |
| int | plc_release (plc_state_t *s) |
|
|
The length over which the AMDF function looks for similarity (20 ms) |
|
|
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. |
|
|
Maximum allowed pitch (200 Hz) |
|
|
Minimum allowed pitch (66 Hz) |
|
|
Maximum pitch OLA window |
|
||||||||||||||||
|
Fill-in a block of missing audio samples. Fill-in a block of missing audio samples.
|
|
|
Initialise a PLC context. Initialise a packet loss concealer context.
|
|
|
Free a packet loss concealer context.
|
|
||||||||||||||||
|
Process a block of received audio samples for PLC. Process a block of received audio samples for PLC.
|
1.4.6