We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ac51b8 commit e36e189Copy full SHA for e36e189
1 file changed
v3/src/sound/webaudio/WebAudioSound.js
@@ -1,5 +1,6 @@
1
var Class = require('../../utils/Class');
2
var BaseSound = require('../BaseSound');
3
+var SoundEvent = require('../SoundEvent');
4
// Phaser.Sound.WebAudioSound
5
// TODO support webkitAudioContext implementation differences
6
// https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Porting_webkitAudioContext_code_to_standards_based_AudioContext
@@ -252,6 +253,7 @@ var WebAudioSound = new Class({
252
253
rate: this.totalRate
254
});
255
this.createAndStartLoopBufferSource();
256
+ this.events.dispatch(new SoundEvent(this, 'SOUND_LOOP'));
257
}
258
},
259
destroy: function () {
0 commit comments