vincentsaluzzo / node-microphone

microphone is a simple module that use `arecord` ALSA tools method to capture sound from a USB Microphone
56 stars 48 forks source link

Added support for Windows #4

Closed gjj closed 9 years ago

gjj commented 9 years ago

Since SoX is cross-platform, the same command mentioned in #2 would work on Windows too. Tested this already!

Made the following changes:

var isMac = require('os').type() == 'Darwin';

to

var isMacOrWin = require('os').type() == 'Darwin' || require('os').type().indexOf('Windows') > -1;
vincentsaluzzo commented 9 years ago

Thanks for your help on this library. Support for Windows OS wasn't my priority but it's a good things for multiplatform nodeJS package !

Many Thanks !