hello
I have a element in html.
So i tried to use getElementById to get the audio.
but i don’t know how to make the audio positional.
In beginning, there is no change in volume. (just the same i think it because the is playing
then i set the muted in audio.
but the positionlaudio is also muted.
Any step i missed?
thanks
p.s. < audio > is a livechat from webrtc
var audioloader = document.getElementById("audio").srcObject;
sound.setBuffer(audioloader);
sound.setRefDistance( 2 );
sound.play();