Skip to content

Struggling to play audio over Bluetooth if there's any delay in the main loop #890

Discussion options

You must be logged in to vote

From my point of view, running a bluetooth source and mp3 decoding is bringing the EP32 quite to the limit so adding some more processing is challenging: I would suggest to investigate the impact of adding an additional task doing SPI Display output on core 1 or core 2.

You can use the FreeRTOS API directly or use this library: https://www.pschatzmann.ch/home/2022/11/06/freertos-addons-a-c-api-for-freertos/

Another thing you can look into is running the decoding on the Wifi/Bluetooth core. I think this would help because you can get rid of the synchronization but I am not sure if mp3 decoding is causing too many delays. I expect that it would get much easier however if you switch so a mor…

Replies: 2 comments

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