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
..
_bleio Add BLE scanning for S3 and C3. 2022-01-25 16:28:46 -08:00
_eve Additional missing-prototypes fixes 2021-11-10 10:55:53 -06:00
_stage Stage: add support for viewport scrolling 2021-10-09 00:05:49 +02:00
adafruit_bus_device common-hal I2C combined write_read 2022-01-31 22:03:30 -05:00
adafruit_pixelbuf Explicitly cast float to mp_int_t 2021-12-17 16:23:58 -05:00
aesio run code formatting script 2021-03-15 19:27:36 +05:30
atexit Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
audiocore Additional missing-prototypes fixes 2021-11-10 10:55:53 -06:00
audioio bring MixerVoice back to building state; update documentation 2019-08-03 11:20:06 -05:00
audiomixer Additional missing-prototypes fixes 2021-11-10 10:55:53 -06:00
audiomp3 MP3Decoder: Accurately inform when no more data 2022-04-04 09:16:27 -05:00
audiopwmio audiopwmio: Add the shared files for this new module 2019-07-26 07:52:37 -05:00
bitbangio Bitbang i2c: switch scl to input for reading 2022-02-02 22:54:35 +11:00
bitmaptools bitmaptools: dither: get rid of shifts 2021-11-24 09:51:24 -06:00
bitops Merge MicroPython 1.14 into CircuitPython 2021-05-11 15:07:40 -07:00
board change half_duplex to be on spi construct 2022-02-08 21:37:38 -05:00
canio Enable -Werror=missing-prototypes on espressif port 2021-11-10 11:07:45 -06:00
displayio Further refine autoreload 2022-03-14 16:49:30 -07:00
fontio Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
framebufferio Initial broadcom port for Raspberry Pi 2021-11-22 14:54:44 -08:00
gamepadshift more missing-prototypes fixes 2021-11-10 21:00:17 -06:00
getpass Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
gifio use mp_get_stream_raise, it's more specific 2021-11-20 08:53:04 -05:00
imagecapture ParallelImageCapture: Add continuous capture on espressif 2021-11-03 11:02:46 -05:00
ipaddress run code formatting script 2021-03-15 19:27:36 +05:30
is31fl3741 merge 2022-02-01 20:31:13 -06:00
keypad Initial broadcom port for Raspberry Pi 2021-11-22 14:54:44 -08:00
memorymonitor run code formatting script 2021-03-15 19:27:36 +05:30
msgpack Additional missing-prototypes fixes 2021-11-10 10:55:53 -06:00
multiterminal Merge tag 'v1.9.3' 2017-11-02 12:41:50 -07:00
onewireio Move OneWire to onewireio from busio 2021-08-12 10:47:14 -07:00
os run code formatting script 2021-03-15 19:27:36 +05:30
paralleldisplay Initial broadcom port for Raspberry Pi 2021-11-22 14:54:44 -08:00
qrio Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
rainbowio appease ci 2022-02-10 17:14:07 -08:00
random Additional missing-prototypes fixes 2021-11-10 10:55:53 -06:00
rgbmatrix remove commented-out code 2021-05-27 11:33:17 -05:00
rotaryio Additional missing-prototypes fixes 2021-11-10 10:55:53 -06:00
sdcardio print addl debug message 2021-12-08 21:03:06 -06:00
sharpdisplay allow multiple board buses 2021-12-11 23:07:21 +05:30
storage go into safe mode if not CIRCUITPY available 2021-12-27 18:58:24 -05:00
struct Additional missing-prototypes fixes 2021-11-10 10:55:53 -06:00
synthio RP2040 PWMAudioOut: Release DMA channels after play has finished. 2021-07-01 17:36:29 -04:00
terminalio fix REPL terminal garbled characters upon code.py finished 2022-02-21 14:58:16 -06:00
time Additional missing-prototypes fixes 2021-11-10 10:55:53 -06:00
touchio run code formatting script 2021-03-15 19:27:36 +05:30
traceback Reduce code duplication in traceback module 2021-08-09 08:27:28 -05:00
uheap Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
usb_cdc Enable -Wmissing-prototypes for atmel-samd 2021-11-09 20:05:00 -06:00
usb_hid check that boot device is interface #0; remove instrumentation 2021-10-13 12:30:01 -04:00
usb_midi Enable -Wmissing-prototypes for atmel-samd 2021-11-09 20:05:00 -06:00
ustack run code formatting script 2021-03-15 19:27:36 +05:30
vectorio Add S3 GATT client support 2022-02-10 11:31:57 -08:00