Skip to content

Commit dd11e2a

Browse files
committed
Merge pull request phaserjs#840 from villetou/WebAudioExternalNodeFix
Web audio external node fix
2 parents de27090 + 2e7c8de commit dd11e2a

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

@@ -536,7 +536,7 @@ Phaser.Sound.prototype = {
536536

537537
if (this.externalNode)
538538
{
539-
this._sound.connect(this.externalNode.input);
539+
this._sound.connect(this.externalNode);
540540
}
541541
else
542542
{
@@ -696,7 +696,7 @@ Phaser.Sound.prototype = {
696696

697697
if (this.externalNode)
698698
{
699-
this._sound.connect(this.externalNode.input);
699+
this._sound.connect(this.externalNode);
700700
}
701701
else
702702
{

0 commit comments

Comments
 (0)