Skip to content

Commit 3ff214d

Browse files
Defined rate property getter
1 parent eb5be4c commit 3ff214d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ Object.defineProperty(HTML5AudioSound.prototype, 'volume', {
327327
* @property {number} rate
328328
*/
329329
Object.defineProperty(HTML5AudioSound.prototype, 'rate', {
330+
get: function () {
331+
return Object.getOwnPropertyDescriptor(BaseSound.prototype, 'rate').get.call(this);
332+
},
330333
set: function (value) {
331334
this.currentConfig.rate = value;
332335
if (this.checkTouchLocked('property', 'rate', value)) {

0 commit comments

Comments
 (0)