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

BF: Sound files were playing forever if duration set to <0.5s #5466

Merged
merged 2 commits into from Apr 5, 2023

Conversation

TEParsons
Copy link
Contributor

Seems to have been added in 825bfdb0a9c53cf71cdec349eb1e2b6b47b951ca
to prevent stopping a Sound before it's started, as it can take up to 0.5s to start. But this method means Sound components with duration <0.5s play forever as .stop is never called. Better instead to check that t >= start + 0.5

@peircej peircej merged commit 8442008 into psychopy:release Apr 5, 2023
1 of 2 checks passed
@TEParsons TEParsons deleted the release-js-sound-stop branch June 22, 2023 10:14
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

2 participants