Repository navigation
Laggy MP3 modules
The MP3 hardware modules are sometimes quite laggy and behave in an unexpected way. I noticed the alarm loop skipping MP3s while MP3 playback was active. The loop tests whether an MP3 is currently playing and if not plays a next random MP3. It seems that checking whether a MP3 is currently playing does not always return the correct result. I tested this with two different hardware modules. On one module I was not able to reproduce the error, whereas on the other module the error sometimes non-deterministically occurred. To improve the situation I increased the waiting time between sending two commands to the MP3 module. This seems to work in >95% of the cases. However, the error is not fully gone.