Sync'd with latest upload to Debian.
Updated Debian changelog update script.
fix pipe file-type detection regression
Fixed typo.
update test following demise of monkey.au a while ago
Update version number in cmake soxconfig.h
Update changelog
Fix input length calculation

Calculating the total length of the input wasn't done correctly for
parallel combine methods when input files had different numbers of
channels, or when merging.

For the sequence combine method, it is not possible to determine the
total length, so use SOX_UNKNOWN_LEN in that case.
MAUD format write fixes

The MAUD format wrote a wrong FORM chunk size and didn't pad the data
chunk to an even number of bytes, as required by the IFF
specification. The problems were reported by Carl Eric Codère.

This resolves tracker item 3507927.
Deprecate OpenMP 2.x
Update version numbers
flac: fix invalid memory access w/ optimize_trim

Reverse the buffer assignment roles and have read_samples() assign a
buffer location for decoder_write_callback().

Based on my analysis of src/libFLAC/stream_decoder.c in flac 1.2.1,
the previous SoX code to use an on-stack buffer was safe only (and
only questionably so) for non-seek decoding.

When seeking, FLAC__stream_decoder_seek_absolute() may call
FLAC__stream_decoder_process_single() internally to get to a target
sample.  In the seeking case, the write_audio_frame_to_client_()
function in libFLAC will use an on-stack array of pointers
("newbuffer", lines 2932-2938 of src/libFLAC/stream_decoder.c).

By stashing the address of newbuffer in p->decoded_wide_samples,
returning from FLAC__stream_decoder_seek_absolute() would leave
p->decoded_wide_samples pointing to the old stack location and
cause an invalid memory access.

ref: Invalid memory access within flac handler after seek - ID: 3476843
ref: https://sourceforge.net/tracker/?func=detail&aid=3476843&group_id=10706&atid=110706
Check if pulseaudio is actually available

This is a partial backport of robs' commit 55c0aa7 (check that writable
devices can actually be openned for writing, before selecting as the
default device), limited to pulseaudio where it seems to work well.
If the pulseaudio format is compiled in, but the PulseAudio server is not
actually usable, SoX will fall through to the next available format.
Debian bug #676167 shows that the full solution throws a warning with
alsa and even segfaults if it reaches the oss driver.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676167
Clarify misleading error message

SoX complained that "data encoding was not specified" even when it was
(-e option), but no sample size given (-b option). Change this to
"data encoding or sample size was not specified", as proposed by
Frank Heckenbach in Debian bug #676143.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676143
Update changelog
Read Ogg Vorbis files with any number of channels

Reading an Ogg Vorbis file with 3, 5, 6, etc. (any non-power of two)
channels terminated early after a few hundred samples (Debian
bug #672567).

In this situation, there always remained a few unused bytes in the read
buffer, as its size (4096 bytes) wasn't evenly divisible by the number of
channels. Still, ov_read() got called with this practically exhausted
buffer and failed.

To solve this, the buffer is created so that it always can hold an integer
number of wide samples, deviating slightly from the default size if
necessary.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=672567
spectrogram: fix default length regression

If the input length is not known, make 8 seconds the default length of
a spectrogram again. Previously, an empty spectrogram would be
generated.

This was a regression in 14.4.0 compared to 14.3.2, caused by changing
the "unknown length" indicator from 0 to SOX_UNKNOWN_LEN; spectrogram
still tested for 0.
Documentation spelling alignment: centre -> center

In the man page, change the single occurence of "centre" frequency to
"center" frequency, as the AE spelling is used in all other places
except for this one.
Backported Debian changes from post-14.4.1 branch

Backported Debian changes from post-14.4.1 master branch.
See debian/changelog for all significant changes.

(cherry-picked from commit 0ac837acf779752de4c12680914ab3ce59ece20f)
(cherry-picked from commit 1fb7b82307c7a5857001a6d983f7e7bd113e21f6)
(cherry-picked from commit 9cff6d9490758dade5bff6c645d4478b14ab3da6)
Update Debian version numbers to 14.4.2

This branch will become the release after 14.4.1, thus changing the
version numbers to reflect that and avoid potential confusion.
Clarify speed effect documentation

Make it clearer in the man page that the speed effect actually only
changes the sample rate field in the signal information. It should be
less surprising then to libSoX users that they have to add the rate
effect, too.