diff --git a/src/SoundPlayer.js b/src/SoundPlayer.js index 0c93ce0..debf85e 100644 --- a/src/SoundPlayer.js +++ b/src/SoundPlayer.js @@ -60,7 +60,8 @@ class SoundPlayer { return; } - this.bufferSource = new Tone.BufferSource(this.buffer.get()); + this.bufferSource = Tone.context.createBufferSource(); + this.bufferSource.buffer = this.buffer.get(); this.bufferSource.playbackRate.value = this.playbackRate; this.bufferSource.connect(this.outputNode); this.bufferSource.start();