The way your mics are connected is just fine - as far as I can tell.
Sorry that was a typo in my previous message (now corrected).
It should be:
giuliomoro so you get half as many analog frames as there are audio frames)
For instance, with a block size of "8" (audio frames per block), you have the following time-alignment between audio and analog channels:
Audio frames: | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
Audio channels: | L R | L R | L R | L R | L R | L R | L R | L R |
Analog frames: | 0 | 1 | 2 | 3 |
Analog channels: |0 1 2 3 4 5 6 7|0 1 2 3 4 5 6 7|0 1 2 3 4 5 6 7|0 1 2 3 4 5 6 7|
so you see, for instance analog channel 0 is sampled half as often as audio channel L (so in a block you have 4 analogFrames (at 22kHz) when you have 8 audioFrames (at 44kHz)).
So if you want to copy the an analog input to an audio output, you will have to do something to compensate for the fact that you have half as many samples available. A common option is simply to write the same sample twice (e.g.: write frame 0
of analogIn 0
into frames 0 and 1
of audio out L
.
Again, if you want to monitor 8 analog inputs to 2 audio outputs, then you need to make some choices, for instance monitor two channels at a time, or sum 4 analog inputs to audio out L and the remaining 4 to audio out R.
I would like you to do this on your own so to make sure you get the point right, but I can also provide some example code, if you prefer.
NOTE: this was meant to help on this, but it is missing some explanatory images which we should upload soon.