mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Removed detune property as it is now defined in BaseSoundManager class
This commit is contained in:
parent
e4cebbf29c
commit
65c30b9f7a
1 changed files with 0 additions and 15 deletions
|
@ -104,19 +104,4 @@ Object.defineProperty(WebAudioSoundManager.prototype, 'volume', {
|
|||
this.masterVolumeNode.gain.setValueAtTime(value, 0);
|
||||
}
|
||||
});
|
||||
/**
|
||||
* Global detune.
|
||||
* @property {number} detune
|
||||
*/
|
||||
Object.defineProperty(WebAudioSoundManager.prototype, 'detune', {
|
||||
get: function () {
|
||||
return this._detune;
|
||||
},
|
||||
set: function (value) {
|
||||
this._detune = value;
|
||||
this.sounds.forEach(function (sound) {
|
||||
sound.setRate();
|
||||
}, this);
|
||||
}
|
||||
});
|
||||
module.exports = WebAudioSoundManager;
|
||||
|
|
Loading…
Reference in a new issue