I'm planning to implement a stereo downmix for the 8 channels coming from USB to the two channels on analog output.
(I'm working on the xk-audio-216-mc board)
Firstly I've try to convert stereo to mono with something like this at the end of audio.xc@DoSampleTransfer
Code: Select all
unsigned left = samplesOut[0] / 2;
unsigned right = samplesOut[1] / 2;
unsigned mono = left + right;
samplesOut[0] = mono;
After reading this thread USB Audio Reference Changes
I've also try
Code: Select all
samplesOut[0] = (samplesOut[0] >> 1) + (samplesOut[1] >> 1);
These two solutions don't produce noise only when I've the same signal on both input channels.
Can you tell me if I've miss something please ?