ref: 5e15cf3b9fdf84bfcdb8ef4ab5a15a24c3556173
parent: f186f777b20c6eb1153a5b78ace1d53bb98ad5cb
author: Erik de Castro Lopo <erikd@mega-nerd.com>
date: Sat Feb 14 17:50:30 EST 2009
NEWS README doc/*.html : Update for new release.
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,12 @@
* doc/win32.html Makefile.am configure.ac
Reinstate Win32/MSVC compile instructions.
+ * doc/*.html
+ Update for new release.
+
+ * configure.ac
+ Verison 0.1.7.
+
2009-02-13 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/common.h src/samplerate.c
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+Version 0.1.7 (2009-02-14)
+ * Fix a segfault which occurs when memcpy is passed a bad length parameter.
+ * Fix compilation under MSVC.
+
Version 0.1.6 (2009-01-27)
* Minor bug fix in test suite (account for rounding error on x86_64).
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-This is libsamplerate, 0.1.6
+This is libsamplerate, 0.1.7
libsamplerate (also known as Secret Rabbit Code) is a library for
perfroming sample rate conversion of audio data.
--- a/doc/api.html
+++ b/doc/api.html
@@ -6,7 +6,7 @@
Secret Rabbit Code (aka libsamplerate)
</TITLE>
<META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
- <META NAME="Version" CONTENT="libsamplerate-0.1.6">
+ <META NAME="Version" CONTENT="libsamplerate-0.1.7">
<META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
<META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
<LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
--- a/doc/api_callback.html
+++ b/doc/api_callback.html
@@ -6,7 +6,7 @@
Secret Rabbit Code (aka libsamplerate)
</TITLE>
<META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
- <META NAME="Version" CONTENT="libsamplerate-0.1.6">
+ <META NAME="Version" CONTENT="libsamplerate-0.1.7">
<META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
<META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
<LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
--- a/doc/api_full.html
+++ b/doc/api_full.html
@@ -6,7 +6,7 @@
Secret Rabbit Code (aka libsamplerate)
</TITLE>
<META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
- <META NAME="Version" CONTENT="libsamplerate-0.1.6">
+ <META NAME="Version" CONTENT="libsamplerate-0.1.7">
<META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
<META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
<LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
--- a/doc/api_misc.html
+++ b/doc/api_misc.html
@@ -6,7 +6,7 @@
Secret Rabbit Code (aka libsamplerate)
</TITLE>
<META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
- <META NAME="Version" CONTENT="libsamplerate-0.1.6">
+ <META NAME="Version" CONTENT="libsamplerate-0.1.7">
<META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
<META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
<LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
--- a/doc/api_simple.html
+++ b/doc/api_simple.html
@@ -6,7 +6,7 @@
Secret Rabbit Code (aka libsamplerate)
</TITLE>
<META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
- <META NAME="Version" CONTENT="libsamplerate-0.1.6">
+ <META NAME="Version" CONTENT="libsamplerate-0.1.7">
<META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
<META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
<LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
--- a/doc/bugs.html
+++ b/doc/bugs.html
@@ -6,7 +6,7 @@
Secret Rabbit Code (aka libsamplerate)
</TITLE>
<META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
- <META NAME="Version" CONTENT="libsamplerate-0.1.6">
+ <META NAME="Version" CONTENT="libsamplerate-0.1.7">
<META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
<META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
<LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
--- a/doc/download.html
+++ b/doc/download.html
@@ -6,7 +6,7 @@
Secret Rabbit Code (aka libsamplerate)
</TITLE>
<META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
- <META NAME="Version" CONTENT="libsamplerate-0.1.6">
+ <META NAME="Version" CONTENT="libsamplerate-0.1.7">
<META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
<META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
<LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
@@ -63,7 +63,7 @@
</P>
<UL>
<LI>Source code as a .tar.gz :
- <A HREF="libsamplerate-0.1.6.tar.gz">libsamplerate-0.1.6.tar.gz</A>
+ <A HREF="libsamplerate-0.1.7.tar.gz">libsamplerate-0.1.7.tar.gz</A>
</UL>
<P>
Compiling libsamplerate is relatively easy. The INSTALL file in the top
--- a/doc/faq.html
+++ b/doc/faq.html
@@ -6,7 +6,7 @@
Secret Rabbit Code (aka libsamplerate)
</TITLE>
<META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
- <META NAME="Version" CONTENT="libsamplerate-0.1.6">
+ <META NAME="Version" CONTENT="libsamplerate-0.1.7">
<META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
<META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
<LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
--- a/doc/fb2k.html
+++ b/doc/fb2k.html
@@ -6,7 +6,7 @@
Secret Rabbit Code Resampler for Foobar2000.
</TITLE>
<META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
- <META NAME="Version" CONTENT="libsamplerate-0.1.6">
+ <META NAME="Version" CONTENT="libsamplerate-0.1.7">
<META NAME="Description" CONTENT="Secret Rabbit Code Resampler for Foobar2000">
<META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux foorbar2000">
<LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
--- a/doc/history.html
+++ b/doc/history.html
@@ -6,7 +6,7 @@
Secret Rabbit Code (aka libsamplerate)
</TITLE>
<META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
- <META NAME="Version" CONTENT="libsamplerate-0.1.6">
+ <META NAME="Version" CONTENT="libsamplerate-0.1.7">
<META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
<META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
<LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
@@ -87,6 +87,8 @@
See here.</a>).
<LI>Version 0.1.6 (Jan 27 2009) Minor bug fix in test suite (account for
rounding error on x86_64).
+ <LI>Version 0.1.7 (Feb 14 2009) Fix a segfault bug. Fix compilation under
+ MSVC.
</UL>
</DIV>
--- a/doc/index.html
+++ b/doc/index.html
@@ -6,7 +6,7 @@
Secret Rabbit Code (aka libsamplerate)
</TITLE>
<META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
- <META NAME="Version" CONTENT="libsamplerate-0.1.6">
+ <META NAME="Version" CONTENT="libsamplerate-0.1.7">
<META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
<META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
<LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
--- a/doc/license.html
+++ b/doc/license.html
@@ -6,7 +6,7 @@
Secret Rabbit Code (aka libsamplerate)
</TITLE>
<META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
- <META NAME="Version" CONTENT="libsamplerate-0.1.6">
+ <META NAME="Version" CONTENT="libsamplerate-0.1.7">
<META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
<META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
<LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
--- a/doc/lists.html
+++ b/doc/lists.html
@@ -6,7 +6,7 @@
Secret Rabbit Code (aka libsamplerate)
</TITLE>
<META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
- <META NAME="Version" CONTENT="libsamplerate-0.1.6">
+ <META NAME="Version" CONTENT="libsamplerate-0.1.7">
<META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
<META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
<LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
--- a/doc/procedure.html
+++ b/doc/procedure.html
@@ -6,7 +6,7 @@
Secret Rabbit Code (aka libsamplerate)
</TITLE>
<META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
- <META NAME="Version" CONTENT="libsamplerate-0.1.6">
+ <META NAME="Version" CONTENT="libsamplerate-0.1.7">
<META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
<META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
<LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
--- a/doc/quality.html
+++ b/doc/quality.html
@@ -6,7 +6,7 @@
Secret Rabbit Code (aka libsamplerate)
</TITLE>
<META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
- <META NAME="Version" CONTENT="libsamplerate-0.1.6">
+ <META NAME="Version" CONTENT="libsamplerate-0.1.7">
<META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
<META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
<LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
--- a/doc/win32.html
+++ b/doc/win32.html
@@ -6,7 +6,7 @@
Secret Rabbit Code (aka libsamplerate)
</TITLE>
<META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
- <META NAME="Version" CONTENT="libsamplerate-0.1.6">
+ <META NAME="Version" CONTENT="libsamplerate-0.1.7">
<META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
<META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
<LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
@@ -57,36 +57,93 @@
<TD VALIGN="top">
<DIV CLASS="block">
-<h1><b>Compiling for Win32.</b></h1>
-<p>
-Version 0.1.5 of libsamplerate brought in optimisations which depend on a
-feature of the 1999 ISO C Standard which in 2009, is still not supported by
-the Microsoft compiler.
-That means you cannot compile version 0.1.5 or later with this compiler.
-</p>
+<H1><B>Compiling on Win32.</B></H1>
+<P>
+For Win32 there is a Microsoft Visual C++ compatible makefile in the <B>Win32\</B>
+directory and a MSDOS batch file in the top level directory of the distribution.
+</P>
+<P>
+To build the examples programs you will need to download and compile
+ <A HREF="http://www.mega-nerd.com/libsndfile/">libsndfile</A>
+and there are instructions for compiling it on Win32
+ <A HREF="http://www.mega-nerd.com/libsndfile/win32.html">here</A>.
+This is optional as SecretRabbitCode can be compiled and used with installing
+libsndfile.
+</P>
+<P>
+Making the libsamplerate DLL on Win32 involves the following:
+</P>
+<OL>
+ <LI> Using WinZip in the GUI, open the libsamplerate-0.X.Y.tar.gz file and
+ extract the files into a directory. The following example assumes
+ <B>C:\</B>.
+ <LI> In the directory containing the extracted files, find the file
+ <B>Win32\Makefile.msvc</B> and open it in a text editor (ie Notepad or
+ similar).
+ <LI> Find the line which starts with <B>MSVCDir</B> and modify the directory
+ path to point to the location of MSVC++ on your machine. This allows the
+ makefile to inform the compiler of the location of the standard header
+ files.
+ <LI> Copy <B>libsndfile.dll</B> and <B>libsndfile.lib</B> from the directory
+ libsndfile was compiled in to the the directory containing libsamplerate.
+ <LI> Copy the header file <B>Win32/sndfile.h</B> to the <B>Win32</B> directory
+ under the libsamplerate directory.
+ <LI> Open a DOS window (Win9X) or Command Shell (WinNT and WinXP?) and cd into
+ the libsamplerate-0.X.Y directory.
+ <LI> Make sure that the program <B>nmake</B> (which is part of the MSCV++
+ package) is in a directory which is part of your <B>PATH</B> variable.
+ <LI> Type in the command
+ <PRE> C:\libsamplerate-0.X.Y> make
+ </PRE>
+ and press <return>. You should now see a a large number of compile
+ commands as libsamplerate.dll is built.
+ <LI> To check that the built DLL has been compiled correctly type in and run the
+ command
+ <PRE> C:\libsamplerate-0.X.Y> make check
+ </PRE>
+ which will compile a set of test programs and run them.
+ If any of the programs fail the error message will be help in debugging
+ the problem.
+ (Note that some of the tests require libsndfile or libfftw/librfftw and
+ are not able to run on Win32).
+</OL>
+<P>
+At the end of the above procedure, you will find the DLL, <B>libsamplerate.dll</B>, a
+LIB file <B>libsamplerate.lib</B> in the current directory. These two files, along
+with the header file <B>samplerate.h</B> (in the <B>src\</B> directory) are all that
+you need to copy to your project in order to use libsamplerate.
+</P>
-<p>
-This leaves windows users with three options for compiling libsndfile:
-</p>
+<H2><BR>Compile Problems</H2>
+<P>
+If you run into compile problems using the above procedure, you should
+ <A HREF="lists.html"> join the main mailing list </A>
+and post your problem and/or questions there.
+Please include any error messages generated during step 6 above.
+</P>
-<ul>
-<li> Use the Intel ICC compiler with the <b><tt>-c99</tt></b> command line
- option to enable C99 mode.
- </li>
-<li> Use the GNU GCC compiler from either MinGW or Cygwin.
- </li>
-<li> Cross compile from Linux to windows using the MinGW cross compiler
- available on Linux distributions like Debian, Ubuntu and Fedora.
- </li>
-</ul>
+<P>
+If you are using some other method to compile the libsamplerate DLL you are
+probably on your own.
+</P>
+<BR>
-<br/>
-<h2>Compile Problems</h2>
-<p>
-If you run into compile problems using any of the above compilers, you should
- <A HREF="lists.html"> join the main mailing list </A>
-and post your problem and/or questions there.
-</p>
+<!--
+
+From here:
+
+ http://www.gimp.org/~tml/gimp/win32/downloads.html
+
+Download these files:
+
+ gettext-runtime-0.13.1.zip
+ glib-2.4.5-20040903.zip
+ libiconv-1.9.1.bin.woe32.zip
+ pkgconfig-0.15.zip
+
+and install them.
+
+-->
<!-- <A HREF="mailto:aldel@mega-nerd.com">For the spam bots</A> -->