Skip to content

MP3Decoder: Switching tracks can play part of the previous track #9705

@jepler

Description

@jepler

CircuitPython version

Adafruit CircuitPython 9.2.0-beta.0-3-g3a189e75d9-dirty on 2024-09-23; Raspberry Pi Pico 2 with rp2350a

Code/REPL

# https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/circuitpython-audio-fx/polyphonic/code.py

Behavior

Install the project and hook up a button to GP4. When pressed and held, this says "track 4 hold loop".

Repeatedly press and release the button. Press for about 1 second at a time, trying to release when the voice is speaking.

Description

At the beginning of a subsequent play, you'll hear a snippet of the file playing at an earlier position. Then, it correctly plays from the beginning.

Additional information

It's not clear why this is happening, but it could relate to the fact that most of the MP3 player state is not cleared when a file is assigned; instead just a minimum amount of work is done.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions