sox-devel@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: Shane Blaser <shane.blaser@callfire.com>
To: sox-devel@lists.sourceforge.net
Subject: Adjusting write buffer for recording
Date: Fri, 9 Aug 2013 14:05:32 -0700	[thread overview]
Message-ID: <CACB3T6HYUWP+dAAQUdXNVR3uP78nZ=c5YQe-9XokZThL8-CSYw@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 838 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 3482 bytes --]

[-- Attachment #2: Type: text/plain, Size: 405 bytes --]

------------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel

             reply	other threads:[~2013-08-09 21:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-09 21:05 Shane Blaser [this message]
2013-08-11 17:10 ` Adjusting write buffer for recording Jan Stary
2013-08-12  5:11   ` Shane Blaser
2013-08-12  6:09     ` Jan Stary
2013-08-12 14:31       ` Shane Blaser
2013-08-12 16:03         ` Jan Stary
2013-08-12 16:16           ` Shane Blaser
2013-08-12 17:11             ` Jan Stary
2013-08-12 17:28               ` Shane Blaser
2013-08-12 17:48                 ` Jan Stary

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACB3T6HYUWP+dAAQUdXNVR3uP78nZ=c5YQe-9XokZThL8-CSYw@mail.gmail.com' \
    --to=sox-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).