a-mediastreamer2  5.2.0
Typedefs | Functions
PLC plugin API - manage audio plc.

Typedefs

typedef struct _MSPlc MSPlc
 
typedef struct _MSPlcDesc MSPlcDesc
 

Functions

void ms_plc_set_func (MSPlcDesc *_ms_plc_desc)
 
MSPlcms_plc_init (int samplerate)
 
void ms_plc_free (MSPlc *obj)
 
int ms_plc_expand (MSPlc *obj, mblk_t **out, int length, int noise)
 
int ms_plc_normal (MSPlc *obj, mblk_t *in, mblk_t **out)
 
int ms_plc_reduce (MSPlc *obj, mblk_t *in, mblk_t **out, mblk_t **extra)
 

Detailed Description

Typedef Documentation

◆ MSPlc

Structure for PLC object.

◆ MSPlcDesc

Structure for PLC plugin.

Function Documentation

◆ ms_plc_set_func()

void ms_plc_set_func ( MSPlcDesc _ms_plc_desc)

Set PLC plugin description.

Parameters
_ms_plc_descA PLC plugin description.

◆ ms_plc_init()

MSPlc* ms_plc_init ( int  samplerate)

Retreive a PLC object.

Parameters
sampleratesamplerate for PLC.

Returns: PLC object if successful, NULL otherwise.

◆ ms_plc_free()

void ms_plc_free ( MSPlc obj)

Destroy a PLC object.

Parameters
objA PLC object.

◆ ms_plc_expand()

int ms_plc_expand ( MSPlc obj,
mblk_t **  out,
int  length,
int  noise 
)

Expand audio.

Parameters
objA PLC object.
outoutput audio.
lengthlength of voice in unsigned char
noise0 if packet loss, 1 if reducing to noise

Returns: 0 if successful, negative otherwise.

◆ ms_plc_normal()

int ms_plc_normal ( MSPlc obj,
mblk_t *  in,
mblk_t **  out 
)

Expand audio.

Parameters
objA PLC object.
ininput audio.
outoutput audio.

Returns: 0 if successful, negative otherwise.

◆ ms_plc_reduce()

int ms_plc_reduce ( MSPlc obj,
mblk_t *  in,
mblk_t **  out,
mblk_t **  extra 
)

Expand audio.

Parameters
objA PLC object.
ininput audio.
outoutput audio.
extraextra output audio.

Returns: 0 if successful, negative otherwise.