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

Fixed negative rt bug in audio-button and audio-slider plugin. #3348

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

Bankminer78
Copy link
Contributor

The rewriting of the audio plugins to be object-oriented and to use AudioPlayer resulted in an oversight that failed to record startTime with respect to the AudioContext object if it exists. This PR adds this required conditional logic, and this fix prevents negative response times from being recorded by the audio-slider-response and the audio-button-response plugins.

Copy link

changeset-bot bot commented Jul 17, 2024

🦋 Changeset detected

Latest commit: 5552e48

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@jspsych/plugin-audio-button-response Patch
@jspsych/plugin-audio-slider-response Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jodeleeuw jodeleeuw merged commit e374226 into jspsych:main Jul 17, 2024
2 checks passed
@github-actions github-actions bot mentioned this pull request Jul 17, 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.

2 participants