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

audio: Fix for sounds not stopping (fix #1315) #1395

Merged
merged 3 commits into from
Oct 26, 2020

Conversation

Herschel
Copy link
Member

An issue in the generational-arena crate (fitzgen/generational-arena#30) allowed stale references to remain valid after a clear. This would sometimes cause sounds to not be removed in the WebAudio backend. Added a workaround, and added a Drop impl to the WebAudio backend to consistently clean up sound instances.

An issue with Arena::clear allowed stale sound instance indices
to be remain valid, causing certain sounds to be removed when they
shouldn't (ruffle-rs#1315). Workaround this issue by forcing Arena to bump
the generational index.
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.

None yet

1 participant