head 1.7; access; symbols pkgsrc-2013Q2:1.7.0.18 pkgsrc-2013Q2-base:1.7 pkgsrc-2012Q4:1.7.0.16 pkgsrc-2012Q4-base:1.7 pkgsrc-2011Q4:1.7.0.14 pkgsrc-2011Q4-base:1.7 pkgsrc-2011Q2:1.7.0.12 pkgsrc-2011Q2-base:1.7 pkgsrc-2009Q4:1.7.0.10 pkgsrc-2009Q4-base:1.7 pkgsrc-2008Q4:1.7.0.8 pkgsrc-2008Q4-base:1.7 pkgsrc-2008Q3:1.7.0.6 pkgsrc-2008Q3-base:1.7 cube-native-xorg:1.7.0.4 cube-native-xorg-base:1.7 pkgsrc-2008Q2:1.7.0.2 pkgsrc-2008Q2-base:1.7 pkgsrc-2008Q1:1.6.0.10 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.8 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.6 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.4 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.2 pkgsrc-2007Q1-base:1.6 pkgsrc-2006Q4:1.4.0.26 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.24 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.22 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.20 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.18 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.16 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.14 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.12 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.10 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.8 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.6 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.4 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.4.0.2 pkgsrc-2003Q4-base:1.4 buildlink2:1.3.0.2 buildlink2-base:1.3 netbsd-1-5-PATCH003:1.3 netbsd-1-5-PATCH001:1.3 netbsd-1-3-PATCH002:1.1; locks; strict; comment @# @; 1.7 date 2008.04.27.08.19.54; author wiz; state dead; branches; next 1.6; 1.6 date 2007.02.22.23.34.43; author wiz; state Exp; branches; next 1.5; 1.5 date 2007.02.22.23.23.04; author wiz; state Exp; branches; next 1.4; 1.4 date 2002.07.12.19.30.51; author mycroft; state dead; branches; next 1.3; 1.3 date 2000.12.27.00.55.04; author wiz; state Exp; branches; next 1.2; 1.2 date 98.06.19.17.10.31; author tron; state dead; branches; next 1.1; 1.1 date 97.10.29.01.48.36; author augustss; state Exp; branches; next ; desc @@ 1.7 log @Update to 14.0.1. Reenable flac support. sox-14.0.1 2008-01-29 ---------- File formats: o Added support for non-standard, non-WAVE_FORMAT_EXTENSIBLE (esp. 24-bit) PCM wav (see wavpcm in soxformat.7 for details). (robs) Effects: o Reimplemented reverb to be similar to freeverb. (robs) Bug fixes: o Fix Sndtool read error causing noise at start. (Reynir Stefánsson) o Fix mixer with >4 numbers, and mixer -3 behaving as mixer -4. (robs) o Fix [1748909] sox does not report remaining playtime of mp3s. (robs) o Fix failure to read AIFF files with empty MARK chunk. (robs) o Fix spurious 'Premature EOF' message in some circumstances. (robs) o Switched to 16-bit for libao driver since not all its plugins support it (such as oss, nas, and pulse audio) (Morita Sho) o Stop crash when "rec" is run with no arguments (Morita Sho). o Fix -V (without argument) on non-gnu systems. (robs) o Fix reported (with -V) output audio length in some cases. (robs) o Fix actual FLAC output file audio length in some cases. (robs) o Fix poor 24-bit FLAC compression & support newer versions of libFLAC (1.2.x). (robs) o Fix loss of 1 decoded FLAC block when using "trim 0 ...". (robs) o Fix trim when first effect with IMA-ADPCM input wav file. (robs) Internal improvements: o Let "make distcheck" run some automated test scripts. o Distribute missing cmake files. o Fix ogg vorbis compile error on some platforms. o Remove unused libltdl that could cause header mismatch with installed libltdl. o Fix AMR detection with --disable-shared. (robs) o Updated configure to support linking to static libraries on mingw for flac, ogg, and libsamplerate libraries. sox-14.0.0 2007-09-11 ---------- File formats: o Added ffmpeg support. (Reuben Thomas) o FLAC: added seekable decoding; added seek-table generation. (robs) o Added M3U & PLS playlist formats [FR# 1667341] (Note: SHOUTcast PLS is only partially supported). (robs) o Made format readers and writers into individual modules for easier distribution of differently-licensed code. (Reuben Thomas) o Added libao support. (Reuben Thomas) o Added support for ADPCM-encoded PRC files, based on Danny Smith's rec2wav and sndcmp. (Reuben Thomas) o Added AMR-NB [FR# 728875] & AMR-WB formats (with external libs). (robs) o Added LPC-10 support. (Reuben Thomas) Effects: o Use LADSPA effects (one input, one output). (Reuben Thomas) o --octave option changed to --plot; can now also use gnuplot to plot effect transfer function. (robs) o Added soft-knee companding. (robs) o Show (with --plot) compand transfer function. (robs) o Allow e.g. "vol 6dB" (as well as "vol 6 dB"). (robs) o Changed deemph filter from 1st order to 2nd order for better accuracy. (robs) o Add option to silence effect to leave periods of silence in and only strip out extra silence. (Mark Schreiber) o synth can now generate any number of channels. (robs) o mixer can now mixdown to mono any number of channels. (robs) o Added oops effect (mixer special case). (robs) o All effects that could only work on mono or stereo audio, now work with any number of channels. (robs) o Added WSOLA-based key and tempo effects. (robs) Other new features: o Show (with -S) if clipping is occurring. (robs) o Added internet input file support (needs wget). (robs) o Made it possible to build without sound drivers. (Reuben Thomas) Bug fixes: o Fix (m)compand transfer function non-linearities; fix compand drain volume. (robs) o Fix crash with pan effect. (robs) o Add missing RM define to Makefiles so installs work. (Bug# 1666599) (cbagwell) o Fix I/O performance regression in 13.0.0. (Reuben Thomas) o Fix .lu, .la read regression in 13.0.0 [Bug# 1715076]. (robs) o Fix uncompressed NIST/Sphere read regression in v13 [Bug #1736016]. o Fix displayed times when playing a file and using trim. (robs) o Fix CDDA sector duration display for non-CDDA sample rates. (robs) o synth fixes: brown noise; inverted square wave; offset < 0. (robs) o Fix crash when encoding Vorbis or FLAC: with no comment. (robs) o Fix effect drain problems: chorus, echo(s), phaser. (robs) o Fix rabbit responsiveness and memory problems. (Peter Samuelson) o Fix broken stereo audio when recording using ALSA. (robs) o Fix OSS driver on big endian machines that was introduced in last release. Internal improvements: o Renamed libst to libsox for name recongition and to avoid duplications with other existing libst libraries. (Reuben Thomas) o Moved effects to libsfx. (Reuben Thomas) o Got rid of several hundred compiler warnings. (robs, Reuben Thomas) o Added basic performance testing of I/O. (Reuben Thomas) o Effects chain processing now available in libSoX. (robs) o Added effects-chain buffering for effects that use a window [FR# 1621695]. (robs) o Added cmake build files for Win32. (robs) @ text @$NetBSD: patch-ad,v 1.6 2007/02/22 23:34:43 wiz Exp $ --- src/libst-config.in.orig 2004-09-01 19:49:24.000000000 +0000 +++ src/libst-config.in @@@@ -17,9 +17,9 @@@@ case "$1" in --libdir) echo $libdir;; --libs) - echo $libs;; + echo "@@LRF@@'$libdir' -L'$libdir' $libs";; --cflags) - echo "-L'$libdir' -I'$includedir'";; + echo -I$includedir;; *) echo "Usage: $0 [--prefix|--includedir|--libdir|--cflags|--libs]" exit 1;; @ 1.6 log @Un-sed(1) rpath flag. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.5 2007/02/22 23:23:04 wiz Exp $ @ 1.5 log @Update to 13.0.0: Note: flac support is not enabled because sox-13.0.0 only supports the old obsolete API; pkgsrc has newer flac. sox-13.0.0 ---------- File formats: o Support for .caf, .paf, .fap, .nist, .w64, .nist, Matlab 4.2/5.0 (Octave 2.0/2.1), .pvf, .sds, .sd2 and .xi file formats via libsndfile. If available, libsndfile can also be used to handle all the other file formats it understands. (Reuben Thomas) o Add FLAC support (robs@@users.sf.net) o Support Maxis's XA format. (Dwayne C. Litzenberger) o Add support for 24-bit PCM raw, wav (WAVE_FORMAT_EXTENSIBLE) [FR# 801015], au, aiff, & flac files. (robs) o Add AIFF-C output support. (shashimoto) o New .ima file format for raw IMA ADPCM. (robs) o Allow the rate and number of channels of .au files to be overridden by command-line arguments. (robs@@users.sf.net) o Add seek support for GSM data in WAV files. Rafal Maszkowski o Allow encoding quality to be specified (FLAC & Ogg, but not MP3 yet). (robs) o Rename -b to -1, -w to -2, -l to -4, -d to -8, and mask to dither. (robs) o New options for specifying endianness (and separate options for nibble & bit reversal) [FR# 1621702]. (robs) o Improved multi-channel file reading; fixes [1599990]. (robs) Effects: o Equalizer effect (Pascal Giard) o bass and treble altering effects. (robs) o New optional rabbit resample routine, using libsamplerate (aka Secret Rabbit Code). (Reuben Thomas) o Added allpass filter effect. (robs) o Documented the butterworth filter effects; added variable Q. (robs) o "rate" effect made an alias for "resample". o Visualisation of various filters' frequency response via Octave. (robs) o Can now specify width of many 2nd-order filters as: Hz, octaves, or Q. (robs) o Dither/mask amount now specifiable. (robs) o Consistent (and hopefully complete) clipping detection and reporting. (robs) o Allow command-line time parameters of < 1 sec to omit the leading 0. (robs) o Improved synth usage and improved the synth entry in the man- page. (robs) o Higher quality audio speed adjustment; also fixes [1155364]. (robs) o Replacement flanger effect; also fixes [1393245]. (robs) o Added silence padding effect. (robs) o Added ability for noiseprof to use stdout and noisered to use stdin [FR# 1621694]. (Reuben Thomas) o vibro effect name deprecated in favour of tremolo; this effect reimplemented as a special case of synth. (robs) Other new features: o Remove soxmix. (Reuben Thomas) o Preview mode now removed, as all it did was use rate rather than resample, and rate has been removed. o -V now gives only user-relevant messages, use -V -V to get developer-relevant messages. (robs) o -V output much improved and expanded; now includes display of (auto-)selected effects. (robs) o sox man-page overhaul, new soxexam man-page entries. (robs) o Added command line options for specifying the output file comment. (robs) o Added ability to merge e.g. 2 mono files to 1 stereo file [FR# 1297076]. (robs) o Removed the restrictions whereby multiple input files had to have the same data encoding & size, and in most situations where they had to have the same # of channels, and for play where they had to have the same sampling-rate. (robs) o Options to apply replay-gain on input; enabled by default with `play'. (robs) o Can now use Ctrl-C to skip to next track when playing multiple files (e.g. play *.mp3); Ctrl-C twice to exit. (robs) o Added --interactive option to prompt to overwrite pre-existing output file. (robs) o Added large file support. (Reuben Thomas) Bug fixes: o Fix writing MP3 files on AMD64 processors. o More fixes to MP3 tag reading. Sometimes tags were detected as valid MP3 frames. o Fix to stop, avoiding a crash, when starting of effects fails. (Reuben Thomas) o Fixed a bug introduced in 12.18.2 that stopped the draining of effects from occuring. This had stopped the reverse effect, among others, from working. (Reuben Thomas) o Several effects are now optimised out in situations where they need do nothing, e.g. changing rate from 8000 to 8000, or changing volume by 0dB [Bug# 1395781]. (robs) o Fix rounding error when reading command-line time parameters. (robs) o Fix nul file hander ignoring other format options if rate option has not been given. (robs) o Fix synth length accuracy. (robs) o Fix broken audio when downmixing with any of the following effects: synth, deemph, vibro. (robs) o Fixed deemph & earwax effects to work with MP3, vorbis, & FLAC. (robs) o Fix wav file handler discarding the last PCM sample in certain circumstances. (robs) o Fix [1627972] AIFF read bug when MARK chunk present. (Richard Fuller) o Fix [1160154] VOX to WAV conversion problem. (robs) o Removed (for output file only) the potentially problematic -v option. Use the vol effect instead. (robs) o Improved the accuracy of integer and floating point PCM conversions. (robs) o Don't go into a loop on zero-padded WAVs. (Jorge Serna) o Fix to AIFF writing to avoid writing invalid files in some situations. (Reuben Thomas) o Fix compander effect bugs: [1613030] Compand fails to compress clipping, [1181423] compand with 0 sec attack/release. (robs) Internal improvements: o More and better self-tests. (robs@@users.sf.net) o Build system overhaul to use the full set of GNU autotools. (Reuben Thomas) o Add new getopt1.c to win32 project file. o Remove old, optional rate change and alaw/ulaw conversion code. (Reuben Thomas) o Removed the old internally invoked (but mentioned in the man page) copy effect. (robs) sox-12.18.2 ----------- o Adding in Debian's disk full fix (#313206). o Finally got rid of reference to cleanup() function in library. Applications are now required to detect all failures from return codes and cleanup as they want. o Changed how list of formats and effects are stored internally. Effects libst users only. Dirk o Store effects usage so that its accessable by applications. Dirk o Modify the synth effect to not use SIGINT to stop processing and instead return ST_EOF. This allows exact acount of samples to be written out instead of an approximate amount. o Fix hangup when attempting to write stereo MP3 files. (1512218) Kendrick Shaw o Deemp effect would lose stereo separation. (1479249) o Adding cross-platform support for getopt_long o Make help screens print much more information and add new --help-effect option. (Originally from Dirk). o Add support for using an external gsm library instead of just the internal one. Vladimir Nadvornik o Updates to nul file handler to prevent crashes during output. Martin Panter (1482869) @ text @d1 1 a1 1 $NetBSD$ d10 1 a10 1 + echo "-R'$libdir' -L'$libdir' $libs";; @ 1.4 log @Update to sox 12.17.3. Numerous bugs fixed, and most of the NetBSD patches integrated. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.3 2000/12/27 00:55:04 wiz Exp $ d3 14 a16 10 --- pitch.c.orig Wed Jun 7 20:35:39 2000 +++ pitch.c @@@@ -38,6 +38,7 @@@@ #include "st.h" #include /* malloc(), free() */ +#include /* memcpy() */ #include /* cos(), pow() */ #include /* LONG_MAX */ @ 1.3 log @Fix compilation on alpha, and handle most warnings while I'm here. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Remove messy patches and define "unix" manually, fixes PR pkg/5604 Tim Rightnour. @ text @d1 6 a6 5 Only in .: .build_done diff -u ../work/Makefile.unx ./Makefile.unx --- ../work/Makefile.unx Wed Oct 29 02:43:00 1997 +++ ./Makefile.unx Wed Oct 29 02:26:11 1997 @@@@ -154,7 +154,7 @@@@ d8 2 d11 2 a12 60 -# FreeBSD 1.x / 2.x / 3.x +# NetBSD 1.3 CFLAGS = -O -DLINUXSOUND -D_HAVE_PARAM_H CC = cc AR = ar r @@@@ -163,7 +163,7 @@@@ all: sox sox: sox.o $(SOUNDLIB) - $(CC) $(CFLAGS) -o sox sox.o $(SOUNDLIB) -lm + $(CC) $(CFLAGS) -o sox sox.o $(SOUNDLIB) -lm -lossaudio $(SOUNDLIB): $(LIBOBJS) $(RM) $(SOUNDLIB) Only in .: libst.a diff -u ../work/sbdsp.c ./sbdsp.c --- ../work/sbdsp.c Wed Oct 29 02:42:59 1997 +++ ./sbdsp.c Wed Oct 29 02:42:09 1997 @@@@ -21,7 +21,12 @@@@ #include #else #ifdef LINUXSOUND +#ifdef __NetBSD__ +#include +#include +#else #include +#endif #else #include #endif @@@@ -77,6 +82,12 @@@@ ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, &off); ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, &ft->info.rate); #else +#ifdef __NetBSD__ + { + int fmt = AFMT_U8; + ioctl(fileno(ft->fp), SNDCTL_DSP_SETFMT, &fmt); + } +#endif #if defined(LINUXSOUND) #if SOUND_VERSION >= 200 ioctl(fileno(ft->fp), SOUND_PCM_WRITE_RATE, &ft->info.rate); @@@@ -150,6 +161,12 @@@@ ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, &on); ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, &ft->info.rate); #else +#ifdef __NetBSD__ + { + int fmt = AFMT_U8; + ioctl(fileno(ft->fp), SNDCTL_DSP_SETFMT, &fmt); + } +#endif #if defined(LINUXSOUND) ioctl(fileno(ft->fp), SNDCTL_DSP_SYNC, 0); #if SOUND_VERSION >= 200 Only in .: sox Only in .: ut @ 1.1 log @Change RCS id. NetBSD port. @ text @@