jariseon / audioworklet-polyfill

strictly unofficial polyfill for Web Audio API AudioWorklet
MIT License
50 stars 9 forks source link

Adding a working example #7

Open TheSalarKhan opened 4 years ago

TheSalarKhan commented 4 years ago

Hi,

In this PR I have added an example that demonstrates the code that worked for me for a simple pass through audio processor.

Also, this PR contains a feature/fix. The AudioProcessor API expects the processor to stop when 'false' is returned from the process() method, that wasn't working for the polyfill so I have added some code that makes it happen.

Also I am adding some comments on the PR against the line numbers that I think will help you in understanding what I did.