Audio Engine Cannot read properties of undefined (reading 'unlocked')

To me it appears that the issue is not related to unlocked, but to the fact that your BABYLON.Engine.audioEngine itself is undefined

Maybe this topic might help ?

I’ve never used directly the BABYLON.Engine.audioEngine to be honest, and I don’t know if it’s supposed to be created by default…

if(!BABYLON.Engine.audioEngine){
    BABYLON.Engine.audioEngine = BABYLON.Engine.AudioEngineFactory();
}

This works, but maybe it’s not meant to be created manually, I don’t know :grin:

++
Tricotou

1 Like