The AudioContext.
Updates the local listener's position and orientation within the virtual audio space. The position and orientation will be sent over WebRTC as part of the audio stream if metadata has been enabled by a call to enableInlineMetadata.
This function can only be used if setupHRTF was called with a non-null metadata callback function.
const position = {
x: 1.5,
y: -2,
o: 0.785
};
listener.setPosition(position);
The 2D position and orientation of the listener in the virtual audio space.
© 2023 High Fidelity, Inc. | All rights reserved | Terms of Service | Privacy Policy |
An
HRTFOutput
node represents the listener. Sources (HRTFInputs) are arranged around this to create spatialized audio.Example