Setting _rate field in BaseSound class so it can be used in both Web Audio and HTML5 Audio implementations

This commit is contained in:
Pavle Goloskokovic 2017-11-27 17:33:37 +01:00
parent cf46145d7c
commit 92ac9d41c5

View file

@ -73,6 +73,13 @@ var BaseSoundManager = new Class({
* @property {Phaser.Events.EventDispatcher} events
*/
this.events = new EventDispatcher();
/**
* Property that actually holds the value of global playback rate.
*
* @property {number} _rate
* @private
*/
this._rate = 1;
},
add: NOOP,
addAudioSprite: NOOP,