From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shane Blaser Newsgroups: gmane.comp.audio.sox.devel Subject: Adjusting write buffer for recording Date: Fri, 9 Aug 2013 14:05:32 -0700 Message-ID: Reply-To: sox-devel@lists.sourceforge.net NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5644623747893876004==" X-Trace: ger.gmane.org 1376082374 14314 80.91.229.3 (9 Aug 2013 21:06:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Aug 2013 21:06:14 +0000 (UTC) To: sox-devel@lists.sourceforge.net Original-X-From: sox-devel-bounces@lists.sourceforge.net Fri Aug 09 23:06:14 2013 Return-path: Envelope-to: gcasd-sox-devel@m.gmane.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=ersw0x4B2SByicu/PEvur8wZCcefanWMQ+J+TFypiZE=; b=g23NhED9uQTf3VVOdnd623gRTcl8CrDdxOgg2B0Kv9XbrtT0tleMBfMcORS221r2Wl Qyev0xsrIY2cO4mHgeoFKhf2QbiB+gB0DF9btIMKQnPlt1ZeJBVhZIfYv2oXiPH8ioDU ThkHkX4t0PmayJ4fakGr1wu20xKTtb51fAbhcNDhx8mdsERdBYHyz4+HEoybDgGeGTWG oyD5sQUOY8QMNa/Wd3FQ4f/blCAd+KeWKgEJKRwXfmXGmcihJ5NR3Y4e6kX/Sk0wp6YO 4gXfC9nuOUHa7MbmXyIdNWVn0TN6LcoMBrKjHnFrAxNMu5R33+Eu/5oymXBzsqPDJy5S lg5A== X-Gm-Message-State: ALoCoQkgLXu5mvHVPSnKbeE5R2AJhJn6MoT9WgVi49sf4FecFHpndxd+WvN0F5lktSL6e5Y1KQLr X-Received: by 10.68.200.9 with SMTP id jo9mr280929pbc.120.1376082352113; Fri, 09 Aug 2013 14:05:52 -0700 (PDT) X-Spam-Score: 1.0 (+) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.192.182 listed in list.dnswl.org] 1.0 HTML_MESSAGE BODY: HTML included in message X-Headers-End: 1V7tsk-0005Yj-0z X-BeenThere: sox-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: sox-devel-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.comp.audio.sox.devel:309 Archived-At: Received: from lists.sourceforge.net ([216.34.181.88]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V7tsw-000500-Q5 for gcasd-sox-devel@m.gmane.org; Fri, 09 Aug 2013 23:06:11 +0200 Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1V7tsm-0001RD-RQ; Fri, 09 Aug 2013 21:06:00 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1V7tsl-0001R4-3H for sox-devel@lists.sourceforge.net; Fri, 09 Aug 2013 21:05:59 +0000 Received: from mail-pd0-f182.google.com ([209.85.192.182]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1V7tsk-0005Yj-0z for sox-devel@lists.sourceforge.net; Fri, 09 Aug 2013 21:05:58 +0000 Received: by mail-pd0-f182.google.com with SMTP id r10so391165pdi.27 for ; Fri, 09 Aug 2013 14:05:52 -0700 (PDT) Received: by 10.70.10.67 with HTTP; Fri, 9 Aug 2013 14:05:32 -0700 (PDT) --===============5644623747893876004== Content-Type: multipart/alternative; boundary=047d7b15fbcfc79acc04e38a2307 --047d7b15fbcfc79acc04e38a2307 Content-Type: text/plain; charset=ISO-8859-1 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 --047d7b15fbcfc79acc04e38a2307 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Hello I have an application that processes audio as rec writes t= he file.
<= br>
rec is buf= fering the data before it writes and I get the updates about 2 or 3 seconds= late.

I have pla= yed 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=A0

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

Size of currentRecording.wav =3D 24576
Size of currentRecording.wav =3D 36864
Size of currentRecording.wav =3D 45056
Size of currentRecording.wav =3D 77824
=A0


The data I am= looking for is split between the two last writes ....=A0


Any ideas ?<= /div>

<= div style=3D"font-family:arial,sans-serif;font-size:13px"> I just pulled down the source any ideas what file handles writing the files= ?


Thanks
--047d7b15fbcfc79acc04e38a2307-- --===============5644623747893876004== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ 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 --===============5644623747893876004== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel --===============5644623747893876004==--