Is there any way to use this ESP8266Audio and ESP32-A2DP on the same I2S bus? #653
Unanswered
hientv1999
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to use ESP8266Audio to play the notification melody while ESP32-A2DP will play music via Bluetooth. There will be only either ESP8266Audio or ESP32-A2DP play music at any time.
Currently, I test with ESP8266Audio, which plays a wake-up melody in AAC byte array, then start advertising Bluetooth on ESP32-A2DP. The melody is played correctly, however, the code crashes when ESP32-A2DP tries to reconnect to the last device (after the melody has been played properly and aac->stop() has already been issued). If I remove the ESP8266Audio code, reconnection on ESP32-A2DP works normally. The error log is also weird; I do not know where to debug it. I even tried to delete all instances of AudioOutputI2S, AudioGeneratorAAC, and AudioFileSourcePROGMEM upon finish playing the melody, but it didn't help
Beta Was this translation helpful? Give feedback.
All reactions