Skip to content
Discussion options

You must be logged in to vote
  • I don't see any reason why restarting a2dp should not work: restarting would only not work if you would call end(true) as you can read in the documentation.
  • I do not recommend to allocate objects via new because you can easily mess up by forgetting to delete them. Just define them as global variables and call end() when they are not needed.
  • I think you should just use one I2S instance: however in any case you need to make sure that they are not used by the player and a2dp at the same time. Monitor the connection state or playback state via the available callbacks.
  • A2DP and mp3 needs a lot of RAM, so I recomment to use a ESP32 with PSRAM and don't forget to activate it in the tools menu.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #738 on September 16, 2025 14:53.