WebAudioTrack
WebAudioTrack copied to clipboard
stopRecording(): SyntaxError: function statement requires a name
I get this error when running WebAudioTrack.js in Angular.
I am wondering what could cause the issue, Angular packs the JS, and I can't see the exact function, but it points me to a minified version that looks like this:
function(t,e){var n,r=t.numberOfAudioChannels,i=t.leftBuffers.slice(0),o=t.rightBuffers.slice(0),a=t.sampleRate,s=t.internalInterleavedLength,l=t.desiredSampRate; ...
As a fix, i tried to pass an empty callback function to stopRecording(), still no joy.
Update: I disabled minification and it works, but wondering if there's something inherently wrong with the code that needs to be reviewed.
Any help is appreciated.