Open thijsdebont opened 4 years ago
I've run into the same issue using ESP8266 D1 Mini. The solution for me was to decrease the size of the buffer rather than increase it.
For ESP32 I was using
mixer = new AudioOutputMixer(1024, out);
For ESP8266, to fix the blocking
mixer = new AudioOutputMixer(64, out);
All in all though, not having much success with the ESP8266 and mixer.
I'm working on a sketch to learn the mixer ins-n-outs. I found that playing a WAV audio file (from SD) to a mixer stub instead of the regular output, blocks the main loop() as long as the file is playing. Output straight to I2S works as expected (not blocking). Tried increasing the buffer, but no dice. Big chance the fault is user error, so sketch below: