GoogleChromeLabs / web-audio-samples

Web Audio API samples by Chrome Web Audio Team
https://bit.ly/web-audio-samples
Apache License 2.0
695 stars 197 forks source link

Remove unused code from recording_processor.js #376

Closed mjwilson-google closed 4 months ago

mjwilson-google commented 4 months ago

The file recording_processor.js calculates a sampleSum value, which is then averaged and passed as a gain parameter in a message.

However, this parameter is never read on the other side (app.js). Thus, this code doesn't do anything useful and should be removed.

There may be other unused code in these files which should also be removed.

(reference #350)