Check that ADCInput buffer sizes can handle 3 ins #2996

Merged
earlephilhower merged 2 commits from paranoia into master 2025-06-16 22:29:12 +03:00
earlephilhower commented 2025-06-16 00:16:27 +03:00 (Migrated from github.com)

Related to #2991, the ADCInput bufferWords needs to be a size that always has the 1st ADC sample at offset 0:0. For 1 and 2 inputs that's guaranteed. For 3 inputs we need a multiple of 3 words to ensure things always align in the case of overflow. For 4 inputs, a multiple of 2 words is needed.

Related to #2991, the ADCInput bufferWords needs to be a size that always has the 1st ADC sample at offset 0:0. For 1 and 2 inputs that's guaranteed. For 3 inputs we need a multiple of 3 words to ensure things always align in the case of overflow. For 4 inputs, a multiple of 2 words is needed.
Sign in to join this conversation.