rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | #include "audip_exp.h" |
| 2 | #include "awb_exp.h" |
| 3 | #include "bli_exp.h" |
| 4 | #include "cvsd_codec_exp.h" |
| 5 | #include "dtmf_exp.h" |
| 6 | #include "g_series_exp.h" |
| 7 | #include "g_series_union.h" |
| 8 | #include "g711_exp.h" |
| 9 | #include "g711plc_exp.h" |
| 10 | #include "g722_exp.h" |
| 11 | #include "g726_exp.h" |
| 12 | #include "g729_exp.h" |
| 13 | #include "g7231_exp.h" |
| 14 | #include "msbc_codec_exp.h" |
| 15 | int AWB_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;} |
| 16 | int AWB_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;} |
| 17 | |
| 18 | void BLI_GetMemSize(unsigned int inSR, /* Input, input sampling rate of the conversion */ |
| 19 | unsigned int inChannel, /* Input, input channel number of the conversion */ |
| 20 | unsigned int outSR, /* Input, output sampling rate of the conversion */ |
| 21 | unsigned int outChannel, /* Input, output channel number of the conversion */ |
| 22 | unsigned int *workBufSize){return ;} /* Output, the required working buffer size in byte */ |
| 23 | |
| 24 | /*----------------------------------------------------------------------*/ |
| 25 | /* Get the BLI Software SRC handler. */ |
| 26 | /* Return: the handle of current BLI Software SRC */ |
| 27 | /*----------------------------------------------------------------------*/ |
| 28 | BLI_HANDLE *BLI_Open(unsigned int inSR, /* Input, input sampling rate of the conversion */ |
| 29 | unsigned int inChannel, /* Input, input channel number of the conversion */ |
| 30 | unsigned int outSR, /* Input, output sampling rate of the conversion */ |
| 31 | unsigned int outChannel, /* Input, output channel number of the conversion */ |
| 32 | signed char* buffer, /* Input, pointer to the working buffer */ |
| 33 | void *(*custom_alloc)(unsigned int)){return 0;} |
| 34 | unsigned int BLI_Convert(void *hdl, /* Input, handle of this conversion */ |
| 35 | short *inBuf, /* Input, pointer to input buffer */ |
| 36 | unsigned int *inLength, /* Input, length(byte) of input buffer */ |
| 37 | /* Output, length(byte) left in the input buffer after conversion */ |
| 38 | short *outBuf, /* Input, pointer to output buffer */ |
| 39 | unsigned int *outLength){return 0;} |
| 40 | |
| 41 | /*----------------------------------------------------------------------*/ |
| 42 | /* Close the process */ |
| 43 | /*----------------------------------------------------------------------*/ |
| 44 | void BLI_Close( void *hdl, |
| 45 | void (*custom_free) (void *)){return ;} |
| 46 | |
| 47 | |
| 48 | /*----------------------------------------------------------------------*/ |
| 49 | /* Change the input sampling rate during the process */ |
| 50 | /* Return: error code, 0 represents "everything is OK" */ |
| 51 | /*----------------------------------------------------------------------*/ |
| 52 | int BLI_SetSamplingRate(void *hdl, |
| 53 | unsigned int inSR){return 0;} /* Input, input sampling rate of the conversion */ |
| 54 | |
| 55 | /*----------------------------------------------------------------------*/ |
| 56 | /* Clear the internal status for the discontinuous input buffer */ |
| 57 | /*----------------------------------------------------------------------*/ |
| 58 | int BLI_Reset(void *hdl){return 0;} |
| 59 | void CVSD_DEC_Process( |
| 60 | void *pHandle, //handle |
| 61 | char *pInBuf, //input CVSD packet |
| 62 | int *pInLen, //input length (Byte) |
| 63 | short *pOutBuf, //output Sample |
| 64 | int *pOutLen //output length (Word) |
| 65 | ){return;} |
| 66 | |
| 67 | void CVSD_ENC_Process( |
| 68 | void *pHandle, //handle |
| 69 | short *pInBuf, //input Samples |
| 70 | int *pInLen, //input length (word) |
| 71 | char *pOutBuf, //CVSD packet |
| 72 | int *pOutLen //output Length (byte) |
| 73 | ){return;} |
| 74 | int CVSD_DEC_GetBufferSize( void ){return 0;} |
| 75 | int CVSD_ENC_GetBufferSize( void ){return 0;} |
| 76 | void *CVSD_DEC_Init(char *pBuffer ){return 0;} |
| 77 | void *CVSD_ENC_Init(char *pBuffer ){return 0;} |
| 78 | DTMF_STATUS DTMF_GetBufferSize( unsigned int *InterBufSize, |
| 79 | unsigned int *PcmBufSize, |
| 80 | DTMF_SR samplerate, |
| 81 | DTMF_CHANNEL channel |
| 82 | ){return 0;} |
| 83 | |
| 84 | /***************************************************************************** |
| 85 | * FUNCTION |
| 86 | * DTMF_Init |
| 87 | * |
| 88 | * DESCRIPTION |
| 89 | * This function initializes DTMF Generator. |
| 90 | * |
| 91 | * PARAMETERS |
| 92 | * InterBuf Internal buffer |
| 93 | * channel Output channels, DTMF_MONO --> mono, DTMF_STEREO --> stereo |
| 94 | * |
| 95 | * RETURNS |
| 96 | * DTMF_Status |
| 97 | ***************************************************************************** |
| 98 | */ |
| 99 | void* DTMF_Init( void *InterBuf, |
| 100 | DTMF_MODE mode, |
| 101 | DTMF_SR samplerate, |
| 102 | DTMF_CHANNEL channel |
| 103 | ){return 0;} |
| 104 | |
| 105 | /***************************************************************************** |
| 106 | * FUNCTION |
| 107 | * DTMF_Gen |
| 108 | * |
| 109 | * DESCRIPTION |
| 110 | * This function generates PCM data of DTMF tones. |
| 111 | * |
| 112 | * PARAMETERS |
| 113 | * PcmBuf Output PCM buffer |
| 114 | * |
| 115 | * RETURNS |
| 116 | * DTMF_Status |
| 117 | ***************************************************************************** |
| 118 | */ |
| 119 | DTMF_STATUS DTMF_Gen( void *hdl, |
| 120 | void *PcmBuf |
| 121 | ){return 0;} |
| 122 | |
| 123 | /***************************************************************************** |
| 124 | * FUNCTION |
| 125 | * DTMF_Tone |
| 126 | * |
| 127 | * DESCRIPTION |
| 128 | * This function is used to turn on/off DTMF tones |
| 129 | * |
| 130 | * PARAMETERS |
| 131 | * key Specify a key |
| 132 | * dtmfswitch 1 --> press the key, 0 --> release the key |
| 133 | * |
| 134 | * RETURNS |
| 135 | * DTMF_Status |
| 136 | ***************************************************************************** |
| 137 | */ |
| 138 | DTMF_STATUS DTMF_Tone( void *hdl, |
| 139 | DTMF_KEY key, |
| 140 | int dtmfswitch |
| 141 | ){return 0;} |
| 142 | |
| 143 | /***************************************************************************** |
| 144 | * FUNCTION |
| 145 | * DTMF_SetDuration |
| 146 | * |
| 147 | * DESCRIPTION |
| 148 | * This function specifies the DTMF duration of each tone on FIXDURATION mode. |
| 149 | * |
| 150 | * PARAMETERS |
| 151 | * duration To specify the frame counts |
| 152 | * |
| 153 | * RETURNS |
| 154 | * DTMF_Status |
| 155 | ***************************************************************************** |
| 156 | */ |
| 157 | DTMF_STATUS DTMF_SetDuration( void *hdl, |
| 158 | unsigned int duration |
| 159 | ){return 0;} |
| 160 | |
| 161 | /***************************************************************************** |
| 162 | * FUNCTION |
| 163 | * DTMF_GetKey |
| 164 | * |
| 165 | * DESCRIPTION |
| 166 | * This function is used to get the frequency of specified key. |
| 167 | * |
| 168 | * PARAMETERS |
| 169 | * key Specify a key |
| 170 | * freq1 Frequency of the first tone |
| 171 | * freq2 Frequency of the second tone |
| 172 | * |
| 173 | * RETURNS |
| 174 | * DTMF_Status |
| 175 | ***************************************************************************** |
| 176 | */ |
| 177 | DTMF_STATUS DTMF_GetKey( void *hdl, |
| 178 | DTMF_KEY key, |
| 179 | int *freq1, |
| 180 | int *freq2 |
| 181 | ){return 0;} |
| 182 | |
| 183 | /***************************************************************************** |
| 184 | * FUNCTION |
| 185 | * DTMF_SetKey |
| 186 | * |
| 187 | * DESCRIPTION |
| 188 | * This function is used to define the frequency of DTMF tone. |
| 189 | * |
| 190 | * PARAMETERS |
| 191 | * key Specify a key |
| 192 | * freq1 Frequency of the first tone |
| 193 | * freq2 Frequency of the second tone |
| 194 | * |
| 195 | * RETURNS |
| 196 | * DTMF_Status |
| 197 | ***************************************************************************** |
| 198 | */ |
| 199 | DTMF_STATUS DTMF_SetKey( void *hdl, |
| 200 | DTMF_KEY key, |
| 201 | int freq1, |
| 202 | int freq2 |
| 203 | ){return 0;} |
| 204 | |
| 205 | /***************************************************************************** |
| 206 | * FUNCTION |
| 207 | * DTMF_SetGain |
| 208 | * |
| 209 | * DESCRIPTION |
| 210 | * This function is used to set the digital gain of each DTMF tone. |
| 211 | * |
| 212 | * PARAMETERS |
| 213 | * gain Digital gain, ranges from 0~0x3FFF |
| 214 | * |
| 215 | * RETURNS |
| 216 | * DTMF_Status |
| 217 | ***************************************************************************** |
| 218 | */ |
| 219 | DTMF_STATUS DTMF_SetGain( void *hdl, |
| 220 | int gain |
| 221 | ){return 0;} |
| 222 | int G711PLC_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;} |
| 223 | int G711_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;} |
| 224 | int G711_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;} |
| 225 | void G711PLC_AddToHistory(G_Series_Handle *p_handle, short *pcm_buffer){return ;} |
| 226 | void G711PLC_DoPLC(G_Series_Handle *p_handle, short *pcm_buffer){return ;} |
| 227 | int G722_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;} |
| 228 | int G722_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;} |
| 229 | int G7231_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;} |
| 230 | int G7231_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;} |
| 231 | int G726_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;} |
| 232 | int G726_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;} |
| 233 | int G729_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;} |
| 234 | int G729_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;} |
| 235 | int G729B_Get_VAD(G_Series_Handle *p_handle, void *p_temp_buffer, short *speech_in){return 0;} |
| 236 | int MSBC_DEC_Process( |
| 237 | void *pHandle, //handle |
| 238 | char *pInBuf, //input MSBC packet |
| 239 | int *pInLen, //input length (Byte) |
| 240 | short *pOutBuf, //output Sample |
| 241 | int *pOutLen //output length (Word) |
| 242 | ){return 0;} |
| 243 | |
| 244 | int MSBC_ENC_Process( |
| 245 | void *pHandle, //handle |
| 246 | short *pInBuf, //input Samples |
| 247 | int *pInLen, //input length (word) |
| 248 | char *pOutBuf, //MSBC packet |
| 249 | int *pOutLen //output Length (byte) |
| 250 | ){return 0;} |
| 251 | int MSBC_DEC_GetBufferSize( void ){return 0;} |
| 252 | int MSBC_ENC_GetBufferSize( void ){return 0;} |
| 253 | void *MSBC_DEC_Init(char *pBuffer ){return 0;} |
| 254 | void *MSBC_ENC_Init(char *pBuffer ){return 0;} |
| 255 | |
| 256 | void g711plc_addtohistory_v2(void *lc, short *s, unsigned int dwBtEv3HalfBad){return ;} |
| 257 | void g711plc_dofe_v2(void *lc, short *s, unsigned int dwBtEv3HalfBad){return ;} |
| 258 | int g711plc_GetMemorySize_v2(){return 0;} |
| 259 | int g711plc_construct_v2(void *lc, unsigned int dwFs){return 0;} |
| 260 | |
| 261 | void CVSD_DownSample_Process(void *pHandle, short *pInSample, short *pOutSample, short *pTempBuffer, int iSourceSamples){return ;} |
| 262 | int CVSD_DownSample_GetMemory(void){return 0;} |
| 263 | void *CVSD_DownSample_Init(char *pBuffer){return 0;} |
| 264 | void CVSD_UpSample_Process(void *pHandle, short *pInSample, short *pOutSample, short *pTempBuffer, int iSourceSamples){return ;} |
| 265 | int CVSD_UpSample_GetMemory(void){return 0;} |
| 266 | void *CVSD_UpSample_Init(char *pBuffer){return 0;} |