From: "Måns Rullgård" <mans@mansr.com>
To: Hans Kraus <hans@hanswkraus.com>
Cc: sox-devel@lists.sourceforge.net
Subject: Re: Converting rf64 to Adobe Audition 3.0
Date: Mon, 17 Aug 2015 00:52:20 +0100 [thread overview]
Message-ID: <yw1x7fou23m3.fsf@unicorn.mansr.com> (raw)
In-Reply-To: <55D0AD74.70204@hanswkraus.com> (Hans Kraus's message of "Sun, 16 Aug 2015 17:34:12 +0200")
Hans Kraus <hans@hanswkraus.com> 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 = 96000
> 0x0008CA00 = 576000
> 0x0006
> 0x0018 = 24
> ---------------------
> data
> 0xFFFED210 = 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 = lsx_rawwrite(ft, buf, len);
wav->numSamples += (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åns Rullgård
mans@mansr.com
------------------------------------------------------------------------------
next prev parent reply other threads:[~2015-08-16 23:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-16 15:34 Converting rf64 to Adobe Audition 3.0 Hans Kraus
2015-08-16 23:52 ` Måns Rullgård [this message]
2015-08-17 17:01 ` Hans Kraus
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=yw1x7fou23m3.fsf@unicorn.mansr.com \
--to=sox-devel@lists.sourceforge.net \
--cc=hans@hanswkraus.com \
/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).