squelch.nodes.panner

get-cone-inner-angle

(get-cone-inner-angle panner)
Is a double value describing the angle, in degrees, of a cone inside of which
there will be no volume reduction.

get-cone-outer-angle

(get-cone-outer-angle panner)
Is a double value describing the angle, in degrees, of a cone outside of
which the volume will be reduced by a constant value, defined by the
coneOuterGain attribute.

get-cone-outer-gain

(get-cone-outer-gain panner)
Is a double value describing the amount of volume reduction outside the cone
defined by the coneOuterAngle attribute. Its default value is 0, meaning that
no sound can be heard.

get-distance-model

(get-distance-model panner)
Is an enumerated value determining which algorithm to use to reduce the
volume of the audio source as it moves away from the listener. Valid models
are linear, inverse, and exponential

get-max-distance

(get-max-distance panner)
Is a double value representing the maximum distance between the audio source
and the listener, after which the volume is not reduced any further.

get-panning-model

(get-panning-model panner)
Is an enumerated value determining which spatialisation algorithm to use to
position the audio in 3D space. Valid models are equalpower and HRTF

get-ref-distance

(get-ref-distance panner)
Is a double value representing the reference distance for reducing volume as
the audio source moves further from the listener.

get-rolloff-factor

(get-rolloff-factor panner)
Is a double value describing how quickly the volume is reduced as the source
moves away from the listener. This value is used by all distance models.

set-cone-inner-angle

(set-cone-inner-angle panner cone-inner-angle)
Is a double value describing the angle, in degrees, of a cone inside of which
there will be no volume reduction.

set-cone-outer-angle

(set-cone-outer-angle panner cone-outer-angle)
Is a double value describing the angle, in degrees, of a cone outside of
which the volume will be reduced by a constant value, defined by the
coneOuterGain attribute.

set-cone-outer-gain

(set-cone-outer-gain panner cone-outer-gain)
Is a double value describing the amount of volume reduction outside the cone
defined by the coneOuterAngle attribute. Its default value is 0, meaning that
no sound can be heard.

set-distance-model

(set-distance-model panner distance-model)
Is an enumerated value determining which algorithm to use to reduce the
volume of the audio source as it moves away from the listener. Valid models
are linear, inverse, and exponential

set-max-distance

(set-max-distance panner max-distance)
Is a double value representing the maximum distance between the audio source
and the listener, after which the volume is not reduced any further.

set-orientation

(set-orientation panner x y z)
Defines the direction the audio source is playing in.

set-panning-model

(set-panning-model panner panning-model)
Is an enumerated value determining which spatialisation algorithm to use to
position the audio in 3D space. Valid models are equalpower and HRTF

set-position

(set-position panner x y z)
Defines the position of the audio source relative to the listener
(represented by an AudioListener object stored in the AudioContext.listener
attribute.)

set-ref-distance

(set-ref-distance panner ref-distance)
Is a double value representing the reference distance for reducing volume as
the audio source moves further from the listener.

set-rolloff-factor

(set-rolloff-factor panner rolloff-factor)
Is a double value describing how quickly the volume is reduced as the source
moves away from the listener. This value is used by all distance models.

set-velocity

(set-velocity panner x y z)
Defines the velocity vector of the audio source — how fast it is moving and
in what direction.