g722main.c
来自「dsp AD公司ADSP21的代码,里面有FFT FIR IIR EQULIZE」· C语言 代码 · 共 38 行
C
38 行
#include <stdlib.h>
#include "rtdspc.h"
/* Main program for g722 encode and decode demo for 210X0 */
extern int encode(int,int);
extern void decode(int);
extern void reset();
/* outputs of the decode function */
extern int xout1,xout2;
void main()
{
int i,j,t1,t2;
float xf1 = 0.0;
float xf2 = 0.0;
init_evm(); /* INITIALIZE EVALUATION MODULE PARAMETERS */
/* reset, initialize required memory */
reset();
/* note: the g722 standard calls for 16 KHz for voice operation */
while(1) {
t1=getinput();
t2=getinput();
j=encode(t1,t2);
decode(j);
xf1 = (float)xout1;
sendout(xf1);
xf2 = (float)xout2;
sendout(xf2);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?