cc [ flag... ] file... –lmlib [ library... ] #include <mlib.h> mlib_status mlib_SignalLinear2ALaw(mlib_u8 *acode, const mlib_s16 *pcm, mlib_s32 n);
The mlib_SignalLinear2ALaw() function performs ITU G.711 m-law and A-law compression and decompression in compliance with the ITU (Former CCITT) G.711 specification.
The function takes the following arguments:
A-law code array.
Linear PCM sample array.
Number of samples in the source array.
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
See attributes(5) for descriptions of the following attributes:
|
mlib_SignalALaw2Linear(3MLIB), mlib_SignalALaw2uLaw(3MLIB), mlib_SignalLinear2uLaw(3MLIB), mlib_SignaluLaw2ALaw(3MLIB), mlib_SignaluLaw2Linear(3MLIB), attributes(5)