You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* NOTE this only exists as a {{#crossLink "WebAudioPlugin"}}{{/crossLink}} property and is only intended for use by advanced users.
702
-
* A panNode allowing left and right audio channel panning only. Connected to our WebAudioPlugin {{#crossLink "WebAudioPlugin/gainNode:property"}}{{/crossLink}}
702
+
* GainNode for controlling <code>SoundInstance</code> volume. Connected to the WebAudioPlugin {{#crossLink "WebAudioPlugin/gainNode:property"}}{{/crossLink}}
703
703
* that sequences to <code>context.destination</code>.
704
-
* @propertypanNode
705
-
* @type {AudioPannerNode}
704
+
* @propertygainNode
705
+
* @type {AudioGainNode}
706
706
* @default null
707
707
* @since 0.4.0
708
+
*
708
709
*/
709
-
p.panNode=null;
710
+
p.gainNode=null;
710
711
711
712
/**
712
713
* NOTE this only exists as a {{#crossLink "WebAudioPlugin"}}{{/crossLink}} property and is only intended for use by advanced users.
713
-
* GainNode for controlling <code>SoundInstance</code> volume. Connected to {{#crossLink "SoundInstance/panNode:property"}}{{/crossLink}}.
714
-
* @propertygainNode
715
-
* @type {AudioGainNode}
714
+
* A panNode allowing left and right audio channel panning only. Connected to SoundInstance {{#crossLink "SoundInstance/gainNode:property"}}{{/crossLink}}.
715
+
* @propertypanNode
716
+
* @type {AudioPannerNode}
716
717
* @default null
717
718
* @since 0.4.0
718
-
*
719
719
*/
720
-
p.gainNode=null;
720
+
p.panNode=null;
721
721
722
722
/**
723
723
* NOTE this only exists as a {{#crossLink "WebAudioPlugin"}}{{/crossLink}} property and is only intended for use by advanced users.
724
724
* sourceNode is the audio source. Connected to {{#crossLink "SoundInstance/gainNode:property"}}{{/crossLink}}.
this.panNode.connect(this.owner.gainNode);// this line can cause a memory leak. Nodes need to be disconnected from the audioDestination or any sequence that leads to it.
1002
+
this.gainNode.connect(this.owner.gainNode);// this line can cause a memory leak. Nodes need to be disconnected from the audioDestination or any sequence that leads to it.
this.offset=value/1000;// convert milliseconds to seconds
1337
1336
1338
-
if(this.sourceNode&&this.sourceNode.playbackState!=this.sourceNode.UNSCHEDULED_STATE){// if playbackState is UNSCHEDULED_STATE, then play has not been called so calling stop would throw an error
0 commit comments