pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/audio/sox_ng



Module Name:    pkgsrc
Committed By:   wiz
Date:           Fri Jul  3 09:32:19 UTC 2026

Modified Files:
        pkgsrc/audio/sox_ng: Makefile PLIST distinfo
Removed Files:
        pkgsrc/audio/sox_ng/patches: patch-src_oss.c patch-src_sox__ng.c
            patch-src_sunaudio.c

Log Message:
sox_ng: update to 14.8.0.1.

Enable compatibility symlinks so this can replace the unmaintained sox
package.

Enable test target.

sox_ng-14.8.0.1 2026-05-26
---------------

Changes since 14.8.0:

  o Fix builds without FFTW giving all-black spectrograms, broken in 14.8.0
  o Trivial fixes to the docs

sox_ng-14.8.0   2026-05-18
-------------

The fourth new-feature release

Changes since 14.7.0:

New features:

Effects:

  o New effect "centercut", a sophisticated version of "oops"
  o bend: Raise maximum FFT size from 8192 to 2^30
  o bend: Optimized to run twice as fast
  o echo/echos: Get the output signal length right
  o fade: Add "s" square-law fade type
  o rate: Extrapolate by Linear Predictive Coding to improve end effects
  o hilbert/sinc: Raise maximum number of taps to 1073741823
  o spectrogram: Add -i option to interpolate between frequency bins
  o spectrogram: Fix linear axis with frequency ranges
  o spectrogram: On log axis, add labels at 2 and 5 or 1 to 9
  o spectrogram: Slightly faster by doing out-of-place FFTs
  o spectrogram: Fail if the start time is beyond the end
  o spectrogram: Add -g flag to show times as HH:MM:SS
  o spectrogram: Warn about non-optimal DFT sizes and suggest the nearest one
  o synth: Add -p for Pythagorean tuning

Formats:

  o New format ".hip" for libmp3lame's built-in MPEG decoder
  o New format ".mod" for Amiga modules
  o New format ".mul" for TombRaider Multiplex Streams (write-only)
  o New format ".pcm" for SNES add-on MSU-1
  o Add ffmpeg's "aa", "ea" and "act" formats
  o aifc: Support 24/32-bit big/little-endian compression types
  o cdda: Add ".cda" as a synonym for ".cdda"
  o coreaudio: Allow selection of devices by number as well as by name
  o dff/dsf: Automatically resample to supported sample rates when writing
  o dff/dsf/wsd: Autodetect the formats when reading from stdin
  o Add sndfile's names mpc and svx for formats mpc2k and 8svx
  o pulseaudio: Filename can also set server and application name (app:foo)
  o sndfile: Also handle AVR format
  o wavpack: Update to WavPack 5.0 giving 64-bit file lengths

Improvements:

  o bend: Optimized to be over twice as fast
  o If libmad is not available, use sndfile for MP3; if no sndfile, use hip
  o Add global option -A to tune A4 to something other than 440Hz
  o Add global option --keymap letting key presses adjust effect parameters
  o --interactive: [<] and [>] seek by 30s and [R] restarts the effects chain
  o In interactive mode, [n] skips and [q] and [esc] quit
  o New demo miniprograms demo/soxcopy and demo/synth

Bug fixes:

  o avr: Fail when writing an unsupported number of channels
  o echo/echos: Set the output signal's length
  o ladspa: Allow plugins that take no input
  o libsox: Warn and fail if they read an output or write an input file
  o mad: Catch and report decoder error messages
  o ogg: Detect disk-full when writing and stop
  o pitch: Error about a bad cents value instead of tempo about a bad factor
  o pulseaudio: Ignore zero-length writes, which it supposedly doesn't like
  o rate: Bug fixes to the extrapolator
  o rate: Fix "-vs" looping forever, broken in +git20260129
  o softvol: Fix bug whereby rising volume suddenly dropped to zero
  o soxi: Don't include the file header in the Bitrate figure
  o spectrogram: Fix labelling of linear axes with a frequency range
  o spectrogram: Omit bottom labels that overlap the top ones below
  o spectrogram: Place top label on the top row of the graph, not the axis
  o spectrogram: Improve labelling of logarithmic axes
  o spectrogram: If start time is after EOF, fail instead of looping forever
  o spectrogram: Obtain slightly faster FFTs from FFTW by doing them in-place
  o spectrogram: Truncate the spectrogram less than before, still not right
  o stats: Don't report the crest factor in overall JSON stats
  o stats: Fix RMS Pk db of -inf when window time is equal to file length
  o wav: Disallow zero-sized chunks
  o wav: Ignore truncated final ISFT/ICRD chunks instead of failing
  o wavpack: Fix the check for successfully rewriting the file header
  o Don't open files in reverse order, so the first unopenable file is reported
  o Make --keymap work on vol.gain and overdrive.gain when gain is 1
  o For formats that only support mono, stereo or quad, convert to the closest
    instead of writing 8-channel files that say "stereo" in the header
  o Make file rewinding work when compiled with Emscripten
  o Fail autodetection of some ffmpeg formats if the file is truncated
  o Release input and output formats' hold on stdin and stdout so that
    they can be used more than once
  o sox_open_memstream_write(): Work for formats that rewrite the header
  o Revert c557165 to make --single-threaded the default again
  o Include opus support in the Windows exes
  o Portability fixes for C89/C90
  o Fix compilation on older MacOS X systems and with MS Visual C
  o Make configure work on OpenBSD without needing --without-sunaudio
  o Make --keymap work on vol.gain and overdrive.gain when gain is 1.0
  o --multi-threaded: Set OMP_WAIT_POLICY so parallel SoXen are not slow
  o Enable the test for CVE-2018-8357
  o sox_effect_handler_t: Put new fields after priv_size for backward-compat
  o Fix some core dumps, assertion failures, double frees and memory leaks

Documentation:

  o libsox_ng.3 is completely rewritten to be accurate and complete
  o The effects descriptions have moved from sox_ng.1 to soxeffect_ng.7
  o New manual pages libsoxeffect_ng and libsoxformat_ng on writing handlers
  o Include the PDFs in the distribution tarballs
  o cdda: Add a note about big-/little-endian files
  o pulseaudio: Document that it uses its filename as a device name
  o Make "sox -h foo" give the help for format or effect "foo"

Internal:

  o Source file mp3.c has split into mp3-mad.c, mp3-lame.c and mp3-twolame.c
    and mp3-util.h has gone
  o Fix opusfile detection in the Windows build
  o Fix compilation with only some of mad, lame and twolame
  o Completely rewrite the CMake build support
  o Optimize the Windows exes for speed
  o Remove debian/ again, as they do their own packaging
  o Add lsx_popen() that uses execvp() instead of /bin/sh
  o Make sox_open_memstream_write() get the buffer length right

Thanks to akwizgran, Alfred Wingate, Case@hydrogenaudio, Daniel Adamski,
Benedetto "dettox", Dave Jones, Doug Lee, Jan Stary, jwdevel, Mans Rullgard,
prof-spock, qwertymode, Robert Schultz, Sebastian Ramacher, Stefan Sauer
and others for creative input.

sox_ng-14.7.0   2025-11-18
-------------

New features:

Effects:

  o chorus: Make all parameters optional
  o chorus: Allow an initial -[s|t] to change the default wave shape
  o chorus, phaser: Add -l/q options for linear/quadratic interpolation
  o chorus: Get the initial phase of the offset wave right
  o chorus: Make the frequency of the offset wave more precise
  o dither: Add the new shibata filters from SSRC
  o flanger: Add -n option for no interpolation
  o flanger: Allow an initial -[s|t] to set the wave shape
  o flanger: Allow delay+depth=0
  o saturation: New effect for soft clipping from subtle warmth to crunchy fuzz
  o sinc: Add -d flag to copy through when the lowpass frequency is
    above the Nyquist frequency
  o spectogram: Make -Y give exactly the requested height
  o stat: Add -e flag to output EBU R 128 loudness measurements
  o stat: Add -j flag to output in JSON format
  o stretch: Add sqrt, quarter-cos and half-cos fading types

Formats:

  o mp3: Recognize mp1 and mp2 as separate formats
  o mp2 encoding: Enable VBR encoding with -C -10-10
  o mp2 encoding: Upsample rates lower than 16k instead of failing
  o mp2/mp3: Mix 3 or more channels down to stereo instead of failing
  o wav: Decode the names of unsupported formats instead of spouting hex codes

Bug fixes:

  o chorus: Fetch delayed samples from the past, not the future (!)
  o chorus: Fix several more inaccuracies
  o flanger: Fix range of width from -100-100 to 0-inf
  o phaser: Fix range of regen to -1 to +1
  o stretch: Fix infinite loop by imposing minimum window size of 1ms
  o mp3: Make --help-format report write encodings
  o Make --enable-dl-sndfile and --enable-dl-amrnb work
  o Fix segfault on a mis-spelled effect name after :
  o Fix play -t ao, broken in 14.6.1
  o audioio (Sun audio): Fix compilation and segfault on NetBSD
  o Fix --version only saying "SoX_ng v" on MacOS

Documentation:

  o Reject trailing garbage on numeric arguments
  o Make messages for syntax errors more helpful
  o rate: Document undocumented options
  o Redraw flanger's flow diagram to be more similar to chorus/phaser
  o Make --version include -rc1 or other extensions
  o Largely rewrite the manual section for mp1/mp2/mp3.

Internal:

  o Allow ./configure --without-dolbyb
  o Fix ./configure --with-dyn-default for amr, lame, mad, twolame and sndfile
  o Add ./configure --enable-dl-speexdsp
  o Recognize ffmpeg/lame/madplay's codes for unspecified WAV lengths
  o Update to libdolbyb-1.1
  o Fix issues/issues.sh for http:// remotes and on FreeBSD
  o Add automatic "make win32.exe/win64.exe" rules using MXE
  o Fix build failure if {mad,lame,twolame}.h is found but not the library
  o Make test/twx-wav-byte-rate not fail on 64-bit machines
  o Make CMake work again, though it omits all the optional formats
  o Remove unmaintained msvc files
  o debian/ is back to build .deb packages on Debian, Ubuntu and Mint
    with dpkg-buildpackage -rfakeroot -b

sox_ng-14.6.1   2025-10-13
-------------

Bug fixes:

Effects:

  o flanger: Fix minumum and maximum values of "width" (the mix)
  o noisered: Fix asymmetric drain
  o pulseaudio: Initialize the channel map
  o spectrogram: Don't put a "DC" label on the log frequency axis
  o spectrogram: Fix position of "Frequency (Hz)" on logarithmic axis
  o spectrogram: Fix errors in the logarithmic axis and frequency range code
  o spectrogram: Fix segmentation fault when using -n
  o spectrogram: Fix segmentation fault when -y < 70
  o speexdsp: Fix maximum and minimum values of -agc and -denoise

File formats:

  o Make reading MP2/3 and Ogg files work with -t sndfile
  o Make writing MP3 files work with -t sndfile
  o When writing WAV files >4GB, set the size to "unspecified"
  o Correct WAV's byte rate for TXW's 33333.333Hz sample rate
  o Detect and report the unsupported Sonarc-in-WAV format
  o Fix reading of zero-length AIFF files
  o Fix reading of AMR files with invalid block types
  o Fix OKI ADPCM compression and decompression to respect the standard
  o Make the GSRT padding byte for odd numbers of samples silent
  o Fix ogg output (broken in 14.6.0, fixed in 14.6.0.4)
  o Reject negative sample rates

Internal improvements:

  o Create sparse audio files when the data is zeroes
  o Make the status display adapt to the terminal width
  o Use sigaction() so that SoX is stoppable even when blocked by I/O
  o Give LADSPA_PATH a sensible system default
  o Fix OSS drivers that treat mono output as stereo
  o Fix an input buffer overrun with OSS audio device
  o Fix various floating point exceptions and segmentations faults
  o Make dynamic loading of file format handlers work
  o Fix symlink creation with --enable-replace
  o Always support aligned heap allocation (for the sdm effect on AVX CPUs)
  o Fix setting of -fstack-protector for GCCs that don't have it
  o Fix compilation with versions of libsndfile that don't have MPEG
  o Fix compilation on AIX 7.3, MSYS2/MinGW, Sortix and on MacOS X with old SDKs
  o Make it compile with C89 compilers
  o Avoid slowdown of overdrive due to denormalized floating point values

Operating System specific:

  o On Windows you no longer need to "set AUDIODRIVER=waveaudio" beforehand
  o On Windows delete temporary files and output files with write errors
  o Haiku: fix compilation and add system LADSPA plugin directories
  o Update issues.sh to work on FreeBSD

Documentation:

  o Spell-check and revise the manuals, fix some usage messages
  o Map \f(CW to \fR for nroff
  o echos: Correct the gain_out hint
  o All effects now have extra usage


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/audio/sox_ng/Makefile \
    pkgsrc/audio/sox_ng/PLIST pkgsrc/audio/sox_ng/distinfo
cvs rdiff -u -r1.1 -r0 pkgsrc/audio/sox_ng/patches/patch-src_oss.c \
    pkgsrc/audio/sox_ng/patches/patch-src_sox__ng.c \
    pkgsrc/audio/sox_ng/patches/patch-src_sunaudio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/audio/sox_ng/Makefile
diff -u pkgsrc/audio/sox_ng/Makefile:1.1 pkgsrc/audio/sox_ng/Makefile:1.2
--- pkgsrc/audio/sox_ng/Makefile:1.1    Thu Jul  3 15:46:59 2025
+++ pkgsrc/audio/sox_ng/Makefile        Fri Jul  3 09:32:19 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2025/07/03 15:46:59 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2026/07/03 09:32:19 wiz Exp $
 
-DISTNAME=      sox_ng-14.6.0.2
+DISTNAME=      sox_ng-14.8.0.1
 CATEGORIES=    audio
 MASTER_SITES=  https://codeberg.org/sox_ng/sox_ng/releases/download/${DISTNAME}/
 
@@ -14,12 +14,13 @@ USE_TOOLS+=         pkg-config
 GNU_CONFIGURE=         yes
 USE_LIBTOOL=           yes
 
+# install compatibility links so this can replace 'sox'
+CONFIGURE_ARGS+=       --enable-replace
+CONFLICTS+=            sox-[0-9]*
+
 PKGCONFIG_OVERRIDE+=   sox_ng.pc.in
 
-SUBST_CLASSES+=                gsm
-SUBST_FILES.gsm=       configure src/gsm.c src/wav.c CMakeLists.txt
-SUBST_SED.gsm=         -e "s!gsm/gsm.h!gsm.h!"
-SUBST_STAGE.gsm=       pre-configure
+TEST_TARGET=           check
 
 .include "options.mk"
 
Index: pkgsrc/audio/sox_ng/PLIST
diff -u pkgsrc/audio/sox_ng/PLIST:1.1 pkgsrc/audio/sox_ng/PLIST:1.2
--- pkgsrc/audio/sox_ng/PLIST:1.1       Thu Jul  3 15:46:59 2025
+++ pkgsrc/audio/sox_ng/PLIST   Fri Jul  3 09:32:19 2026
@@ -1,15 +1,33 @@
-@comment $NetBSD: PLIST,v 1.1 2025/07/03 15:46:59 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2026/07/03 09:32:19 wiz Exp $
+bin/play
 bin/play_ng
+bin/rec
 bin/rec_ng
+bin/sox
 bin/sox_ng
+bin/soxi
 bin/soxi_ng
+include/sox.h
 include/sox_ng.h
+lib/libsox.la
 lib/libsox_ng.la
+lib/pkgconfig/sox.pc
 lib/pkgconfig/sox_ng.pc
+man/man1/play.1
 man/man1/play_ng.1
+man/man1/rec.1
 man/man1/rec_ng.1
+man/man1/sox.1
 man/man1/sox_ng.1
+man/man1/soxi.1
 man/man1/soxi_ng.1
+man/man3/libsox.3
 man/man3/libsox_ng.3
+man/man3/libsoxeffect.3
+man/man3/libsoxeffect_ng.3
+man/man3/libsoxformat.3
+man/man3/libsoxformat_ng.3
+man/man7/soxeffect.7
 man/man7/soxeffect_ng.7
+man/man7/soxformat.7
 man/man7/soxformat_ng.7
Index: pkgsrc/audio/sox_ng/distinfo
diff -u pkgsrc/audio/sox_ng/distinfo:1.1 pkgsrc/audio/sox_ng/distinfo:1.2
--- pkgsrc/audio/sox_ng/distinfo:1.1    Thu Jul  3 15:46:59 2025
+++ pkgsrc/audio/sox_ng/distinfo        Fri Jul  3 09:32:19 2026
@@ -1,8 +1,5 @@
-$NetBSD: distinfo,v 1.1 2025/07/03 15:46:59 wiz Exp $
+$NetBSD: distinfo,v 1.2 2026/07/03 09:32:19 wiz Exp $
 
-BLAKE2s (sox_ng-14.6.0.2.tar.gz) = da368431a0b584483d2a8393b40db83796757e177b54209cb690a18f5731f1e1
-SHA512 (sox_ng-14.6.0.2.tar.gz) = 9468cd15b83b2500210d54355ed5d7ae2a97171148b8a54c47007d1a7d9c57e378211c0429ee4d8065f0ba5ab97b31c9abb8795b659585c523942c044fe49b1d
-Size (sox_ng-14.6.0.2.tar.gz) = 1746640 bytes
-SHA1 (patch-src_oss.c) = f4665b500a5e6a996768e415145e751d9ff9886c
-SHA1 (patch-src_sox__ng.c) = 1dc7ddacbb1a7de683b3af981cc0d08e31888bae
-SHA1 (patch-src_sunaudio.c) = dd624099df32f67948becd647eded4d69c7c1c34
+BLAKE2s (sox_ng-14.8.0.1.tar.gz) = d8a1aac43297469c912d6ad07c6531899d7c639dd6206fb6a483b7acbc954afa
+SHA512 (sox_ng-14.8.0.1.tar.gz) = 795c6cad01f1f598730107c54aa61b033a3b10bb6c683f80d19f9306dd8e93fd82167f299268910eb97127ff24d0d1ecbc0811a1c5b6376c0209d833c8a3346f
+Size (sox_ng-14.8.0.1.tar.gz) = 2506133 bytes



Home | Main Index | Thread Index | Old Index