Recordmp3js icon indicating copy to clipboard operation
Recordmp3js copied to clipboard

`exportWAV` is not re-entrant

Open mkilling opened this issue 10 years ago • 0 comments

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.

mkilling avatar Feb 12 '15 10:02 mkilling