Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jepler opened this issue Oct 9, 2024 · 1 comment
Open

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

jepler opened this issue Oct 9, 2024 · 1 comment
Milestone

Comments

@jepler
Copy link
Member

jepler commented Oct 9, 2024

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.

@jepler jepler added the bug label Oct 9, 2024
@jepler
Copy link
Member Author

jepler commented Oct 9, 2024

You can also hear this if you use GP4 to trigger "track 4 hold loop", release mid-sample, and then press GP3 to trigger "track 3". However, you don't hear anything when going from GP3 to GP4, i.e., it's either only affecting looping samples OR samples that are stopped mid-playback. This also shows it's likely not a special case error of playing the same sample twice in a row.

@tannewt tannewt added the audio label Oct 10, 2024
@tannewt tannewt added this to the 9.x.x milestone Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants