Hello I have an application that processes audio as rec writes the file.
rec is buffering the data before it writes and I get the updates about 2 or
3 seconds late.
I have played with the --buffer pram and I not been able to see a
difference.
I would like to tell rec to write the data as soon as it gets it or reduce
the file write buffer size.
I have silence detection on
rec -c 1 -r 8000 --buffer 4096 currentRecording.wav silence 1 0.0001 2.1% 1
15.0 2.6%
The writes look like this
Size of currentRecording.wav = 24576 Size of currentRecording.wav = 36864
*Size* *of* *currentRecording.wav* *=* *45056* *Size* *of* *
currentRecording.wav* *=* *77824*
The data I am looking for is split between the two last writes ....
Any ideas ?
I just pulled down the source any ideas what file handles writing the files?
Thanks
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel