Skip to content

Commit a76a721

Browse files
Using EventEmitter emit method to dispatch detune update event
1 parent 7b2ed7f commit a76a721

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sound/BaseSound.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ Object.defineProperty(BaseSound.prototype, 'detune', {
425425
set: function (value) {
426426
this.currentConfig.detune = value;
427427
this.setRate();
428-
this.events.dispatch(new SoundValueEvent(this, 'SOUND_DETUNE', value));
428+
this.emit('detune', this, value);
429429
}
430430
});
431431
module.exports = BaseSound;

0 commit comments

Comments
 (0)