g722maf.c

来自「dsp AD公司ADSP21的代码,里面有FFT FIR IIR EQULIZE」· C语言 代码 · 共 35 行

C
35
字号
#include <stdlib.h>
#include "rtdspc.h"

/* Main program for g722 encode and decode demo for 210X0 */

    extern int encode(float,float);
    extern void decode(int);
    extern void reset();

/* outputs of the decode function */
    extern float xout1,xout2;

void main()
{
    int i,j;
    float t1,t2;

    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);

        sendout(xout1);
        sendout(xout2);
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?