Open ra0943-VK3ACH opened 3 days ago
It is not possible to analyse the audio file in advance with the ESP32. The ESP32 is too slow for this. After several audio frames have been played, the average value can be calculated with a variable bit rate. This allows the total playing time of the audio file to be calculated. The longer the file plays, the more accurate the values are.
This is gonna sound dumb but whenever I call my PlayItem function for a 2nd time the loop hangs. If I remove the line CurrentSongFileDuration = 0; it runs fine. I took a quick look at the library and I couldnt see anything wrong