我想用5509和aic23b录制声音,但听不到任何声音

时间:2019-06-20 13:11:11

标签: c

我正在使用dsp5509从aic23B读取声音,但是我只会听到一些噪音。

我将频率从44.1k更改为8k,但是它不起作用。我认为也许其他寄存器是错误的

Uint16 digital_audio_inteface_format[2]={0x0e,0x53};
Uint16 sample_rate_control[2] = {0x10,0x0d};
Uint16 reset[2] ={0x1e,0x00};
Uint16 power_down_control[2] ={0x0c,0x03};
Uint16 analog_aduio_path_control[2] ={0x08,0x10};
Uint16 digital_audio_path_control[2] ={0x0a,0x01};
Uint16 digital_interface_activation[2] ={0x12,0x01};
Uint16 left_line_input_volume_control[2] ={0x01,0x17};
Uint16 right_line_input_volume_control[2] ={0x03,0x17};
Uint16 left_headphone_volume_control[2] ={0x05,0xFF};
Uint16 right_headphone_volume_control[2] = {0x07,0xFF};

while(TRUE) {
    for( i=0;i<SAMPLENUMBER;i++) {
        while(!MCBSP_rrdy(hMcbsp)) 
        {};

        INPUT[i] = MCBSP_read16(hMcbsp);

        while(!MCBSP_xrdy(hMcbsp))
        {};

        MCBSP_write16(hMcbsp,INPUT[i]);
    } 
};    

我希望它像中继器一样工作

0 个答案:

没有答案