Loop_stereo.c
上传用户:shgomarket
上传日期:2022-07-07
资源大小:16k
文件大小:1k
- //Loop_stereo.c Stereo input/output to/from both channels
- #include "dsk6713_aic23.h" //codec-DSK support file
- Uint32 fs=DSK6713_AIC23_FREQ_8KHZ; //set sampling rate
- #define LEFT 0
- #define RIGHT 1
- union {Uint32 combo; short channel[2];} AIC23_data;
- interrupt void c_int11() //interrupt service routine
- {
- AIC23_data.combo = input_sample(); //input 32-bit sample
- output_left_sample(AIC23_data.channel[LEFT]); //I/O left channels
-
- return;
- }
- void main() //main function
- {
- comm_intr(); //init DSK, codec, McBSP
- while(1); //infinite loop
- }
-