libilbc  0.0.1
iLBC_decode.c File Reference
#include <inttypes.h>
#include <math.h>
#include <stdlib.h>
#include "ilbc.h"
#include "StateConstructW.h"
#include "LPCdecode.h"
#include "iCBConstruct.h"
#include "doCPLC.h"
#include "helpfun.h"
#include "constants.h"
#include "packing.h"
#include "string.h"
#include "enhancer.h"
#include "hpOutput.h"
#include "syntFilter.h"

Functions

ilbc_decode_state_tilbc_decode_init (ilbc_decode_state_t *s, int mode, int use_enhancer)
int ilbc_decode_release (ilbc_decode_state_t *s)
int ilbc_decode (ilbc_decode_state_t *s, int16_t amp[], const uint8_t bytes[], int len)
int ilbc_fillin (ilbc_decode_state_t *s, int16_t amp[], int len)

Detailed Description


Function Documentation

int ilbc_decode ( ilbc_decode_state_t s,
int16_t  amp[],
const uint8_t  bytes[],
int  len 
)

Decode a buffer of iLBC data to linear PCM.

Parameters:
sThe iLBC deocde context.
ampThe audio sample buffer.
bytesThe excoded data.
lenThe length of the encoded data, in bytes.
Returns:
The number of samples returned.
ilbc_decode_state_t* ilbc_decode_init ( ilbc_decode_state_t s,
int  mode,
int  use_enhancer 
)

Initialise an iLBC decode context.

Parameters:
sThe iLBC decode context.
modeThe frame size.
use_enhancerTRUE to use the audio enhancer option.
Returns:
A pointer to the iLBC decode context, or NULL for error.
int ilbc_fillin ( ilbc_decode_state_t s,
int16_t  amp[],
int  len 
)

Produce linear PCM data to fill in where received iLBC data is missing.

Parameters:
sThe iLBC context.
ampThe audio sample buffer.
len
Returns:
The number of samples returned.