--- libsamplerate-0.1.7.orig/debian/libsamplerate0-dev.doc-base
+++ libsamplerate-0.1.7/debian/libsamplerate0-dev.doc-base
@@ -0,0 +1,9 @@
+Document: libsamplerate
+Title: Debian libsamplerate Manual
+Author: Erik de Castro Lopo
+Abstract: Programming manual and examples for the libsamplerate library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libsamplerate0-dev/html/index.html
+Files: /usr/share/doc/libsamplerate0-dev/html/*.html
--- libsamplerate-0.1.7.orig/debian/README.source
+++ libsamplerate-0.1.7/debian/README.source
@@ -0,0 +1,7 @@
+The Debian version of libsamplerate has a couple of small patches applied which
+have not yet been pushed upstream.
+
+On a Debian system you can read about how to apply the debian patches here:
+
+ /usr/share/doc/quilt/README.source
+
--- libsamplerate-0.1.7.orig/debian/copyright
+++ libsamplerate-0.1.7/debian/copyright
@@ -0,0 +1,29 @@
+This package was debianized by Anand Kumria on
+Thr, 5 Dec 2002 23:05:38 +1100.
+
+It was downloaded from http://www.mega-nerd.com/SRC/download.html
+
+Upstream Author: Erik de Castro Lopo
+
+Copyright:
+
+ Copyright (C) 2002-2008 Erik de Castro Lopo
+
+License:
+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
--- libsamplerate-0.1.7.orig/debian/libsamplerate0-dev.install
+++ libsamplerate-0.1.7/debian/libsamplerate0-dev.install
@@ -0,0 +1,5 @@
+usr/include/*
+usr/lib/lib*.a
+usr/lib/lib*.la
+usr/lib/lib*.so
+usr/lib/pkgconfig/*
--- libsamplerate-0.1.7.orig/debian/samplerate-programs.dirs
+++ libsamplerate-0.1.7/debian/samplerate-programs.dirs
@@ -0,0 +1 @@
+usr/bin
--- libsamplerate-0.1.7.orig/debian/changelog
+++ libsamplerate-0.1.7/debian/changelog
@@ -0,0 +1,157 @@
+libsamplerate (0.1.7-3) unstable; urgency=low
+
+ * debian/control :
+ - New maintainer (Closes: #546788).
+ - Add DM-Upload-Allowed yes.
+ - Improved package descriptions.
+ - Standards version to 3.8.3.
+ * debian/patches/ debian/rules debian/control :
+ - Use quilt instead of dpatch.
+ * debian/rules :
+ - Do not install example binary varispeed-play which was always intended as
+ a coding demo rather than something usable.
+ * Add file debian/README.source.
+ * Add manpage for sndfile-resample.
+ * Add a patch to fix termination condition bug (Closes: #539878).
+ * Add patch to prevent crashing when input_frames == 0 (Closes: #506722).
+
+ -- Erik de Castro Lopo Wed, 7 Oct 2009 21:46:20 +1100
+
+libsamplerate (0.1.7-2) unstable; urgency=low
+
+ * Added callback_test.dpatch to correct rounding error in callback test,
+ closes: #515658.
+
+ -- Samuel Mimram Tue, 17 Feb 2009 23:35:15 +0100
+
+libsamplerate (0.1.7-1) unstable; urgency=low
+
+ * New upstream release.
+ * Use Homepage field.
+ * Updated compat to 7.
+ * Updated standards version to 3.8.0.
+
+ -- Samuel Mimram Mon, 16 Feb 2009 10:25:25 +0100
+
+libsamplerate (0.1.4-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Samuel Mimram Mon, 14 Jul 2008 13:46:21 +0200
+
+libsamplerate (0.1.3-1) unstable; urgency=low
+
+ * New upstream release.
+ * Updated standards version to 3.7.3, no changes needed.
+
+ -- Samuel Mimram Sat, 05 Apr 2008 15:28:40 +0200
+
+libsamplerate (0.1.2-5) unstable; urgency=low
+
+ * Using dpatch to handle patches.
+ * Added api.dpatch to correct links in the documentation, closes: #423590.
+
+ -- Samuel Mimram Tue, 22 May 2007 22:06:50 +0200
+
+libsamplerate (0.1.2-4) unstable; urgency=low
+
+ * Correctly install varispeed-play, closes: #421422.
+
+ -- Samuel Mimram Sun, 29 Apr 2007 00:17:06 +0200
+
+libsamplerate (0.1.2-3) unstable; urgency=low
+
+ * Adopting the package, closes: #418081.
+ * Rephrased samplerate-programs package description, closes: #345745.
+ * Updated standards version to 3.7.2, no changes needed.
+
+ -- Samuel Mimram Sat, 07 Apr 2007 01:36:51 +0200
+
+libsamplerate (0.1.2-2) unstable; urgency=low
+
+ * Previous upload was rejected by ftp-master because they felt that
+ having only a single binary in samplerate-programs was not a good
+ idea.
+ * Include all example programs instead.
+
+ -- Anand Kumria Sat, 26 Nov 2005 09:44:31 +1100
+
+libsamplerate (0.1.2-1) unstable; urgency=low
+
+ * New upstream release (Closes: #333478)
+ * Include sample programs (Closes: #297138)
+ * Install all docs (Closes: #275390)
+
+ -- Anand Kumria Wed, 26 Oct 2005 14:21:42 +1000
+
+libsamplerate (0.1.1-2) unstable; urgency=low
+
+ * Install documentation (Closes: #262921)
+
+ -- Anand Kumria Mon, 23 Aug 2004 09:27:09 +1000
+
+libsamplerate (0.1.1-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Anand Kumria Sat, 31 Jul 2004 18:15:20 +1000
+
+libsamplerate (0.1.0-2) unstable; urgency=low
+
+ * Include upstreams documentation
+
+ -- Anand Kumria Wed, 17 Mar 2004 01:47:49 +1100
+
+libsamplerate (0.1.0-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Anand Kumria Tue, 16 Mar 2004 23:29:17 +1100
+
+libsamplerate (0.0.15-2) unstable; urgency=low
+
+ * Depend upon pkg-config (Closes: #197638)
+
+ -- Anand Kumria Mon, 30 Jun 2003 00:08:30 +1000
+
+libsamplerate (0.0.15-1) unstable; urgency=low
+
+ * New upstream version
+ * Switch to libdevel
+
+ -- Anand Kumria Sat, 3 May 2003 21:59:33 +1000
+
+libsamplerate (0.0.14-1) unstable; urgency=low
+
+ * New upstream release
+ * Update to policy 3.5.8.0
+
+ -- Anand Kumria Sun, 23 Mar 2003 12:17:37 +1100
+
+libsamplerate (0.0.13-3) unstable; urgency=low
+
+ * Fix speeling (Closes: #172484)
+ * Improve description
+ * Add dependancy on libsndfile1 and perform 'make check'
+
+ -- Anand Kumria Wed, 25 Dec 2002 12:58:43 +1100
+
+libsamplerate (0.0.13-2) unstable; urgency=low
+
+ * Provide .la and pkgconfig files
+ * Remove .ex files from debian
+
+ -- Anand Kumria Sat, 7 Dec 2002 14:16:24 +1100
+
+libsamplerate (0.0.13-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Anand Kumria Sat, 7 Dec 2002 03:01:21 +1100
+
+libsamplerate (0.0.12-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Anand Kumria Thu, 5 Dec 2002 23:05:38 +1100
+
--- libsamplerate-0.1.7.orig/debian/samplerate-programs.install
+++ libsamplerate-0.1.7/debian/samplerate-programs.install
@@ -0,0 +1 @@
+usr/bin/*
--- libsamplerate-0.1.7.orig/debian/compat
+++ libsamplerate-0.1.7/debian/compat
@@ -0,0 +1 @@
+7
--- libsamplerate-0.1.7.orig/debian/libsamplerate0-dev.examples
+++ libsamplerate-0.1.7/debian/libsamplerate0-dev.examples
@@ -0,0 +1,2 @@
+examples/*.c
+examples/*.h
--- libsamplerate-0.1.7.orig/debian/libsamplerate0.install
+++ libsamplerate-0.1.7/debian/libsamplerate0.install
@@ -0,0 +1 @@
+usr/lib/lib*.so.*
--- libsamplerate-0.1.7.orig/debian/libsamplerate0-dev.docs
+++ libsamplerate-0.1.7/debian/libsamplerate0-dev.docs
@@ -0,0 +1,2 @@
+NEWS
+README
--- libsamplerate-0.1.7.orig/debian/rules
+++ libsamplerate-0.1.7/debian/rules
@@ -0,0 +1,80 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/quilt/quilt.make
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+config.status: configure
+ dh_testdir
+ ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
+
+
+build: patch build-stamp
+build-stamp: config.status
+ dh_testdir
+
+ $(MAKE)
+ $(MAKE) check
+
+ touch build-stamp
+
+clean: unpatch
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+
+ [ ! -f Makefile ] || $(MAKE) distclean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+
+ $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
+ install -D doc/*.html doc/*.png doc/*.css $(CURDIR)/debian/libsamplerate0-dev/usr/share/doc/libsamplerate0-dev/html/
+
+binary-indep: build install
+
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_install --sourcedir=debian/tmp --list-missing
+
+ # This line can be removed when the man page get pushed upstream.
+ dh_installman -psamplerate-programs debian/sndfile-resample.1
+
+ dh_installdocs -a
+ dh_installexamples
+ dh_installman
+ dh_installchangelogs ChangeLog
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install patch unpatch
--- libsamplerate-0.1.7.orig/debian/libsamplerate0-dev.dirs
+++ libsamplerate-0.1.7/debian/libsamplerate0-dev.dirs
@@ -0,0 +1 @@
+usr/share/doc/libsamplerate0-dev/html
--- libsamplerate-0.1.7.orig/debian/watch
+++ libsamplerate-0.1.7/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+http://www.mega-nerd.com/SRC/download.html libsamplerate-(.*)\.tar\.gz
--- libsamplerate-0.1.7.orig/debian/control
+++ libsamplerate-0.1.7/debian/control
@@ -0,0 +1,65 @@
+Source: libsamplerate
+Section: sound
+Priority: optional
+Maintainer: Erik de Castro Lopo
+DM-Upload-Allowed: yes
+Build-Depends: debhelper (>> 7.0.0), fftw3-dev, libsndfile1-dev, quilt
+Standards-Version: 3.8.3
+Homepage: http://www.mega-nerd.com/SRC/
+
+Package: libsamplerate0
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Audio sample rate conversion library
+ libsamplerate (aka Secret Rabbit Code) is a library for audio rate conversion.
+ .
+ libsamplerate currently provides three different sample rate conversion
+ algorithms; zero order hold, linear interpolation and FIR filter interpolation
+ (using filters derived from the mathematical SINC function). The first two
+ algorithms (zero order hold and linear) are included for completeness and are
+ not recommended for any application where high quality sample rate conversion
+ is required. For the FIR/Sinc algorithm, three converters are provided;
+ SRC_SINC_FASTEST, SRC_SINC_MEDIUM_QUALITY and SRC_SINC_BEST_QUALITY to allow a
+ trade off between conversion speed and conversion quality.
+ .
+ libsamplerate is capable of downsampling to 1/256 of the original sample rate
+ and upsampling to 256 times the original sample rate. It is also capable of
+ time varying conversions for vary speed effects and synchronising of two
+ unlocked sample rates.
+
+Package: libsamplerate0-dev
+Provides: libsamplerate-dev
+Conflicts: libsamplerate-dev
+Section: libdevel
+Architecture: any
+Depends: libsamplerate0 (= ${binary:Version}), pkg-config
+Description: Development files for audio sample rate conversion
+ libsamplerate (aka Secret Rabbit Code) is a library for audio rate conversion.
+ .
+ libsamplerate currently provides three different sample rate conversion
+ algorithms; zero order hold, linear interpolation and FIR filter interpolation
+ (using filters derived from the mathematical SINC function). The first two
+ algorithms (zero order hold and linear) are included for completeness and are
+ not recommended for any application where high quality sample rate conversion
+ is required. For the FIR/Sinc algorithm, three converters are provided;
+ SRC_SINC_FASTEST, SRC_SINC_MEDIUM_QUALITY and SRC_SINC_BEST_QUALITY to allow a
+ trade off between conversion speed and conversion quality.
+ .
+ libsamplerate is capable of downsampling to 1/256 of the original sample rate
+ and upsampling to 256 times the original sample rate. It is also capable of
+ time varying conversions for vary speed effects and synchronising of two
+ unlocked sample rates.
+ .
+ This package contains the library header files and API documentation.
+
+Package: samplerate-programs
+Section: utils
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Sample programs that use libsamplerate
+ This package contains simple example programs for resampling sound files with
+ the libsamplerate library.
+ .
+ Currently, the only binary included is sndfile-resample which uses libsndfile
+ to read and write audio files and libsamplerate to do the rate conversion.
--- libsamplerate-0.1.7.orig/debian/sndfile-resample.1
+++ libsamplerate-0.1.7/debian/sndfile-resample.1
@@ -0,0 +1,29 @@
+.TH SNDFILE-RESAMPLE 1 "October 7, 2009"
+.SH NAME
+sndfile-resample \- convert an audio file from one sample rate to another
+.SH SYNOPSIS
+.B sndfile-resample
+.RI "-to [\-c ]
A simple interface which can sample rate convert
+ a single block of samples (one or more channels) in one go.
+ The simple API is less capable than the full API.
+-
A callback interface which has the same
+ functionality as the interface above but allows the details of input and
+ output to be separated.
+ The output is generated by call a read function and the library calls a user
+@@ -92,15 +92,15 @@
+ The parts of the API which are common to both are:
+
+
+ All three versions of the API are restricted to operating on buffers of ISO C
+ Standard float data.
+ However, there are two
+- auxillary functions
++ auxillary functions
+ for converting arrays of float data to and from short data.
+