Skip to content

Commit 7ce64b9

Browse files
authored
fix p5.soundFile.save() (#406)
1 parent b27d7a8 commit 7ce64b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/soundfile.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,8 +1700,7 @@ define(function (require) {
17001700
* </code></div>
17011701
*/
17021702
p5.SoundFile.prototype.save = function(fileName) {
1703-
const dataView = convertToWav(this.buffer);
1704-
p5.prototype.saveSound([dataView], fileName, 'wav');
1703+
p5.prototype.saveSound(this, fileName, 'wav');
17051704
};
17061705

17071706
/**

0 commit comments

Comments
 (0)