In this routine, I found the int in the SPORTcallback function_ SP0ABuffer4 can only be assigned to ints_ SP0ABuffer1; Int_ SP0ABuffer5 can only be assigned to ints_ SP0ABuffer2. When I switch the order, int_ Assign SP0ABuffer4 data to int_ When SP0ABuffer2 is used, there will be significant distortion and noise in the output audio. I want to provide one ADC audio signal data to two DAC outputs at the same time. What should I do?
Static void SPORTCallback(
Void * pAppHandle,
Uint32_ TnEvent,
Void * pArg
)
{
Int i;
ADI_ SPORT_ RESULT eResult;
/*CASEOF (event type)*/
Switch (nEvent)
{
/*CASE (buffer processed)*/
Case ADI_ SPORT_ EVENT_ RX_ BUFFER_ PROCESS:
TestCallbackCount+=1;
CallbackCount+=1;
If (CallbackCount=1)
{
For (i=0; i<COUNT; i++)
{
Int_ SP0ABuffer1 [i]=int_ SP0ABuffer4 [i]/* Copy ADC buffer to DAC buffer*/
}
}
If (CallbackCount=2)
{
For (i=0; i<COUNT; i++)
{
Int_ SP0ABuffer2 [i]=int_ SP0ABuffer5 [i]/* Copy ADC buffer to DAC buffers*/
}
CallbackCount=0;
}
Break;
Default:
Break;
}
Looking forward to your reply and Could you please provide an example? Thank you !!!!!!