Michael Jerris 4a871ba503 remove sum unnecessary files, add a missing one
git-svn-id: d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-02 18:21:02 +00:00
build solaris porting 2006-09-30 03:03:44 +00:00
include solaris\sun studio porting 2006-09-30 02:40:39 +00:00
src solaris porting 2006-09-30 03:03:44 +00:00
tests solaris\sun studio porting 2006-09-30 02:40:39 +00:00
win solaris\sun studio porting 2006-09-30 02:40:39 +00:00
AUTHORS solaris\sun studio porting 2006-09-30 02:40:39 +00:00
COPYING solaris\sun studio porting 2006-09-30 02:40:39 +00:00
ChangeLog solaris\sun studio porting 2006-09-30 02:40:39 +00:00
INSTALL solaris porting 2006-09-30 03:03:44 +00:00 solaris porting 2006-09-30 03:03:44 +00:00 solaris porting 2006-09-30 03:03:44 +00:00
NEWS solaris\sun studio porting 2006-09-30 02:40:39 +00:00
README solaris\sun studio porting 2006-09-30 02:40:39 +00:00
aclocal.m4 solaris porting 2006-09-30 03:03:44 +00:00
acsite.m4 solaris\sun studio porting 2006-09-30 02:40:39 +00:00
configure solaris porting 2006-09-30 03:03:44 +00:00 solaris\sun studio porting 2006-09-30 02:48:07 +00:00



Real-time library interface by Dominic Mazzoni

Based on resample-1.7:

License: LGPL - see the file LICENSE.txt for more information


This library is not the highest-quality resampling library
available, nor is it the most flexible, nor is it the
fastest.  But it is pretty good in all of these regards, and
it is quite portable.  The best resampling library I am aware
of is libsamplerate by Erik de Castro Lopo.  It's small, fast,
and very high quality.  However, it uses the GPL for its
license (with commercial options available) and I needed
a more free library.  So I wrote this library, using
the LGPL resample-1.7 library by Julius Smith as a basis.

Resample-1.7 is a fixed-point resampler, and as a result
has only limited precision.  I rewrote it to use single-precision
floating-point arithmetic instead and increased the number
of filter coefficients between time steps significantly.
On modern processors it can resample in real time even
with this extra overhead.

Resample-1.7 was designed to read and write from files, so
I removed all of that code and replaced it with an API that
lets you pass samples in small chunks.  It should be easy
to link to resample-1.7 as a library.

Changes in version 0.1.3:

* Fixed two bugs that were causing subtle problems
  on Intel x86 processors due to differences in roundoff errors.

* Prefixed most function names with lrs and changed header file
  from resample.h to libresample.h, to avoid namespace
  collisions with existing programs and libraries.

* Added resample_dup (thanks to Glenn Maynard)

* Argument to resample_get_filter_width takes a const void *
  (thanks to Glenn Maynard)

* resample-sndfile clips output to -1...1 (thanks to Glenn Maynard)

Usage notes:  

- If the output buffer you pass is too small, resample_process
  may not use any input samples because its internal output
  buffer is too full to process any more.  So do not assume
  that it is an error just because no input samples were
  consumed.  Just keep passing valid output buffers.

- Given a resampling factor f > 1, and a number of input
  samples n, the number of output samples should be between
  floor(n - f) and ceil(n + f).  In other words, if you
  resample 1000 samples at a factor of 8, the number of
  output samples might be between 7992 and 8008.  Do not
  assume that it will be exactly 8000.  If you need exactly
  8000 outputs, pad the input with extra zeros as necessary.

License and warranty:

All of the files in this package are Copyright 2003 by Dominic
Mazzoni <>.  This library was based heavily
on Resample-1.7, Copyright 1994-2002 by Julius O. Smith III
<>, all rights reserved.

Permission to use and copy is granted subject to the terms of the
"GNU Lesser General Public License" (LGPL) as published by the
Free Software Foundation; either version 2.1 of the License,
or any later version.  In addition, Julius O. Smith III requests
that a copy of any modified files be sent by email to so that he may incorporate them into the
CCRMA version.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   Lesser General Public License for more details.