setPosition abstract method
Note: The suggested replacement for this deprecated method is to instead set the
positionX
,positionY
, andpositionZ
attributes directly.
The setPosition()
method of the PannerNode defines the
position of the audio source relative to the listener (represented by an
AudioListener object stored in the BaseAudioContext.listener
attribute.) The three parameters x
, y
and z
are unitless and
describe the source's position in 3D space using the right-hand Cartesian
coordinate system.
The setPosition()
method's default value of the position is (0, 0, 0)
.
Implementation
void setPosition(
num x,
num y,
num z,
);