Hello , guys,
Im following official documentation , currently at sound section here
For my project im using this vite template.
When trying to initialize sound engine , doing:
async initAudio() {
const audioEngine = await BABYLON.CreateAudioEngineAsync();
await audioEngine.unlock();
// Audio engine is ready to play sounds ...
}
I got following error message at console:
TypeError: BABYLON.CreateAudioEngineAsync is not a function
is there any package missing ? only dependency installed is “babylonjs”: “^6.38.0”
Please if you can point any important section from docs I missed It would be great.
Leandro.