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

Fix loop not stopping when clicking looping sound #1

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

Conversation

GSBicalho
Copy link

@GSBicalho GSBicalho commented Nov 28, 2024

When clicking on a sound's three dots, then on the loop icon, the sound will begin to play in a loop. Click again on the sound, and it should stop playing, but it doesn't.

I believe this happened because Foundry doesn't trigger an "end" event on a looping sound, so that event listener was never called. By handling the loop ourselves, this issue no longer happens. It does, however, cause an issue with Loops with delays. Without the modification to the delayIntervals, the sound would play once more after the loop is stopped.

Also, thank you for fixing the module for v12. I used it a while ago, then stopped, and now needed it again only to find it gone. Happy to see someone kept it working for now.

@GSBicalho GSBicalho closed this Nov 28, 2024
@GSBicalho GSBicalho reopened this Nov 28, 2024
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