shithub: sox

Download patch

ref: aaa8932887e11d0b6b90462a15ba05237ecd306a
parent: 0c961661e920b7cd4750d4746e0039c7048dd904
author: idigdoug <idigdoug>
date: Thu Jan 7 06:29:29 EST 2010

Update documentation for MSVC solution. Add experimental speexdsp effect to MSVC build.

--- a/msvc9/Readme.txt
+++ b/msvc9/Readme.txt
@@ -1,10 +1,10 @@
 This directory includes hand-crafted project files for building SoX under
 MSVC9. The project files may be replaced by expanding CMAKE support in the
-future, but for now, this is the best build of SoX currently available on
-Windows. The resulting sox.exe has support for all SoX features except magic,
-ffmpeg, and pulseaudio. LAME (libmp3lame.dll or lame_enc.dll), MAD (libmad.dll
-or cygmad-0.dll) and AMR support (libamrnb-3.dll, libamrwb-3.dll) are loaded
-at runtime if they are available.
+future, but for now, this is the easiest way to build SoX with MS Visual C++.
+The resulting sox.exe has support for all SoX features except magic, ffmpeg,
+and pulseaudio. LAME (libmp3lame.dll or lame_enc.dll), MAD (libmad.dll or
+cygmad-0.dll), libsndfile (libsndfile-1.dll) and AMR support (libamrnb-3.dll,
+libamrwb-3.dll) are loaded at runtime if they are available.
 
 How to build:
 
@@ -20,6 +20,7 @@
    -- libpng-1.2.39-no-config.tar.gz extracted into directory libpng
    -- libsndfile-1.0.20.tar.gz extracted into directory libsndfile
    -- libvorbis-1.2.3.tar.gz extracted into directory libvorbis
+   -- speex-1.2rc1.tar.gz extracted into directory speex
    -- wavpack-4.50.1.tar.gz extracted into directory wavpack
    -- zlib-1.2.3.tar.gz extracted into directory zlib
 
@@ -34,9 +35,9 @@
 
 6. The resulting executable files will be in sox\msvc9\Debug or
    sox\msvc9\Release. The resulting sox.exe will dynamically link to
-   libmp3lame.dll, libmad.dll, libamrnb-3.dll, and libamrwb-3.dll if they are
-   available, but will run without them (though the corresponding features will
-   be unavailable if they are not present).
+   libmp3lame.dll, libmad.dll, libsndfile-1.dll, libamrnb-3.dll, and
+   libamrwb-3.dll if they are available, but will run without them (though the
+   corresponding features will be unavailable if they are not present).
 
 Points to note:
 
@@ -47,6 +48,13 @@
   sndfile.h, so you should not create a sndfile.h under the libsndfile folder.
   To repeat: you should extract a clean copy of libsndfile-1.0.20.tar.gz, and
   should not add, process, or rename any files.
+
+- The solution includes an experimental effect called speexdsp that uses the
+  speex DSP library. This does not yet enable any support for the speex file
+  format or speex codec. The speexdsp effect is simply an experimental effect
+  to make use of the automatic gain control and noise filtering components that
+  are part of the speex codec package. Support for the speex codec may be added
+  later.
 
 - The included libsox project enables OpenMP support. You can disable this
   in the libsox project properties under Configuration Properties, C/C++,
--- a/msvc9/Sox/soxconfig.h
+++ b/msvc9/Sox/soxconfig.h
@@ -85,6 +85,7 @@
 #define HAVE_IO_H 1
 #define HAVE_MEMORY_H 1
 #define HAVE_POPEN 1
+#define HAVE_SPEEXDSP 1
 #define HAVE_STDLIB_H 1
 #define HAVE_STRDUP 1
 #define HAVE_STRING_H 1