Skip to content

Commit 874b3d5

Browse files
Defined detune property getter
1 parent 3ff214d commit 874b3d5

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
@@ -345,6 +345,9 @@ Object.defineProperty(HTML5AudioSound.prototype, 'rate', {
345345
* @property {number} detune
346346
*/
347347
Object.defineProperty(HTML5AudioSound.prototype, 'detune', {
348+
get: function () {
349+
return Object.getOwnPropertyDescriptor(BaseSound.prototype, 'detune').get.call(this);
350+
},
348351
set: function (value) {
349352
this.currentConfig.detune = value;
350353
if (this.checkTouchLocked('property', 'detune', value)) {

0 commit comments

Comments
 (0)