decentraland / sdk

PM repository for SDK
Apache License 2.0
4 stars 4 forks source link

[BUG] SDK7 Playing a short sound repeatedly fails sometimes #1028

Open cfravel opened 9 months ago

cfravel commented 9 months ago

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.

cfravel commented 9 months ago

Might be similar to #958