Skip to content

Commit 2e7c8de

Browse files
committed
Fixed connecting to an externalNode in Sound.play() and Sound.resume().
1 parent 2a73652 commit 2e7c8de

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/sound/Sound.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Phaser.Sound = function (game, key, volume, loop, connect) {
150150
this.usingAudioTag = this.game.sound.usingAudioTag;
151151

152152
/**
153-
* @property {object} externalNode - If defined this Sound won't connect to the SoundManager master gain node, but will instead connect to externalNode.input.
153+
* @property {object} externalNode - If defined this Sound won't connect to the SoundManager master gain node, but will instead connect to externalNode.
154154
*/
155155
this.externalNode = null;
156156

@@ -524,7 +524,7 @@ Phaser.Sound.prototype = {
524524

525525
if (this.externalNode)
526526
{
527-
this._sound.connect(this.externalNode.input);
527+
this._sound.connect(this.externalNode);
528528
}
529529
else
530530
{
@@ -685,7 +685,7 @@ Phaser.Sound.prototype = {
685685

686686
if (this.externalNode)
687687
{
688-
this._sound.connect(this.externalNode.input);
688+
this._sound.connect(this.externalNode);
689689
}
690690
else
691691
{

0 commit comments

Comments
 (0)