From 054d5ff2e89573b5302d65c8fb33b07ad3b4d398 Mon Sep 17 00:00:00 2001 From: Kevin Siwoff Date: Wed, 22 Oct 2014 18:24:58 -0400 Subject: [PATCH] fixes buffer initialization in Player.js --- Tone/source/Player.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Tone/source/Player.js b/Tone/source/Player.js index 0c642ded..81484392 100644 --- a/Tone/source/Player.js +++ b/Tone/source/Player.js @@ -218,11 +218,7 @@ define(["Tone/core/Tone", "Tone/core/Buffer", "Tone/source/Source"], function(To Tone.Player.prototype.setPlaybackRate = function(rate, rampTime){ this._playbackRate = rate; if (this._source) { - if (rampTime){ - this._source.playbackRate.exponentialRampToValueAtTime(rate, this.toSeconds(rampTime)); - } else { - this._source.playbackRate.value = rampTime; - } + this._source.playbackRate.exponentialRampToValueAtTime(rate, this.toSeconds(rampTime)); } };