From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.audio.sox.devel Subject: Re: 64bit audio read and write Date: Wed, 6 Jul 2016 07:29:34 +0000 Message-ID: <20160706072934.GA24278@dcvr.yhbt.net> References: <577C4A9A.2000105@flatmax.org> Reply-To: sox-devel@lists.sourceforge.net NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1467790195 32745 80.91.229.3 (6 Jul 2016 07:29:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2016 07:29:55 +0000 (UTC) To: sox-devel@lists.sourceforge.net Original-X-From: sox-devel-bounces@lists.sourceforge.net Wed Jul 06 09:29:52 2016 Return-path: Envelope-to: gcasd-sox-devel@m.gmane.org Received-SPF: pass (sog-mx-2.v43.ch3.sourceforge.com: domain of yhbt.net designates 64.71.152.64 as permitted sender) client-ip=64.71.152.64; envelope-from=normalperson@yhbt.net; helo=dcvr.yhbt.net; Content-Disposition: inline In-Reply-To: <577C4A9A.2000105@flatmax.org> X-Spam-Score: -2.8 (--) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [64.71.152.64 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.3 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain X-Headers-End: 1bKhHA-0008PD-H9 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:490 Archived-At: Received: from lists.sourceforge.net ([216.34.181.88]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bKhHL-0003y0-7h for gcasd-sox-devel@m.gmane.org; Wed, 06 Jul 2016 09:29:51 +0200 Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bKhHD-0004sY-74; Wed, 06 Jul 2016 07:29:43 +0000 Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bKhHB-0004sR-8l for sox-devel@lists.sourceforge.net; Wed, 06 Jul 2016 07:29:41 +0000 Received: from dcvr.yhbt.net ([64.71.152.64]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1bKhHA-0008PD-H9 for sox-devel@lists.sourceforge.net; Wed, 06 Jul 2016 07:29:41 +0000 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id A757520705; Wed, 6 Jul 2016 07:29:34 +0000 (UTC) Matt Flax wrote: > Hi there, > > I currently use libsox to load and save audio data. I was wanting to > write and read 64bit data, however the generic sox sample type is 32 bit Correct, sox does some calculations internally in 64-bit double, but data which flows in between the effects is all 32-bit int. > (from sox.h) : > typedef sox_int32_t sox_sample_t; > > The basic format of the read (and write) functions are : > size_t sox_read( > sox_format_t * ft, > sox_sample_t *buf, > size_t len > ); > > Can anyone tell me the basic methodology for reading/writing 64bit audio ? It would probably reworking a lot of sox internals and would require increased memory bandwidth, hurting performance for common <= 32-bit processing. But, where and how are you working with 64-bit audio and what 64-bit audio formats are there? I'm not up-to-date with the latest technology, but even 32-bit is far beyond the range of human hearing; and last I checked; available ADC/DACs can't even make full use of 24-bit (nor our ears). On the other hand, moving to 32-bit float would make sense for compatibility with 3rd-party plugins (LADSPA for sure, maybe LV2?). Right now, we're constantly converting between float/integer in effects chains which hurts performance. ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape