a-mediastreamer2
5.2.0
|
Typedefs | |
typedef struct _MSPlc | MSPlc |
typedef struct _MSPlcDesc | MSPlcDesc |
Functions | |
void | ms_plc_set_func (MSPlcDesc *_ms_plc_desc) |
MSPlc * | ms_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) |
Structure for PLC object.
Structure for PLC plugin.
void ms_plc_set_func | ( | MSPlcDesc * | _ms_plc_desc | ) |
Set PLC plugin description.
_ms_plc_desc | A PLC plugin description. |
MSPlc* ms_plc_init | ( | int | samplerate | ) |
Retreive a PLC object.
samplerate | samplerate for PLC. |
Returns: PLC object if successful, NULL otherwise.
void ms_plc_free | ( | MSPlc * | obj | ) |
Destroy a PLC object.
obj | A PLC object. |
int ms_plc_expand | ( | MSPlc * | obj, |
mblk_t ** | out, | ||
int | length, | ||
int | noise | ||
) |
Expand audio.
obj | A PLC object. |
out | output audio. |
length | length of voice in unsigned char |
noise | 0 if packet loss, 1 if reducing to noise |
Returns: 0 if successful, negative otherwise.
int ms_plc_normal | ( | MSPlc * | obj, |
mblk_t * | in, | ||
mblk_t ** | out | ||
) |
Expand audio.
obj | A PLC object. |
in | input audio. |
out | output audio. |
Returns: 0 if successful, negative otherwise.
int ms_plc_reduce | ( | MSPlc * | obj, |
mblk_t * | in, | ||
mblk_t ** | out, | ||
mblk_t ** | extra | ||
) |
Expand audio.
obj | A PLC object. |
in | input audio. |
out | output audio. |
extra | extra output audio. |
Returns: 0 if successful, negative otherwise.