summaryrefslogtreecommitdiff
path: root/shared-module/audiomp3/MP3File.h
AgeCommit message (Collapse)Author
2020-01-06audiomp3: rename to MP3DecoderJeff Epler
2020-01-02MP3File: Add rms_level propertyJeff Epler
This lets a music player show it vu-meter style
2019-12-12MP3File: Fix stereo playback on samd AudioOutJeff Epler
There were several problems with the way this worked -- the read_count approach was too complicated and I made a mistake "simplifying" it from WaveFile. And when the right channel was returned, it was off by 1 byte, making it into static. Instead, directly track which is the "other" channel that has data available, and by using the right data type make the "+ channel" arithmetic give the right result. This requires a double cast (int16_t*)(void*) due to an alignment warning; the alignment is now ensured manually, but the compiler doesn't make the necessary inference that the low address bit must be clear.
2019-12-10audiocore: Add MP3File using Adafruit_MP3 libraryJeff Epler