shithub: sox

Download patch

ref: 4f3090aacb7ffeed49a10eae96ee8fdca53a6775
parent: d74ab75d8d230951650e420e84831d06c33526ce
author: Ulrich Klauer <ulrich@chirlu.de>
date: Mon Dec 26 05:56:37 EST 2011

Remove deprecated PLAY_RATE_ARG environment variable

--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,7 @@
   14.3.0   O --interactive         --no-clobber
   14.3.0   E filter                ~=sinc
   14.3.0   E norm -b, norm -i      gain -B, gain -en
+  14.3.0   PLAY_RATE_ARG           SOX_OPTS
   14.2.0   E key alias             pitch
   14.2.0   E pan                   ~= mixer/remix
   14.1.0   E resample alias        rate
@@ -29,7 +30,6 @@
   14.3.1   F mp3: lame 3.97        lame > 3.97             14.3.2
   14.3.1   F sndfile: sndfile 1.0.11 sndfile > 1.0.11      14.3.1
   14.3.0   F flac: libFLAC 1.1.2,3 libFLAC > 1.1.3         14.3.1
-  14.3.0   PLAY_RATE_ARG           SOX_OPTS                (now)
   14.3.0   O -1/-2/-3/-4/-8        -b                      14.4.0
   14.3.0   O -s/-u/-f              -e                      14.4.0
   14.3.0   O -A/-U/-o/-i/-a/-g     -e                      14.4.0
--- a/sox.1
+++ b/sox.1
@@ -740,7 +740,7 @@
 SoX's global options.
 For example:
 .EX
-   SOX_OPTS="\-\-buffer 20000 \-\-play-rate-arg \-hs \-\-temp /mnt/temp"
+   SOX_OPTS="\-\-buffer 20000 \-\-play\-rate\-arg \-hs \-\-temp /mnt/temp"
 .EE
 Note that setting SOX_OPTS can potentially create unwanted changes in
 the behaviour of scripts or other programs that invoke SoX.  SOX_OPTS
@@ -2664,7 +2664,8 @@
 .I Rej dB
 is the level of noise rejection.  Increasing levels of resampling
 quality come at the expense of increasing amounts of time to process the
-audio.  If no quality option is given, the quality level used is `high'.
+audio.  If no quality option is given, the quality level used is `high'
+(but see `Playing & Recording Audio' above regarding playback).
 .SP
 The `quick' algorithm uses cubic interpolation; all others use
 band-limited interpolation.  By default, all algorithms have
--- a/src/sox.c
+++ b/src/sox.c
@@ -988,8 +988,7 @@
   int guard = is_guarded - 1;
   unsigned i;
   sox_effect_t * effp;
-  char * rate_arg = is_player ? play_rate_arg ? play_rate_arg :
-      (rate_arg = getenv("PLAY_RATE_ARG")) ? rate_arg : "-l" : NULL;
+  char * rate_arg = is_player ? (play_rate_arg ? play_rate_arg : "-l") : NULL;
 
   /* 1st `effect' in the chain is the input combiner_signal.
    * add it only if its not there from a previous run.  */