Skip to content

Commit be713af

Browse files
Removed rate property since it is already implemented in BaseSound class
1 parent 98700ff commit be713af

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

src/sound/webaudio/WebAudioSound.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -432,22 +432,6 @@ Object.defineProperty(WebAudioSound.prototype, 'volume', {
432432
this.events.dispatch(new SoundValueEvent(this, 'SOUND_VOLUME', value));
433433
}
434434
});
435-
/**
436-
* Playback rate.
437-
*
438-
* @name Phaser.Sound.WebAudioSound#rate
439-
* @property {number} rate
440-
*/
441-
Object.defineProperty(WebAudioSound.prototype, 'rate', {
442-
get: function () {
443-
return this.currentConfig.rate;
444-
},
445-
set: function (value) {
446-
this.currentConfig.rate = value;
447-
this.setRate();
448-
this.events.dispatch(new SoundValueEvent(this, 'SOUND_RATE', value));
449-
}
450-
});
451435
/**
452436
* Detuning of sound.
453437
*

0 commit comments

Comments
 (0)