circuitpython/shared-module/audiomp3
Jeff Epler 683ece76db
MP3Decoder: Accurately inform when no more data
Some audio implementations, notably samd, really don't like it when
you return 0 samples of data. This was the case when reaching the
end of an MP3 file.

Now, we read forward in an MP3 file to the next sync word during
"get_buffer", so that we can accurately return GET_BUFFER_DONE when the
NEXT call WOULD HAVE resulted in 0 samples.

Tested with @gamblor21's "laugh.mp3" file on a Trellis M4 Express.
2022-04-04 09:16:27 -05:00
..
MP3Decoder.c MP3Decoder: Accurately inform when no more data 2022-04-04 09:16:27 -05:00
MP3Decoder.h audiomp3: add decoded_samples property 2022-01-01 23:28:43 -06:00
__init__.c audiocore: Add MP3File using Adafruit_MP3 library 2019-12-10 14:03:06 -06:00
__init__.h audiocore: Add MP3File using Adafruit_MP3 library 2019-12-10 14:03:06 -06:00