ashishbajaj99 / mic

A simple stream wrapper for arecord (Linux (including Raspbian)) and sox (Mac, Windows). Returns a Passthrough stream object so that stream control like pause(), resume(), pipe(), etc. are all available.
MIT License
103 stars 61 forks source link

Only console.log from IsSilence if debug is true #2

Closed suchipi closed 8 years ago

suchipi commented 8 years ago

Pass the debug option given to mic({debug: true}) into IsSilence so that console.log is only called from within IsSilence when debug is true.

ashishbajaj99 commented 8 years ago

Thanks for the Pull Request. What you have is backward compatible - so no changes required.