sin1500matl.c
来自「用matlab产生的仿噪声文件源码.可以代替语音信号进行实验测试.」· C语言 代码 · 共 19 行
C
19 行
//Sin1500MATL.c Generates sine from table created with MATLAB
#include "sin1500.h" //sin(1500) created with MATLAB
short i=0;
interrupt void c_int11()
{
output_sample(sin1500[i]); //output each sine value
if (i < 127) ++i; //incr index until end of table
else i = 0;
return; //return from interrupt
}
void main()
{
comm_intr(); //init DSK, codec, McBSP
while(1); //infinite loop
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?