Closed duevil closed 9 months ago
Yes, this happens because the sample rate has not been determined by A2DP yet. So the following would be needed to wait for A2DP to be ready. while(!a2dp_sink.is_connected()) delay(1);
I changed the A2DP library to report the default sample rate, if it has not been determined yet: This will prevent this error as well and I havn't seen any other sample rates in A2DP than 44100.
Problem Description
I just tried your basic example A2DP to I2S, but my controller just crashes with an IntegerDivideByZero exception. However, when I comment out the line where the I2S sample rate is set to the A2DP sample rate, everything works just fine.
Monitor output:
Device Description
ESP32 Pico Mini D2 (Adafruit ESP32 Feather V2)
Sketch
Other Steps to Reproduce
No response
What is your development environment
PlatformIO and CLion, with the following .ini-file: