0

Web audio spatialization basics

With the documentation I linked above, I found out how to create audio listeners and audio sources to play sounds I a 2D room.

That way you can also set the direction the listener is facing by applying values to listeners.forwardX, .forwardZ…

But I didn’t figured out yet, how it actually works to set the facing orientation the right way. I have an audio listener and a speaker moving in a 2D room between -5,5 to 5,5 on X and Y axis.

Now I want to apply a rotation to the listener (the player) or alternatively a point in the coordinate system the player facing, for example 5.5, 0 to face the center of the border.

Thanks.

0 Answers0