shithub: sox

Download patch

ref: c829b0a0b10f2f8b2149ca6cbe94b2b813b567ac
parent: 260be546a70aef4e9a02d66e6de5b5fcd3751bf6
author: robs <robs>
date: Sun Dec 7 09:46:58 EST 2008

attempt to fix tmpfile problems on cygwin

--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,10 @@
   o Slight improvement to A-law/u-law conversion accuracy: round LSB
     instead of truncating.  (robs)
   o Fix [2028181] w64 float format incompatibility.  (Tim Munro)
+  o Fix reading AIFF files with pad bytes in COMT chunks. (Joe Holt)
+  o Fix AIFF file length bug to stop reading trash data on files that
+    have extra chunks at end of file. (Joe Holt)
+  o Fix file length being 4 bytes short for AIFF sowt CD tracks. (Joe Holt)
 
 Effects:
 
@@ -23,7 +27,9 @@
   o New `pluck' and `tpdf' types for `synth'.  (robs)
   o Can now set common parameters for multiple `synth' channels.  (robs)
   o Fix `repeat' sometimes stopping repeating too soon.  (robs)
-  o Fixe [2332343] 'silence" segfault with certain lengths. (cbagwell)
+  o Fix [2332343] 'silence' segfault with certain lengths. (cbagwell)
+  o Fix temporary file problems in Windows (cygwin) with normalise and
+    other effects.  (robs)
 
 Other new features:
 
@@ -30,14 +36,11 @@
   o New bitrate, time in seconds, & total options for soxi.  (robs)
   o Added ability to create shared DLL's on cygwin (cbagwell)
   o Grouped files, e.g. play -r 6k "*.vox" plays all at 6k.  (robs)
+  o New `--temp DIRECTORY' option.  (robs)
 
 Other bug fixes:
 
   o Fix [2262177] SoX build could fail with parse /etc/issue error.  (robs)
-  o Fix reading AIFF files with pad bytes in COMT chunks. (Joe Holt)
-  o Fix AIFF file length bug to stop reading trash data on files that
-    have extra chunks at end of file. (Joe Holt)
-  o Fix file length being 4 bytes short for AIFF sowt CD tracks. (Joe Holt)
 
 Internal improvements:
 
--- a/sox.1
+++ b/sox.1
@@ -778,6 +778,13 @@
 This option is enabled by default when using
 SoX to play or record audio.
 .TP
+\fB\-\-temp\fI DIRECTORY\fR
+Specify that any temporary files should be created in the given
+.IR DIRECTORY .
+This can be useful if there are permission or free-space problems with the
+default location; in which case, using `\fB\-\-temp .\fR' is often a good
+solution.
+.TP
 \fB\-\-version\fR
 Show SoX's version number and exit.
 .IP \fB\-V\fB[\fIlevel\fB]\fP
--- a/src/sox.c
+++ b/src/sox.c
@@ -1617,7 +1617,7 @@
 "--replay-gain track|album|off  Default: off (sox, rec), track (play)",
 "-R                       Use default random numbers (same on each run of SoX)",
 "-S, --show-progress      Display progress while processing audio data",
-"--temp DIRECTORY         Specify the directory to use temporary files",
+"--temp DIRECTORY         Specify the directory to use for temporary files",
 "--version                Display version number of SoX and exit",
 "-V[LEVEL]                Increment or set verbosity level (default 2); levels:",
 "                           1: failure messages",