How to use PositionalAudio from <audio>?

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?


p.s. < audio > is a livechat from webrtc

var audioloader = document.getElementById("audio").srcObject;
sound.setRefDistance( 2 );;

The parameter of Audio.setBuffer() must be a decoded audio buffer loaded via AudioLoader. Just applying the srcObject of a HTMLAudioElement or the element itself does not work.

Check the web audio demos for code examples: