Hello,
I'm combing through the AUDK2G audioAnalogLoopbackTest code to see if I can accomplish a specific use case, but so far cannot figure out how to accomplish this.
Basically, I would like to take two input channels, specifically ADC0 left, and ADC0 right, perform an operation on the two channels, and supply one output to DAC0 left. For example, if I want to take the average of the two input channels ((channelInLeft[i] + channelInRight[i]) / 2 = channelOutLeft[i]), and supply that result to the output of DAC0, where/how would I begin doing this? Is all the data from all the channels contained in txBuf/rxBuf? How can I access specific channel frames? Or do I have to "route" the channels somewhere else during initialization?
A simple example of something like this would provide answers to a few different questions I have regarding data manipulation in the echo_task call.
If there's documentation that I'm missing, let me know. I'm constantly looking, but there's so much it's easy to miss the important parts.
--
Justyn