Safety stop of MP3 player #1872
-
Hello. I'd like to launch a question. How Can I stop saftly the MP3 player? When I try to exit of streaming copy loop, the ESP32 Audiokit reboot, then I think that the problem is I don't end saftly the .copy streaming process. Can someone help me? debug console.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
The player follows the Arduino conventions and if you double check the class documentation there is an end() method! I do not recommend to allocate and delete objects dynamically on Microcontrollers: sooner or later you risk to run into memory fragmentation issues... |
Beta Was this translation helpful? Give feedback.
-
Double check if this is helping ? |
Beta Was this translation helpful? Give feedback.
The player follows the Arduino conventions and if you double check the class documentation there is an end() method!
However you have a different issue: somehow your heap got corrupted or your freeing the same memory multiple times!
I do not recommend to allocate and delete objects dynamically on Microcontrollers: sooner or later you risk to run into memory fragmentation issues...