blob: 42ff3555efcb69e21ad155dd1b35ed06a362d7d5 [file] [log] [blame]
#include "audip_exp.h"
#include "awb_exp.h"
#include "bli_exp.h"
#include "cvsd_codec_exp.h"
#include "dtmf_exp.h"
#include "g_series_exp.h"
#include "g_series_union.h"
#include "g711_exp.h"
#include "g711plc_exp.h"
#include "g722_exp.h"
#include "g726_exp.h"
#include "g729_exp.h"
#include "g7231_exp.h"
#include "msbc_codec_exp.h"
int AWB_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;}
int AWB_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;}
void BLI_GetMemSize(unsigned int inSR, /* Input, input sampling rate of the conversion */
unsigned int inChannel, /* Input, input channel number of the conversion */
unsigned int outSR, /* Input, output sampling rate of the conversion */
unsigned int outChannel, /* Input, output channel number of the conversion */
unsigned int *workBufSize){return ;} /* Output, the required working buffer size in byte */
/*----------------------------------------------------------------------*/
/* Get the BLI Software SRC handler. */
/* Return: the handle of current BLI Software SRC */
/*----------------------------------------------------------------------*/
BLI_HANDLE *BLI_Open(unsigned int inSR, /* Input, input sampling rate of the conversion */
unsigned int inChannel, /* Input, input channel number of the conversion */
unsigned int outSR, /* Input, output sampling rate of the conversion */
unsigned int outChannel, /* Input, output channel number of the conversion */
signed char* buffer, /* Input, pointer to the working buffer */
void *(*custom_alloc)(unsigned int)){return 0;}
unsigned int BLI_Convert(void *hdl, /* Input, handle of this conversion */
short *inBuf, /* Input, pointer to input buffer */
unsigned int *inLength, /* Input, length(byte) of input buffer */
/* Output, length(byte) left in the input buffer after conversion */
short *outBuf, /* Input, pointer to output buffer */
unsigned int *outLength){return 0;}
/*----------------------------------------------------------------------*/
/* Close the process */
/*----------------------------------------------------------------------*/
void BLI_Close( void *hdl,
void (*custom_free) (void *)){return ;}
/*----------------------------------------------------------------------*/
/* Change the input sampling rate during the process */
/* Return: error code, 0 represents "everything is OK" */
/*----------------------------------------------------------------------*/
int BLI_SetSamplingRate(void *hdl,
unsigned int inSR){return 0;} /* Input, input sampling rate of the conversion */
/*----------------------------------------------------------------------*/
/* Clear the internal status for the discontinuous input buffer */
/*----------------------------------------------------------------------*/
int BLI_Reset(void *hdl){return 0;}
void CVSD_DEC_Process(
void *pHandle, //handle
char *pInBuf, //input CVSD packet
int *pInLen, //input length (Byte)
short *pOutBuf, //output Sample
int *pOutLen //output length (Word)
){return;}
void CVSD_ENC_Process(
void *pHandle, //handle
short *pInBuf, //input Samples
int *pInLen, //input length (word)
char *pOutBuf, //CVSD packet
int *pOutLen //output Length (byte)
){return;}
int CVSD_DEC_GetBufferSize( void ){return 0;}
int CVSD_ENC_GetBufferSize( void ){return 0;}
void *CVSD_DEC_Init(char *pBuffer ){return 0;}
void *CVSD_ENC_Init(char *pBuffer ){return 0;}
DTMF_STATUS DTMF_GetBufferSize( unsigned int *InterBufSize,
unsigned int *PcmBufSize,
DTMF_SR samplerate,
DTMF_CHANNEL channel
){return 0;}
/*****************************************************************************
* FUNCTION
* DTMF_Init
*
* DESCRIPTION
* This function initializes DTMF Generator.
*
* PARAMETERS
* InterBuf Internal buffer
* channel Output channels, DTMF_MONO --> mono, DTMF_STEREO --> stereo
*
* RETURNS
* DTMF_Status
*****************************************************************************
*/
void* DTMF_Init( void *InterBuf,
DTMF_MODE mode,
DTMF_SR samplerate,
DTMF_CHANNEL channel
){return 0;}
/*****************************************************************************
* FUNCTION
* DTMF_Gen
*
* DESCRIPTION
* This function generates PCM data of DTMF tones.
*
* PARAMETERS
* PcmBuf Output PCM buffer
*
* RETURNS
* DTMF_Status
*****************************************************************************
*/
DTMF_STATUS DTMF_Gen( void *hdl,
void *PcmBuf
){return 0;}
/*****************************************************************************
* FUNCTION
* DTMF_Tone
*
* DESCRIPTION
* This function is used to turn on/off DTMF tones
*
* PARAMETERS
* key Specify a key
* dtmfswitch 1 --> press the key, 0 --> release the key
*
* RETURNS
* DTMF_Status
*****************************************************************************
*/
DTMF_STATUS DTMF_Tone( void *hdl,
DTMF_KEY key,
int dtmfswitch
){return 0;}
/*****************************************************************************
* FUNCTION
* DTMF_SetDuration
*
* DESCRIPTION
* This function specifies the DTMF duration of each tone on FIXDURATION mode.
*
* PARAMETERS
* duration To specify the frame counts
*
* RETURNS
* DTMF_Status
*****************************************************************************
*/
DTMF_STATUS DTMF_SetDuration( void *hdl,
unsigned int duration
){return 0;}
/*****************************************************************************
* FUNCTION
* DTMF_GetKey
*
* DESCRIPTION
* This function is used to get the frequency of specified key.
*
* PARAMETERS
* key Specify a key
* freq1 Frequency of the first tone
* freq2 Frequency of the second tone
*
* RETURNS
* DTMF_Status
*****************************************************************************
*/
DTMF_STATUS DTMF_GetKey( void *hdl,
DTMF_KEY key,
int *freq1,
int *freq2
){return 0;}
/*****************************************************************************
* FUNCTION
* DTMF_SetKey
*
* DESCRIPTION
* This function is used to define the frequency of DTMF tone.
*
* PARAMETERS
* key Specify a key
* freq1 Frequency of the first tone
* freq2 Frequency of the second tone
*
* RETURNS
* DTMF_Status
*****************************************************************************
*/
DTMF_STATUS DTMF_SetKey( void *hdl,
DTMF_KEY key,
int freq1,
int freq2
){return 0;}
/*****************************************************************************
* FUNCTION
* DTMF_SetGain
*
* DESCRIPTION
* This function is used to set the digital gain of each DTMF tone.
*
* PARAMETERS
* gain Digital gain, ranges from 0~0x3FFF
*
* RETURNS
* DTMF_Status
*****************************************************************************
*/
DTMF_STATUS DTMF_SetGain( void *hdl,
int gain
){return 0;}
int G711PLC_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;}
int G711_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;}
int G711_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;}
void G711PLC_AddToHistory(G_Series_Handle *p_handle, short *pcm_buffer){return ;}
void G711PLC_DoPLC(G_Series_Handle *p_handle, short *pcm_buffer){return ;}
int G722_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;}
int G722_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;}
int G7231_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;}
int G7231_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;}
int G726_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;}
int G726_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;}
int G729_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;}
int G729_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;}
int G729B_Get_VAD(G_Series_Handle *p_handle, void *p_temp_buffer, short *speech_in){return 0;}
int MSBC_DEC_Process(
void *pHandle, //handle
char *pInBuf, //input MSBC packet
int *pInLen, //input length (Byte)
short *pOutBuf, //output Sample
int *pOutLen //output length (Word)
){return 0;}
int MSBC_ENC_Process(
void *pHandle, //handle
short *pInBuf, //input Samples
int *pInLen, //input length (word)
char *pOutBuf, //MSBC packet
int *pOutLen //output Length (byte)
){return 0;}
int MSBC_DEC_GetBufferSize( void ){return 0;}
int MSBC_ENC_GetBufferSize( void ){return 0;}
void *MSBC_DEC_Init(char *pBuffer ){return 0;}
void *MSBC_ENC_Init(char *pBuffer ){return 0;}
void g711plc_addtohistory_v2(void *lc, short *s, unsigned int dwBtEv3HalfBad){return ;}
void g711plc_dofe_v2(void *lc, short *s, unsigned int dwBtEv3HalfBad){return ;}
int g711plc_GetMemorySize_v2(){return 0;}
int g711plc_construct_v2(void *lc, unsigned int dwFs){return 0;}
void CVSD_DownSample_Process(void *pHandle, short *pInSample, short *pOutSample, short *pTempBuffer, int iSourceSamples){return ;}
int CVSD_DownSample_GetMemory(void){return 0;}
void *CVSD_DownSample_Init(char *pBuffer){return 0;}
void CVSD_UpSample_Process(void *pHandle, short *pInSample, short *pOutSample, short *pTempBuffer, int iSourceSamples){return ;}
int CVSD_UpSample_GetMemory(void){return 0;}
void *CVSD_UpSample_Init(char *pBuffer){return 0;}