Skip to content

Commit

Permalink
fix p5.soundFile.save() (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
therewasaguy authored Jan 6, 2020
1 parent b27d7a8 commit 7ce64b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/soundfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1700,8 +1700,7 @@ define(function (require) {
* </code></div>
*/
p5.SoundFile.prototype.save = function(fileName) {
const dataView = convertToWav(this.buffer);
p5.prototype.saveSound([dataView], fileName, 'wav');
p5.prototype.saveSound(this, fileName, 'wav');
};

/**
Expand Down

0 comments on commit 7ce64b9

Please sign in to comment.