CC3200 wifi_aduio_app修改单声道出现问题求助
在修改wifi_aduio_app例程为单声道采集后,采集出来的声音质量很差有噪声请问是哪里出了问题,项目后期还需要修改采样率。
目前怀疑是AudioCodecConfig函数中这段代码的问题,只有当bitClk=16000*16*2=512000 只有当设置采样率16000,16位,双声道才会进行处理,
如果自己修改设置应该如何修改呢
bitClk = bitsPerSample * bitRate * noOfChannels;
if(bitClk == 512000)
{
AudioCodecPageSelect(TI3254_PAGE_0);
AudioCodecRegWrite(TI3254_CLK_MUX_REG, 0x03); // PLL Clock is CODEC_CLKIN
AudioCodecRegWrite(TI3254_CLK_PLL_P_R_REG, 0x94); // PLL is powered up, P=1, R=4
AudioCodecRegWrite(TI3254_CLK_PLL_J_REG, 0x2A); // J=42
AudioCodecRegWrite(TI3254_CLK_PLL_D_MSB_REG, 0x00); // D = 0
AudioCodecRegWrite(TI3254_CLK_NDAC_REG, 0x8E); // NDAC divider powered up, NDAC = 14
AudioCodecRegWrite(TI3254_CLK_MDAC_REG, 0x81); // MDAC divider powered up, MDAC = 1
AudioCodecRegWrite(TI3254_DAC_OSR_MSB_REG, 0x01); // DOSR = 0x0180 = 384
AudioCodecRegWrite(TI3254_DAC_OSR_LSB_REG, 0x80); // DOSR = 0x0180 = 384
AudioCodecRegWrite(TI3254_CLK_NADC_REG, 0x95); // NADC divider powered up, NADC = 21
AudioCodecRegWrite(TI3254_CLK_MADC_REG, 0x82); // MADC divider powered up, MADC = 2
AudioCodecRegWrite(TI3254_ADC_OSR_REG, 0x80); // AOSR = 128 ((Use with PRB_R1 to PRB_R6, ADC Filter Type A)
}
else
{
return -1;
}
希望能得到大家的帮助,谢谢!
CC3200相关的问题请在wifi论坛提问:
http://www.deyisupport.com/question_answer/wireless_connectivity/wifi/f/105.aspx
我尝试帮你转过去吧。