|
From: Eduardo M. <emo...@ya...> - 2015-06-25 10:18:57
|
On Tue, 23 Jun 2015 18:26:34 -0700 (MST) keghn <ke...@ne...> wrote: > > http://sourceforge.net/p/sox/code/ci/master/tree/src/ > Yes, I'm diving in the source code, as I said I found where the rec work begins (sox.c line 2936), then the setup of the default device (2661) and so on, but don't know where the microphone is selected or how. I'm doing this now (borrowed from a question on stackoverflow): sox -d -e ms-adpcm --endian little -b 8 -c 1 -r 8000 -t ul -silence 1 0.3 3% 1 0.3 3% | myapp My app uses libsox to process the audio piped from sox, but I want to do everything in my app, even the microphone record. Thanks again --- --- Eduardo Morras <emo...@ya...> |