The AudioContext to use. It should be created with a sample-rate of 48000.
Readonly
contextReadonly
numberReadonly
numberReadonly
parametersReadonly
portOptional
options: boolean | AddEventListenerOptionsOptional
options: boolean | AddEventListenerOptionsOptional
output: numberOptional
input: numberOptional
output: numberOptional
options: boolean | EventListenerOptionsOptional
options: boolean | EventListenerOptionsCall setPosition to update the local Listener's position within the virtual audio space. The position will be sent over the WebRTC PeerConnection along with audio-data. This function can only be used if setupHRTF was called with a non-null MetadataCallback function.
let md = {};
md.x = 1.5;
md.y = -2;
md.o = 0.785;
listener.setPosition(md);
an associative array with members x
, y
, and o
to indicate the position
of the local Listener. x
and y
are in meters, and o
is in radians.
| © 2023 High Fidelity, Inc. | All rights reserved | Terms of Service | Privacy Policy |
HRTFOutput represents the Listener. Sources (HRTFInputs) are arranged around this to create spatialized audio.
Example