Given a wave file with chunks in the following order:
sox: Detected file format type: wav
sox: WAV Chunk fmt length 18
sox: WAV Chunk bext length 602
sox: WAV Chunk data length 32366592
sox: WAV Chunk levl length 28228
causes code in demux_dts.c and demux_ac3.c to hang while searching for the 'data' chunk.
Here's a patch:
--- demux_ac3.c 2007-05-26 19:51:21.000000000 -0700
+++...
Sum the samples and then clip the min and max. Is the most common method. Here's a good write up:
http://www.musicdsp.org/phpWiki/index.php/how%20do%20i%20mix%20n%20sounds%20together%3F.