Gets the sound component.
The sound component.
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
_onReturns a promise that resolves with this element when it's ready.
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.