@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="PannerNode")
public class PannerNode
extends AudioNode
| Modifier and Type | Field and Description |
|---|---|
double |
coneInnerAngle
A double.
|
double |
coneOuterAngle
A double.
|
double |
coneOuterGain
The coneOuterGain property of the PannerNode interface is a double value, describing the amount of volume reduction outside the cone, defined by the coneOuterAngle attribute.
|
@JsNonNull java.lang.String |
distanceModel
A enum — see DistanceModelType.
|
double |
maxDistance
A double.
|
@JsNonNull java.lang.String |
panningModel
A enum — see PanningModelType.
|
double |
refDistance
A non-negative number.
|
double |
rolloffFactor
A number whose range depends on the distanceModel of the panner as follows (negative values are not allowed):
|
channelCount, channelCountMode, channelInterpretation| Constructor and Description |
|---|
PannerNode(BaseAudioContext context)
The PannerNode() constructor of the Web Audio API creates a new PannerNode object instance.
|
PannerNode(BaseAudioContext context,
PannerOptions options)
The PannerNode() constructor of the Web Audio API creates a new PannerNode object instance.
|
| Modifier and Type | Method and Description |
|---|---|
AudioParam |
orientationX()
An AudioParam whose value is the X component of the direction in which the audio source is facing, in 3D Cartesian coordinate space.
|
AudioParam |
orientationY()
An AudioParam whose value is the Y component of the direction the audio source is facing, in 3D Cartesian coordinate space.
|
AudioParam |
orientationZ()
An AudioParam whose value is the Z component of the direction the audio source is facing, in 3D Cartesian coordinate space.
|
AudioParam |
positionX()
An AudioParam whose value is the X coordinate of the audio source's position, in 3D Cartesian coordinates.
|
AudioParam |
positionY()
An AudioParam whose value is the Y coordinate of the audio source's position, in 3D Cartesian coordinates.
|
AudioParam |
positionZ()
An AudioParam whose value is the Z coordinate of the audio source's position, in 3D Cartesian coordinates.
|
void |
setOrientation(float x,
float y,
float z)
Void.
|
void |
setPosition(float x,
float y,
float z)
Void.
|
connect, connect, connect, connect, connect, context, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, numberOfInputs, numberOfOutputsaddEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic double coneInnerAngle
public double coneOuterAngle
public double coneOuterGain
@DistanceModelType public @JsNonNull java.lang.String distanceModel
public double maxDistance
@PanningModelType public @JsNonNull java.lang.String panningModel
public double refDistance
public double rolloffFactor
public PannerNode(@Nonnull
BaseAudioContext context,
@Nonnull
PannerOptions options)
public PannerNode(@Nonnull
BaseAudioContext context)
@JsProperty(name="orientationX") @Nonnull public AudioParam orientationX()
@JsProperty(name="orientationY") @Nonnull public AudioParam orientationY()
@JsProperty(name="orientationZ") @Nonnull public AudioParam orientationZ()
@JsProperty(name="positionX") @Nonnull public AudioParam positionX()
@JsProperty(name="positionY") @Nonnull public AudioParam positionY()
@JsProperty(name="positionZ") @Nonnull public AudioParam positionZ()
public void setOrientation(float x,
float y,
float z)
public void setPosition(float x,
float y,
float z)