Re: [LAU] Creating a very long audio file?

From: Paul Davis <paul@email-addr-hidden>
Date: Tue Apr 02 2013 - 22:15:09 EEST

On Tue, Apr 2, 2013 at 3:12 PM, Paul Davis <paul@email-addr-hiddenwrote:

>
>
> On Tue, Apr 2, 2013 at 2:35 PM, Monty Montgomery <xiphmont@email-addr-hiddenwrote:
>
>> Regular WAV at ~CD rate is limited to about 5 hours because the length
>> encoding fields are 32 bit. You need to generate an extended WAV with
>> the WAVEFORMATEXTENSIBLE struct that allows a 16 exabyte data chunk.
>> I'm a little surprised sox doesn't do that by default.
>>
>
> I wasn't aware that WAVEFORMATEXTENSIBLE covered file sizes - the spec
> seems to be mostly about "higher resolution" sample formats. what did i
> miss?
>

Specifically:

   "The WAVE_FORMAT_EXTENSIBLE format code indicates that there is an
extension to the Format chunk. The extension has one field which declares
the number of "valid" bits/sample (wValidBitsPerSample). Another field (
dwChannelMask) contains a bits which indicate the mapping from channels to
loudspeaker positions. The last field (SubFormat) is a 16-byte globally
unique identifier (GUID)."

it does not change the size of the size field of the RIFF or data chunks,
which is what matters here.

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Wed Apr 3 00:15:02 2013

This archive was generated by hypermail 2.1.8 : Wed Apr 03 2013 - 00:15:02 EEST