Hi Xiangjun,
Thank you for getting back to me. This is how I am trying to save the data to a buffer (as you suggested). It similar to transmitting the data from the SAI demo. I think the issue I might be having is how to handle L/R data. Do you see an issue or a way to improve on this?
Ian
--
....
Rxfer.data = g_rxBuffer;
Rxfer.dataSize = BUFFER_SIZE * BUFFER_NUM; //1024*2
for (i = 0; i < (AUDIO_BUFFER_SIZE / BUFFER_SIZE - BUFFER_NUM); i++)
{
while (isFinishedRx != true)
{
}
memcpy(audioBuff [(i + 2) * BUFFER_SIZE], g_rxBuffer, BUFFER_SIZE);
SAI_TransferReceiveEDMA(DEMO_SAI, &rxHandle, &Rxfer);
isFinishedRx = false;
}
...