Defined detune property getter

This commit is contained in:
Pavle Goloskokovic 2018-01-17 17:23:04 +01:00
parent 3ff214da59
commit 874b3d5bc1

View file

@ -345,6 +345,9 @@ Object.defineProperty(HTML5AudioSound.prototype, 'rate', {
* @property {number} detune
*/
Object.defineProperty(HTML5AudioSound.prototype, 'detune', {
get: function () {
return Object.getOwnPropertyDescriptor(BaseSound.prototype, 'detune').get.call(this);
},
set: function (value) {
this.currentConfig.detune = value;
if (this.checkTouchLocked('property', 'detune', value)) {