The nearest ancestor <pc-app> element, or null if this element has no <pc-app>
ancestor. The search starts at the parent, so an element never resolves to itself.
The closest app element, or null.
The nearest ancestor <pc-entity> element, or null if this element has no <pc-entity>
ancestor. The search starts at the parent, so an element never resolves to itself.
The closest entity element, or null.
Gets which algorithm to use to reduce the volume of the sound as it moves away from the listener.
The distance model.
Sets which algorithm to use to reduce the volume of the sound as it moves away from the listener.
The distance model.
Gets the enabled state of the component.
The enabled state of the component.
Sets the enabled state of the component.
The enabled state of the component.
Gets the maximum distance from the listener at which audio falloff stops.
The max distance.
Sets the maximum distance from the listener at which audio falloff stops.
The max distance.
Gets the pitch of the sound.
The pitch.
Sets the pitch of the sound.
The pitch.
Gets the positional flag of the sound.
The positional flag.
Sets the positional flag of the sound.
The positional flag.
Gets the reference distance for reducing volume as the sound source moves further from the listener.
The ref distance.
Sets the reference distance for reducing volume as the sound source moves further from the listener. Defaults to 1.
The ref distance.
Gets the factor used in the falloff equation.
The roll-off factor.
Sets the factor used in the falloff equation. Defaults to 1.
The roll-off factor.
Gets the volume of the sound.
The volume.
Sets the volume of the sound.
The volume.
Protected_Called when the element is fully initialized and ready. Subclasses should call this when
they're ready. Resolves the ready promise and dispatches a bubbling, composed ready
event.
Returns a promise that resolves with this element when it's ready. This is the low-level primitive underlying whenReady, which is the recommended way to wait for elements.
A promise that resolves with this element when it's ready.
The SoundComponentElement interface provides properties and methods for manipulating
<pc-sounds>elements. The SoundComponentElement interface also inherits the properties and methods of the HTMLElement interface.