circuitpython/shared-module
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
..
2022-01-25 16:28:46 -08:00
2021-11-10 10:55:53 -06:00
2021-03-15 19:27:36 +05:30
2021-10-15 08:20:54 -05:00
2022-03-14 16:49:30 -07:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-03-15 19:27:36 +05:30
2022-02-01 20:31:13 -06:00
2021-03-15 19:27:36 +05:30
2017-11-02 12:41:50 -07:00
2021-03-15 19:27:36 +05:30
2021-10-15 08:20:54 -05:00
2022-02-10 17:14:07 -08:00
2021-05-27 11:33:17 -05:00
2021-12-08 21:03:06 -06:00
2021-12-11 23:07:21 +05:30
2021-11-10 10:55:53 -06:00
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2022-02-10 11:31:57 -08:00