Recordmp3js
Recordmp3js copied to clipboard
`exportWAV` is not re-entrant
When I call exportWAV
multiple times without waiting for it to execute its callback cb
, using different callback functions each time, eventually only the last callback function I passed will fire, but it will fire multiple times.
This is because currCallback
is held as an instance level variable - the intuitive behavior would be that the callback can be different for each call to exportWAV
.