Main Page | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

plc.h File Reference

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

 SPAN_DECLARE (int) plc_rx(plc_state_t *s
 Release a V.8 context.
 SPAN_DECLARE (plc_state_t *) plc_init(plc_state_t *s)
 Initialise a PLC context.

Variables

int16_t amp []
int16_t int len


Detailed Description


Define 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


Function Documentation

SPAN_DECLARE plc_state_t  ) 
 

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.

SPAN_DECLARE int   ) 
 

Release a V.8 context.

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.


Generated on Fri Aug 28 20:12:28 2009 for spandsp by  doxygen 1.3.9.1