decentraland / decentraland/sdk
[BUG] SDK7 Playing a short sound repeatedly fails sometimes
- Dominant language
- No language data
- Stars
- 4
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Create a sound that plays for 1/2 second or less
Once per second, play it
(or once per second stop it and then play it)
// expected: you hear the short sound each time
// actual: sometimes instead you get this error:
unity.framework.js?v=1700601225207:10 Channel.playSoundClip error. Exception: TypeError: Failed to execute 'start' on 'AudioBufferSourceNode': The provided double value is non-finite.
One example where you can observe this in a deployed scene is in my elevator demo at 7,118
1) Run the scene with &DEBUG_SCENE_LOG added to URL so you get console logging
https://play.decentraland.org/?position=7,118&&DEBUG_SCENE_LOG
2) open F12
3) Enter the scene, and go to the elevator silver doors
4) Click on the up call button. // elevator doors open
5) Go in
6) Click on the button for floor 5.
// expected: 5 "dings"
// actual: around 3 "dings" and some error reporting.
Contributor guide
Assessment
This issue has not been assessed yet.