So if I enable the audio expander cape, does that mean the samplerate of the main audio output also is lowered to 22050hz?
I replaced audioWrite()
with analogWrite()
in my code and found the audio output to be completely messed up. After diving into some example sketches I found that they use context->audioFrames
when writing using audioWrite()
and context->analogFrames
when using analogWrite()
.
Now I didn't think this would be an issue as I assumed when using the audio expander the main output samplerate would also be lowered to match the audio expander output samplerate but I guess this is not the case?
After fixing this is the audio is working as to be expected.