📄 adpcmparam.h
字号:
#include <sio.h>
#include "evmdm642_echocfg.h"
#define NUM_CODEC_CHANNELS 8 /* stereo: left + right */
#define SAMPLEING_RATE 48 /* 48 samples/ms */
#define FRAME_SIZE 80 /* 10 ms */
#define NFRAMES 25 /* 100 frames = 1 second */
#define BUFLEN (NUM_CODEC_CHANNELS*SAMPLEING_RATE*FRAME_SIZE)
#define CHANBUFLEN (SAMPLEING_RATE*FRAME_SIZE)
#define NUM_PROCESS_CHAN (SAMPLEING_RATE*FRAME_SIZE/2) /*process num/(chan*frame)*/
#define ENC_OUTLEN (SAMPLEING_RATE*FRAME_SIZE/4) /*encode out/decode in length*/
/*#define BUFLEN 1764*8
#define CHANBUFLEN 1764
#define NUM_PROCESS_CHAN 294
#define ENC_OUTLEN 147
#define DEC_OUTLEN ENC_OUTLEN
#define TIMEOUT 0 */
#define BUFSIZE (BUFLEN * sizeof(short))
typedef struct MyMsg{
QUE_Elem elem;
short *ptr;
}MyMsg;
#ifdef _6x_
extern far LOG_Obj trace;
/*
* Buffers placed in external memory are aligned on a 128 bytes boundary.
* In addition, the buffer should be of a size multiple of 128 bytes for
* the cache work optimally on the C6x.
*/
#define BUFALIGN 128 /* alignment of buffer to allow use of L2 cache */
#else
extern LOG_Obj trace;
#define BUFALIGN 1
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -