AIC23采集声音并回放,能够清晰听到,但得到的数据却都是负的,这是什么原因?
AIC23采集到的数据,如下图:
一般情况下,音频采集到的数据不是都正负交替的么?如下图。那么采集到的都是负数,是什么意思呢?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
AIC23采集声音并回放,能够清晰听到,但得到的数据却都是负的,这是什么原因?
AIC23采集到的数据,如下图:
程序部分,数据长度为16位,数据用
int
类型存储。如下所示:
/*数字音频接口格式设置 AIC23为主模式,数据为DSP模式,数据长度16位*/ Uint16 digital_audio_inteface_format[2]={0x0e,0x53}; int data; while(!MCBSP_rrdy(hMcbsp)){}; data = MCBSP_read16(hMcbsp); MCBSP_write16(hMcbsp,data);
一般情况下,音频采集到的数据不是都正负交替的么?如下图。那么采集到的都是负数,是什么意思呢?