Skip to content

Commit e93ded3

Browse files
committed
Added missing class var.
1 parent 5fd066c commit e93ded3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/sound/Sound.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ Phaser.Sound = function (game, key, volume, loop, connect) {
174174
*/
175175
this.gainNode = null;
176176

177+
/**
178+
* @property {object} _sound - Internal var.
179+
* @private
180+
*/
181+
this._sound = null;
182+
177183
if (this.usingWebAudio)
178184
{
179185
this.context = this.game.sound.context;
@@ -195,7 +201,7 @@ Phaser.Sound = function (game, key, volume, loop, connect) {
195201
this.gainNode.connect(this.masterGainNode);
196202
}
197203
}
198-
else
204+
else if (this.usingAudioTag)
199205
{
200206
if (this.game.cache.getSound(key) && this.game.cache.isSoundReady(key))
201207
{

0 commit comments

Comments
 (0)