WebGL support has been pretty damn incredible! It’s working!
I’m noticing crash issues with Audio.
TypeError: Failed to set the ‘value’ property on ‘AudioParam’: The provided float value is non-finite.
native::in TypeError
blob:http%3A//play.blocksworld.com/08834fdc-0d45-4280-b306-3dca131b307a:1:in _JS_Sound_SetVolume
I have noticed that the Web Audio implementation is very prone to errors - some of them come in due to having display:none and no canvas size. I have been able to work around these with very careful use of “visibility:hidden” instead of “display:none” and Pausing the Engine when ever the canvas needs to adjust size.
I am now experiencing a similar crash while a game is running without resizing.
I would like to see _JS_Sound_SetVolume have a guard function to check for values that are invalid instead of crashing the engine.
I have been able to hack around this issue for positional audio by monkey-patching ‘setPosition’.
Unfortunately I cannot do this with _JS_Sound_SetVolume.
Please could _JS_Sound_SetVolume be written in such a way as to protect assigning invalid values.
Best,
Curtis.
Linden Lab