美文网首页
20151209:录音回放功能:用Nuendo录音软件

20151209:录音回放功能:用Nuendo录音软件

作者: skylaugher | 来源:发表于2018-11-14 20:54 被阅读0次

    一:保留makefile文件不变,2ch in,2ch out

    ​ run后在Nuendo软件的Devices Setup中观察通道,如下图


    clip_image002.jpg

    二:修改config.xscope,观察录音和监听的波形

    //pLValue,pRValue:监听   rLValue,lRValue:录音波形
    <xSCOPEconfigioMode="none" enabled="true">//注意type和datatype中没有“xscope_”的前缀
       <Probe name="pLValue" type="CONTINUOUS"datatype="INT" units="Value" enabled="true"/>
       <Probe name="pRValue" type="CONTINUOUS"datatype="INT" units="Value" enabled="true"/>
       <Probe name="rLValue" type="CONTINUOUS"datatype="INT" units="Value" enabled="true"/>
       <Probe name="rRValue" type="CONTINUOUS"datatype="INT" units="Value" enabled="true"/>
    </xSCOPEconfig>
    
    

    三:修改audio.xc中的DoSampleTransfer

    #if NUM_USB_CHAN_OUT > 0
    #pragma loop unroll
           for(int i = 0; i < NUM_USB_CHAN_OUT; i++)
           {
               int tmp = inuint(c_out);
               samplesOut[i] = tmp;
           }
    #endif
    
            xscope_int(PLVALUE,samplesOut[0]);        //**观察监听的波形*
            xscope_int(PRVALUE,samplesOut[1]);*
    
    #if NUM_USB_CHAN_IN > 0
    #pragma loop unroll
    #if NUM_USB_CHAN_IN < I2S_CHANS_ADC
           for(int i = 0; i < NUM_USB_CHAN_IN; i++)
    #else
           for(int i = 0; i < I2S_CHANS_ADC; i++)
    #endif
           {
                int tmp;
                if(readBuffNo)            tmp=samplesIn_1[i];
                else                                    tmp=samplesIn_0[i];
                
                outuint(c_out, tmp);
                if(i==0)                xscope_int(RLVALUE,tmp);     //**观察录音波形
                else if(i==1)             xscope_int(RRVALUE,tmp);
           }
    

    四:Real-time xscope的结果:监听波形明显落后于录音波形

    clip_image002.jpg

    五:有时候xscope看不全检测波形

    有时候需要重新run程序及重启Nuendo或(2)Auto再Separate(xscope界面中,上面图片的左上区域)才能看到播放波形

    相关文章

      网友评论

          本文标题:20151209:录音回放功能:用Nuendo录音软件

          本文链接:https://www.haomeiwen.com/subject/ytjsfqtx.html