gillesdemey / node-record-lpcm16

:microphone: Records a 16-bit signed-integer linear pulse modulation code encoded audio file.
ISC License
212 stars 59 forks source link

record.start() returns child process object #29

Closed mreinstein closed 7 years ago

mreinstein commented 7 years ago

this fixes #19

I need this ability to detect when an error occurs (for example, the microphone is unplugged.) Being able to attach to stderr enables determining if the process closed normally or errored.

gillesdemey commented 7 years ago

I would prefer emitting an error event when sox writes something to stderr instead of changing the public interface; this would otherwise require a major version bump.

see https://github.com/gillesdemey/node-record-lpcm16/issues/19#issuecomment-297541840