Bug "DefoldSoundDevice is not defined" on HTML5

#1

There is an error in the console of an HTML5 build when sound system is disabled by using the manifestation tool and setting the appmanifest file.

Uncaught ReferenceError: DefoldSoundDevice is not defined
    at onMouseButtonUp (SoundNullCrash_wasm.js:1)
onMouseButtonUp @ SoundNullCrash_wasm.js:1

Emerges when user clicks the game area.

I suspect there was a quick fix in the engine to bypass browser requirement to only play sound on user request, but it looks like someone forgot to check if the sound device is actually used by Defold. Which is not in case of disabling the sound system.

Working on my OpenAL extension, I am getting the sound on Chrome, but it doesn’t work in Safari. I suspect this error may somehow be related. We’ll see once it’s fixed.

1 Like

#2

This sound bug I think also relates to @britzl Blip extension not working either. I’ve been trying to get that and OpenAL to work and working with @sergey.lerg on the HTML5 builds and we’ve gotten it closer but not close enough. Hopefully a Defold update can solve the problem now that we’ve narrowed it down a bit.

1 Like

#3

I’ve added it for investigation in 1.2.166

2 Likes