From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= Newsgroups: gmane.comp.audio.sox.devel Subject: Re: Converting rf64 to Adobe Audition 3.0 Date: Mon, 17 Aug 2015 00:52:20 +0100 Message-ID: References: <55D0AD74.70204@hanswkraus.com> Reply-To: sox-devel@lists.sourceforge.net NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1439769160 10407 80.91.229.3 (16 Aug 2015 23:52:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Aug 2015 23:52:40 +0000 (UTC) Cc: sox-devel@lists.sourceforge.net To: Hans Kraus Original-X-From: sox-devel-bounces@lists.sourceforge.net Mon Aug 17 01:52:35 2015 Return-path: Envelope-to: gcasd-sox-devel@m.gmane.org X-ACL-Warn: In-Reply-To: <55D0AD74.70204@hanswkraus.com> (Hans Kraus's message of "Sun, 16 Aug 2015 17:34:12 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-Spam-Score: -0.4 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.3 AWL AWL: Adjusted score from AWL reputation of From: address X-Headers-End: 1ZR7j1-0001xk-7c 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:414 Archived-At: Received: from lists.sourceforge.net ([216.34.181.88]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZR7j8-0005PT-SZ for gcasd-sox-devel@m.gmane.org; Mon, 17 Aug 2015 01:52:35 +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 1ZR7j5-0002ao-9T; Sun, 16 Aug 2015 23:52:31 +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 1ZR7j3-0002ai-DD for sox-devel@lists.sourceforge.net; Sun, 16 Aug 2015 23:52:29 +0000 Received: from unicorn.mansr.com ([81.2.72.234]) by sog-mx-3.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1ZR7j1-0001xk-7c for sox-devel@lists.sourceforge.net; Sun, 16 Aug 2015 23:52:29 +0000 Received: by unicorn.mansr.com (Postfix, from userid 51770) id E7D271538A; Mon, 17 Aug 2015 00:52:20 +0100 (BST) Hans Kraus writes: > Hi, > > I'm currently recording with Audacity 2.1.0 in rf64 format for more > than 4 GB samples and using Audition 3.0 for declicking and denoising > it. > > Audition 3.0 (as you may already know) has its own way to deal with > more than 4 GB samples, the header looks like: > > RIFF > 0xFF 0xFF 0xFF 0xFF > --------------------- > fmt > 0x10 0x00 0x00 0x00 > 0x0001 > 0x0002 > 0x00017700 =3D 96000 > 0x0008CA00 =3D 576000 > 0x0006 > 0x0018 =3D 24 > --------------------- > data > 0xFFFED210 =3D 42994890000 > ..................... > > As far as I understand the 0xFFFFFFFF as file length is the marker for > the extended format which consists of consecutive data chunks with a > length of 0xFFFED210 each, the last one possibly shorter. Is the only difference from regular RIFF/WAVE format the presence of multiple 'data' chunks with the total size give as 0xffffffff? > I'd like to implement that in SoX. Are there any hints/tips for me? That shouldn't be too hard. Look at the write_samples() function in wav.c. When writing PCM, you end up in the 'default' case of the switch statement: len =3D lsx_rawwrite(ft, buf, len); wav->numSamples +=3D (len/ft->signal.channels); Here you can add a check to insert a new data chunk header whenever necessary. You also need to modify wavwritehdr() to be aware of this. > PS: I asked a similar question on the SoX users list, but didn't get > an answer. Neither of the lists seem very active of late. -- = M=E5ns Rullg=E5rd mans@mansr.com ---------------------------------------------------------------------------= ---