From eb332f46bc99cdc546b0cbec538524a81607b2f5 Mon Sep 17 00:00:00 2001 From: Jason Sigal Date: Sun, 5 Jan 2020 19:46:38 -0500 Subject: [PATCH] fix p5.soundFile.save() --- src/soundfile.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/soundfile.js b/src/soundfile.js index 33a25b5f..0d2ad49f 100644 --- a/src/soundfile.js +++ b/src/soundfile.js @@ -1700,8 +1700,7 @@ define(function (require) { * */ p5.SoundFile.prototype.save = function(fileName) { - const dataView = convertToWav(this.buffer); - p5.prototype.saveSound([dataView], fileName, 'wav'); + p5.prototype.saveSound(this, fileName, 'wav'); }; /**