I have reworked this class and the best I can get is 16 inputs at 44.1Khz and 32 at 22.05kHz:
https://gist.github.com/ghostintranslation/7804fd1ef46d85e38ad0f74df730480e
This time the process is to separate the...
Strangely if I run the ADCs like that:
adc->adc0->startContinuous(A0);
adc->adc1->startContinuous(A1);
instead of:
adc->adc0->startTimer(AUDIO_SAMPLE_RATE * 16);
adc->adc1->startTimer(AUDIO_SAMPLE_RATE *...
I tried the async as you suggested but I couldn't get it right..
I did try again with DMA though and the timer provided by the ADC lib and I get better result than before, I can get the 32 inputs at 22.05kHz, so...
Thanks for the suggestions,
My understanding was that Teensy 4.0 had 2 ADCs yes but that only ADC0 was on pins A0 to A9, so that's one thing I learn.
I gave it a try by setting up adc1 like adc0 with the fastest...