Go to the source code of this file.
§ CORRELATION_SPAN
#define CORRELATION_SPAN 160 |
The length over which the AMDF function looks for similarity (20 ms)
§ PLC_HISTORY_LEN
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.
§ PLC_PITCH_MAX
Maximum allowed pitch (200 Hz)
§ PLC_PITCH_MIN
#define PLC_PITCH_MIN 120 |
Minimum allowed pitch (66 Hz)
§ PLC_PITCH_OVERLAP_MAX
§ plc_fillin()
int plc_fillin |
( |
plc_state_t * |
s, |
|
|
int16_t |
amp[], |
|
|
int |
len |
|
) |
| |
Fill-in a block of missing audio samples.
Fill-in a block of missing audio samples.
- Parameters
-
s | The packet loss concealer context. |
amp | The audio sample buffer. |
len | The number of samples to be synthesised. |
- Returns
- The number of samples synthesized.
§ plc_free()
Free a packet loss concealer context.
- Parameters
-
s | The packet loss concealer context. |
- Returns
- 0 for OK.
§ plc_init()
Initialise a PLC context.
Initialise a packet loss concealer context.
- Parameters
-
s | The packet loss concealer context. |
- Returns
- A pointer to the the packet loss concealer context.
§ plc_release()
Release a packet loss concealer context.
- Parameters
-
s | The packet loss concealer context. |
- Returns
- 0 for OK.
§ plc_rx()
Process a block of received audio samples for PLC.
Process a block of received audio samples for PLC.
- Parameters
-
s | The packet loss concealer context. |
amp | The audio sample buffer. |
len | The number of samples in the buffer. |
- Returns
- The number of samples in the buffer.