AutoAnalogAudio: Decoding and playing MP3 files direct from SD card on nRF52
Having fun with nRF52840 devices
I've been playing around quite a bit with my AnalogAudioAudio library since I got it working with I2S, including creating a simple Bluetooth controlled audio player.
Today, I found a simple MP3 decoding library, and decided to test it out. It actually worked! Now I have mp3 files being decoded directly from SD card on nRF52 devices like the Adafruit Feather 52840 or XIAO BLE Sense 52840.
There is lag of a few seconds prior to playback starting, but once that takes place, it seems to play the files well. The code I am using is still in prototyping stages but it does function!
I had to edit an existing MP3 decoding library a bit, but the current code I am using is at https://github.com/TMRh20/microDecoder
Any users that want to test it out can install directly from ZIP from this repository.
I would recommend testing the AutoAnalogAudio library with WAV files before venturing into MP3 playback, but to each his own...
Some example code using the above library is shown below. It has some bugs & quirks, but it does function.
No comments:
Post a Comment