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 VoiceHandler memory access out of bounds on WebGL #324

Merged

Conversation

mennetorelli
Copy link

Description

This should fix issue #323, where for some AudioClip lengths the GetAmplitude method tried to read data from the clip even if the remaining samples were 0.

How to Test

  • add VoiceHandler component on an avatar
  • set build target to webGL and run the built application
  • let the AudioSource referenced by the VoiceHandler reproduce AudioClips with various lengths

Checklist

  • Tests written or updated for the changes.
  • Documentation is updated.
  • Changelog is updated.

@mennetorelli mennetorelli requested a review from a team as a code owner November 18, 2024 09:05
@baaskoen
Copy link

@mennetorelli Thanks for yor effort! I tested this locally, and I noticed that there is still a small percentage to error, but I cant reliably reproduce it (it errors now like 1 in 100 audio files).

But this is already a huge improvement.

@HarrisonHough HarrisonHough merged commit 6117328 into readyplayerme:develop Dec 6, 2024
0 of 2 checks passed
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.

3 participants