stop()method, properties for monitoring the amplitude (volume) of the channel, and a property for assigning a SoundTransform object to the channel.
typeThe type of event.
useCaptureDetermines whether the listener works in the capture phase or the target and bubbling phases. If
useCaptureis set to
true, the listener processes the event only during the capture phase and not in the target or bubbling phase. If
false, the listener processes the event only during the target or bubbling phase. To listen for the event in all three phases, call
addEventListenertwice, once with
true, then again with
priorityThe priority level of the event listener. The priority is designated by a signed 32-bit integer. The higher the number, the higher the priority. All listeners with priority n are processed before listeners of priority n-1. If two or more listeners share the same priority, they are processed in the order in which they were added. The default priority is 0.
useWeakReferenceDetermines whether the reference to the listener is strong or weak. A strong reference(the default) prevents your listener from being garbage-collected. A weak reference does not.
Class-level member functions are not subject to garbage collection, so you can set
true for class-level member functions without subjecting them to garbage collection. If you set
true for a listener that is a nested inner function, the function will be garbage-collected and no longer persistent. If you create references to the inner function(save it in another variable) then it is not garbage-collected and stays persistent.
listenerspecified is not a function.
eventThe Event object that is dispatched into the event flow. If the event is being redispatched, a clone of the event is created automatically. After an event is dispatched, its
targetproperty cannot be changed, so you must create a new copy of the event for redispatching to work.
trueif the event was successfully dispatched. A value of
falseindicates failure or that
preventDefault()was called on the event.
ErrorThe event dispatch recursion limit has been reached.
typeThe type of event.
useCaptureSpecifies whether the listener was registered for the capture phase or the target and bubbling phases. If the listener was registered for both the capture phase and the target and bubbling phases, two calls to
removeEventListener()are required to remove both, one call with
true, and another call with