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

[just_audio_background] Fix: Shuffle order out of sync after inserting/removing item from ConcatenatingAudioSource #1221

Open
wants to merge 1 commit into
base: minor
Choose a base branch
from

Conversation

jonmarkhall
Copy link

When calling insert() or removeAt() on a ConcatenatingAudioSource, a new shuffleOrder is passed with the request but it is not updated in just_audio_background's corresponding ConcatenatingAudioSourceMessage. This results in the shuffle order being out of sync, which can cause issues such as an out of range exception in the case of removeAt().

This PR also includes a change to just_audio which I found was necessary to resolve the issue I was experiencing with removeAt(), though I'm not sure why it seemed to make a difference.

…dioSource due to shuffleOrder not being updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant