Skip to content

Commit e0591df

Browse files
Dispatching event when sound volume value changes
1 parent 0c70ae2 commit e0591df

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ Object.defineProperty(WebAudioSound.prototype, 'volume', {
349349
set: function (value) {
350350
this.currentConfig.volume = value;
351351
this.volumeNode.gain.setValueAtTime(value, 0);
352+
this.events.dispatch(new SoundValueEvent(this, 'SOUND_VOLUME', value));
352353
}
353354
});
354355
/**

0 commit comments

Comments
 (0)