From 3ff214da5971c6f792c46782cca34f21b3451c3c Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Wed, 17 Jan 2018 17:22:54 +0100 Subject: [PATCH] Defined rate property getter --- src/sound/html5/HTML5AudioSound.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sound/html5/HTML5AudioSound.js b/src/sound/html5/HTML5AudioSound.js index 0c5707e4c..1dde8fc53 100644 --- a/src/sound/html5/HTML5AudioSound.js +++ b/src/sound/html5/HTML5AudioSound.js @@ -327,6 +327,9 @@ Object.defineProperty(HTML5AudioSound.prototype, 'volume', { * @property {number} rate */ Object.defineProperty(HTML5AudioSound.prototype, 'rate', { + get: function () { + return Object.getOwnPropertyDescriptor(BaseSound.prototype, 'rate').get.call(this); + }, set: function (value) { this.currentConfig.rate = value; if (this.checkTouchLocked('property', 'rate', value)) {