mattdiamond / Recorderjs

A plugin for recording/exporting the output of Web Audio API nodes
4.18k stars 1.46k forks source link

getBuffer and exportWAV callbacks not firing #151

Open ericinspace opened 8 years ago

ericinspace commented 8 years ago

This is for @jergason's fork, https://github.com/jergason/Recorderjs

getBuffer and exportWAV exist as functions on instances of Recorder, but their callbacks never fire. Any ideas why this could be happening? It seems to work when importing Recorder from mattdiamond/RecorderJS, so I'm pretty sure this is a problem with the fork.

sixtyfive commented 8 years ago

Doesn't even work in the non-forked example (https://github.com/mattdiamond/Recorderjs/blob/master/examples/example_simple_exportwav.html) ... sort of a bummer :disappointed:. There's also more wrong with the example, as it gives "cannot read property 'clear' of undefined", which does work in my own code.

brianjlowry commented 6 years ago

Hi, I've forked this and fixed the issue. It was a very simple fix. See here: https://github.com/brianjlowry/Recorderjs/blob/master/dist/recorder.js