mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 00:53:42 +00:00
Defined detune property getter
This commit is contained in:
parent
3ff214da59
commit
874b3d5bc1
1 changed files with 3 additions and 0 deletions
|
@ -345,6 +345,9 @@ Object.defineProperty(HTML5AudioSound.prototype, 'rate', {
|
||||||
* @property {number} detune
|
* @property {number} detune
|
||||||
*/
|
*/
|
||||||
Object.defineProperty(HTML5AudioSound.prototype, 'detune', {
|
Object.defineProperty(HTML5AudioSound.prototype, 'detune', {
|
||||||
|
get: function () {
|
||||||
|
return Object.getOwnPropertyDescriptor(BaseSound.prototype, 'detune').get.call(this);
|
||||||
|
},
|
||||||
set: function (value) {
|
set: function (value) {
|
||||||
this.currentConfig.detune = value;
|
this.currentConfig.detune = value;
|
||||||
if (this.checkTouchLocked('property', 'detune', value)) {
|
if (this.checkTouchLocked('property', 'detune', value)) {
|
||||||
|
|
Loading…
Reference in a new issue