Can not start audio if WebGLContext

Hey BJS Team, hope you’re well!

I wanted to let you know about a strange problem I’ve been having with the AudioEngine:
If I start my engine using an Html Canvas element, I have no problem but if I use a WebGLContext, I can’t access Engine.audioEngine which is undefined.

This must be related to this code but I logged Engine.AudioEngineFactory and it exists even with WebGLContext.

The solution for me was simply to use the Html Canvas of my WebGLContext and it worked again. As I assume it’s supposed to work in both cases, perhaps you’d like to dig into this.

I hope that helps!
Cheers, Valentin

cc @docEdub

Thanks for reporting this. I’m looking into it now.

Should be fixed by PR 15922.

3 Likes

I’m glad that helps! :wink: