[-]
[+]
|
Changed |
_service:tar_git:libsamplerate.spec
|
|
|
Changed |
_service
^
|
|
Deleted |
_service:tar_git:libsamplerate-0.1.9+master.20190324203959.2.g6913cbb.tar.gz
^
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/.
^
|
-(directory)
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/AUTHORS
^
|
@@ -1 +0,0 @@
-Erik de Castro Lopo <erikd@mega-nerd.com>
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/COPYING
^
|
@@ -1,25 +0,0 @@
-Copyright (c) 2012-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
-TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Cfg
^
|
-(directory)
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Cfg/compile
^
|
@@ -1,143 +0,0 @@
-#! /bin/sh
-# Wrapper for compilers which do not understand `-c -o'.
-
-scriptversion=2009-04-28.21; # UTC
-
-# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
-# Foundation, Inc.
-# Written by Tom Tromey <tromey@cygnus.com>.
-#
-# This program 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, or (at your option)
-# any later version.
-#
-# This program 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 program. If not, see <http://www.gnu.org/licenses/>.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# This file is maintained in Automake, please report
-# bugs to <bug-automake@gnu.org> or send patches to
-# <automake-patches@gnu.org>.
-
-case $1 in
- '')
- echo "$0: No command. Try \`$0 --help' for more information." 1>&2
- exit 1;
- ;;
- -h | --h*)
- cat <<\EOF
-Usage: compile [--help] [--version] PROGRAM [ARGS]
-
-Wrapper for compilers which do not understand `-c -o'.
-Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
-arguments, and rename the output as expected.
-
-If you are trying to build a whole package this is not the
-right script to run: please start by reading the file `INSTALL'.
-
-Report bugs to <bug-automake@gnu.org>.
-EOF
- exit $?
- ;;
- -v | --v*)
- echo "compile $scriptversion"
- exit $?
- ;;
-esac
-
-ofile=
-cfile=
-eat=
-
-for arg
-do
- if test -n "$eat"; then
- eat=
- else
- case $1 in
- -o)
- # configure might choose to run compile as `compile cc -o foo foo.c'.
- # So we strip `-o arg' only if arg is an object.
- eat=1
- case $2 in
- *.o | *.obj)
- ofile=$2
- ;;
- *)
- set x "$@" -o "$2"
- shift
- ;;
- esac
- ;;
- *.c)
- cfile=$1
- set x "$@" "$1"
- shift
- ;;
- *)
- set x "$@" "$1"
- shift
- ;;
- esac
- fi
- shift
-done
-
-if test -z "$ofile" || test -z "$cfile"; then
- # If no `-o' option was seen then we might have been invoked from a
- # pattern rule where we don't need one. That is ok -- this is a
- # normal compilation that the losing compiler can handle. If no
- # `.c' file was seen then we are probably linking. That is also
- # ok.
- exec "$@"
-fi
-
-# Name of file we expect compiler to create.
-cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
-
-# Create the lock directory.
-# Note: use `[/\\:.-]' here to ensure that we don't use the same name
-# that we are using for the .o file. Also, base the name on the expected
-# object file name, since that is what matters with a parallel build.
-lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
-while true; do
- if mkdir "$lockdir" >/dev/null 2>&1; then
- break
- fi
- sleep 1
-done
-# FIXME: race condition here if user kills between mkdir and trap.
-trap "rmdir '$lockdir'; exit 1" 1 2 15
-
-# Run the compile.
-"$@"
-ret=$?
-
-if test -f "$cofile"; then
- mv "$cofile" "$ofile"
-elif test -f "${cofile}bj"; then
- mv "${cofile}bj" "$ofile"
-fi
-
-rmdir "$lockdir"
-exit $ret
-
-# Local Variables:
-# mode: shell-script
-# sh-indentation: 2
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
-# time-stamp-end: "; # UTC"
-# End:
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Cfg/config.guess
^
|
@@ -1,1561 +0,0 @@
-#! /bin/sh
-# Attempt to guess a canonical system name.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
-# Free Software Foundation, Inc.
-
-timestamp='2009-04-27'
-
-# This file 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 program 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 program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
-# 02110-1301, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-
-# Originally written by Per Bothner <per@bothner.com>.
-# Please send patches to <config-patches@gnu.org>. Submit a context
-# diff and a properly formatted ChangeLog entry.
-#
-# This script attempts to guess a canonical system name similar to
-# config.sub. If it succeeds, it prints the system name on stdout, and
-# exits with 0. Otherwise, it exits with 1.
-#
-# The plan is that this can be called by configure scripts if you
-# don't specify an explicit build system type.
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION]
-
-Output the configuration name of the system \`$me' is run on.
-
-Operation modes:
- -h, --help print this help, then exit
- -t, --time-stamp print date of last modification, then exit
- -v, --version print version number, then exit
-
-Report bugs and patches to <config-patches@gnu.org>."
-
-version="\
-GNU config.guess ($timestamp)
-
-Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
- case $1 in
- --time-stamp | --time* | -t )
- echo "$timestamp" ; exit ;;
- --version | -v )
- echo "$version" ; exit ;;
- --help | --h* | -h )
- echo "$usage"; exit ;;
- -- ) # Stop option processing
- shift; break ;;
- - ) # Use stdin as input.
- break ;;
- -* )
- echo "$me: invalid option $1$help" >&2
- exit 1 ;;
- * )
- break ;;
- esac
-done
-
-if test $# != 0; then
- echo "$me: too many arguments$help" >&2
- exit 1
-fi
-
-trap 'exit 1' 1 2 15
-
-# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
-# compiler to aid in system detection is discouraged as it requires
-# temporary files to be created and, as you can see below, it is a
-# headache to deal with in a portable fashion.
-
-# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
-# use `HOST_CC' if defined, but it is deprecated.
-
-# Portable tmp directory creation inspired by the Autoconf team.
-
-set_cc_for_build='
-trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
-: ${TMPDIR=/tmp} ;
- { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
- { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
- { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
- { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
-dummy=$tmp/dummy ;
-tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
-case $CC_FOR_BUILD,$HOST_CC,$CC in
- ,,) echo "int x;" > $dummy.c ;
- for c in cc gcc c89 c99 ; do
- if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
- CC_FOR_BUILD="$c"; break ;
- fi ;
- done ;
- if test x"$CC_FOR_BUILD" = x ; then
- CC_FOR_BUILD=no_compiler_found ;
- fi
- ;;
- ,,*) CC_FOR_BUILD=$CC ;;
- ,*,*) CC_FOR_BUILD=$HOST_CC ;;
-esac ; set_cc_for_build= ;'
-
-# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
-# (ghazi@noc.rutgers.edu 1994-08-24)
-if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
- PATH=$PATH:/.attbin ; export PATH
-fi
-
-UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
-UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
-UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
-UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
-
-# Note: order is significant - the case branches are not exclusive.
-
-case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
- *:NetBSD:*:*)
- # NetBSD (nbsd) targets should (where applicable) match one or
- # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
- # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
- # switched to ELF, *-*-netbsd* would select the old
- # object file format. This provides both forward
- # compatibility and a consistent mechanism for selecting the
- # object file format.
- #
- # Note: NetBSD doesn't particularly care about the vendor
- # portion of the name. We always set it to "unknown".
- sysctl="sysctl -n hw.machine_arch"
- UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
- /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
- case "${UNAME_MACHINE_ARCH}" in
- armeb) machine=armeb-unknown ;;
- arm*) machine=arm-unknown ;;
- sh3el) machine=shl-unknown ;;
- sh3eb) machine=sh-unknown ;;
- sh5el) machine=sh5le-unknown ;;
- *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
- esac
- # The Operating System including object format, if it has switched
- # to ELF recently, or will in the future.
- case "${UNAME_MACHINE_ARCH}" in
- arm*|i386|m68k|ns32k|sh3*|sparc|vax)
- eval $set_cc_for_build
- if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
- | grep __ELF__ >/dev/null
- then
- # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
- # Return netbsd for either. FIX?
- os=netbsd
- else
- os=netbsdelf
- fi
- ;;
- *)
- os=netbsd
- ;;
- esac
- # The OS release
- # Debian GNU/NetBSD machines have a different userland, and
- # thus, need a distinct triplet. However, they do not need
- # kernel version information, so it can be replaced with a
- # suitable tag, in the style of linux-gnu.
- case "${UNAME_VERSION}" in
- Debian*)
- release='-gnu'
- ;;
- *)
- release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
- ;;
- esac
- # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Cfg/config.sub
^
|
@@ -1,1686 +0,0 @@
-#! /bin/sh
-# Configuration validation subroutine script.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
-# Free Software Foundation, Inc.
-
-timestamp='2009-04-17'
-
-# This file is (in principle) common to ALL GNU software.
-# The presence of a machine in this file suggests that SOME GNU software
-# can handle that machine. It does not imply ALL GNU software can.
-#
-# This file 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 program 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 program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
-# 02110-1301, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-
-# Please send patches to <config-patches@gnu.org>. Submit a context
-# diff and a properly formatted ChangeLog entry.
-#
-# Configuration subroutine to validate and canonicalize a configuration type.
-# Supply the specified configuration type as an argument.
-# If it is invalid, we print an error message on stderr and exit with code 1.
-# Otherwise, we print the canonical config type on stdout and succeed.
-
-# This file is supposed to be the same for all GNU packages
-# and recognize all the CPU types, system types and aliases
-# that are meaningful with *any* GNU software.
-# Each package is responsible for reporting which valid configurations
-# it does not support. The user should be able to distinguish
-# a failure to support a valid configuration from a meaningless
-# configuration.
-
-# The goal of this file is to map all the various variations of a given
-# machine specification into a single specification in the form:
-# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
-# or in some cases, the newer four-part form:
-# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
-# It is wrong to echo any other type of specification.
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION] CPU-MFR-OPSYS
- $0 [OPTION] ALIAS
-
-Canonicalize a configuration name.
-
-Operation modes:
- -h, --help print this help, then exit
- -t, --time-stamp print date of last modification, then exit
- -v, --version print version number, then exit
-
-Report bugs and patches to <config-patches@gnu.org>."
-
-version="\
-GNU config.sub ($timestamp)
-
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
- case $1 in
- --time-stamp | --time* | -t )
- echo "$timestamp" ; exit ;;
- --version | -v )
- echo "$version" ; exit ;;
- --help | --h* | -h )
- echo "$usage"; exit ;;
- -- ) # Stop option processing
- shift; break ;;
- - ) # Use stdin as input.
- break ;;
- -* )
- echo "$me: invalid option $1$help"
- exit 1 ;;
-
- *local*)
- # First pass through any local machine types.
- echo $1
- exit ;;
-
- * )
- break ;;
- esac
-done
-
-case $# in
- 0) echo "$me: missing argument$help" >&2
- exit 1;;
- 1) ;;
- *) echo "$me: too many arguments$help" >&2
- exit 1;;
-esac
-
-# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
-# Here we must recognize all the valid KERNEL-OS combinations.
-maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
-case $maybe_os in
- nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
- uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
- kopensolaris*-gnu* | \
- storm-chaos* | os2-emx* | rtmk-nova*)
- os=-$maybe_os
- basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
- ;;
- *)
- basic_machine=`echo $1 | sed 's/-[^-]*$//'`
- if [ $basic_machine != $1 ]
- then os=`echo $1 | sed 's/.*-/-/'`
- else os=; fi
- ;;
-esac
-
-### Let's recognize common machines as not being operating systems so
-### that things like config.sub decstation-3100 work. We also
-### recognize some manufacturers as not being operating systems, so we
-### can provide default operating systems below.
-case $os in
- -sun*os*)
- # Prevent following clause from handling this invalid input.
- ;;
- -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
- -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
- -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
- -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
- -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
- -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
- -apple | -axis | -knuth | -cray)
- os=
- basic_machine=$1
- ;;
- -sim | -cisco | -oki | -wec | -winbond)
- os=
- basic_machine=$1
- ;;
- -scout)
- ;;
- -wrs)
- os=-vxworks
- basic_machine=$1
- ;;
- -chorusos*)
- os=-chorusos
- basic_machine=$1
- ;;
- -chorusrdb)
- os=-chorusrdb
- basic_machine=$1
- ;;
- -hiux*)
- os=-hiuxwe2
- ;;
- -sco6)
- os=-sco5v6
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco5)
- os=-sco3.2v5
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco4)
- os=-sco3.2v4
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco3.2.[4-9]*)
- os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco3.2v[4-9]*)
- # Don't forget version if it is 3.2v4 or newer.
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco5v6*)
- # Don't forget version if it is 3.2v4 or newer.
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Cfg/depcomp
^
|
@@ -1,630 +0,0 @@
-#! /bin/sh
-# depcomp - compile a program generating dependencies as side-effects
-
-scriptversion=2009-04-28.21; # UTC
-
-# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
-# Software Foundation, Inc.
-
-# This program 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, or (at your option)
-# any later version.
-
-# This program 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 program. If not, see <http://www.gnu.org/licenses/>.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
-
-case $1 in
- '')
- echo "$0: No command. Try \`$0 --help' for more information." 1>&2
- exit 1;
- ;;
- -h | --h*)
- cat <<\EOF
-Usage: depcomp [--help] [--version] PROGRAM [ARGS]
-
-Run PROGRAMS ARGS to compile a file, generating dependencies
-as side-effects.
-
-Environment variables:
- depmode Dependency tracking mode.
- source Source file read by `PROGRAMS ARGS'.
- object Object file output by `PROGRAMS ARGS'.
- DEPDIR directory where to store dependencies.
- depfile Dependency file to output.
- tmpdepfile Temporary file to use when outputing dependencies.
- libtool Whether libtool is used (yes/no).
-
-Report bugs to <bug-automake@gnu.org>.
-EOF
- exit $?
- ;;
- -v | --v*)
- echo "depcomp $scriptversion"
- exit $?
- ;;
-esac
-
-if test -z "$depmode" || test -z "$source" || test -z "$object"; then
- echo "depcomp: Variables source, object and depmode must be set" 1>&2
- exit 1
-fi
-
-# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
-depfile=${depfile-`echo "$object" |
- sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
-tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
-
-rm -f "$tmpdepfile"
-
-# Some modes work just like other modes, but use different flags. We
-# parameterize here, but still list the modes in the big case below,
-# to make depend.m4 easier to write. Note that we *cannot* use a case
-# here, because this file can only contain one case statement.
-if test "$depmode" = hp; then
- # HP compiler uses -M and no extra arg.
- gccflag=-M
- depmode=gcc
-fi
-
-if test "$depmode" = dashXmstdout; then
- # This is just like dashmstdout with a different argument.
- dashmflag=-xM
- depmode=dashmstdout
-fi
-
-cygpath_u="cygpath -u -f -"
-if test "$depmode" = msvcmsys; then
- # This is just like msvisualcpp but w/o cygpath translation.
- # Just convert the backslash-escaped backslashes to single forward
- # slashes to satisfy depend.m4
- cygpath_u="sed s,\\\\\\\\,/,g"
- depmode=msvisualcpp
-fi
-
-case "$depmode" in
-gcc3)
-## gcc 3 implements dependency tracking that does exactly what
-## we want. Yay! Note: for some reason libtool 1.4 doesn't like
-## it if -MD -MP comes after the -MF stuff. Hmm.
-## Unfortunately, FreeBSD c89 acceptance of flags depends upon
-## the command line argument order; so add the flags where they
-## appear in depend2.am. Note that the slowdown incurred here
-## affects only configure: in makefiles, %FASTDEP% shortcuts this.
- for arg
- do
- case $arg in
- -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
- *) set fnord "$@" "$arg" ;;
- esac
- shift # fnord
- shift # $arg
- done
- "$@"
- stat=$?
- if test $stat -eq 0; then :
- else
- rm -f "$tmpdepfile"
- exit $stat
- fi
- mv "$tmpdepfile" "$depfile"
- ;;
-
-gcc)
-## There are various ways to get dependency output from gcc. Here's
-## why we pick this rather obscure method:
-## - Don't want to use -MD because we'd like the dependencies to end
-## up in a subdir. Having to rename by hand is ugly.
-## (We might end up doing this anyway to support other compilers.)
-## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
-## -MM, not -M (despite what the docs say).
-## - Using -M directly means running the compiler twice (even worse
-## than renaming).
- if test -z "$gccflag"; then
- gccflag=-MD,
- fi
- "$@" -Wp,"$gccflag$tmpdepfile"
- stat=$?
- if test $stat -eq 0; then :
- else
- rm -f "$tmpdepfile"
- exit $stat
- fi
- rm -f "$depfile"
- echo "$object : \\" > "$depfile"
- alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
-## The second -e expression handles DOS-style file names with drive letters.
- sed -e 's/^[^:]*: / /' \
- -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
-## This next piece of magic avoids the `deleted header file' problem.
-## The problem is that when a header file which appears in a .P file
-## is deleted, the dependency causes make to die (because there is
-## typically no way to rebuild the header). We avoid this by adding
-## dummy dependencies for each header file. Too bad gcc doesn't do
-## this for us directly.
- tr ' ' '
-' < "$tmpdepfile" |
-## Some versions of gcc put a space before the `:'. On the theory
-## that the space means something, we add a space to the output as
-## well.
-## Some versions of the HPUX 10.20 sed can't process this invocation
-## correctly. Breaking it into two sed invocations is a workaround.
- sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
- rm -f "$tmpdepfile"
- ;;
-
-hp)
- # This case exists only to let depend.m4 do its work. It works by
- # looking at the text of this script. This case will never be run,
- # since it is checked for above.
- exit 1
- ;;
-
-sgi)
- if test "$libtool" = yes; then
- "$@" "-Wp,-MDupdate,$tmpdepfile"
- else
- "$@" -MDupdate "$tmpdepfile"
- fi
- stat=$?
- if test $stat -eq 0; then :
- else
- rm -f "$tmpdepfile"
- exit $stat
- fi
- rm -f "$depfile"
-
- if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
- echo "$object : \\" > "$depfile"
-
- # Clip off the initial element (the dependent). Don't try to be
- # clever and replace this with sed code, as IRIX sed won't handle
- # lines with more than a fixed number of characters (4096 in
- # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
- # the IRIX cc adds comments like `#:fec' to the end of the
- # dependency line.
- tr ' ' '
-' < "$tmpdepfile" \
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Cfg/install-sh
^
|
@@ -1,520 +0,0 @@
-#!/bin/sh
-# install - install a program, script, or datafile
-
-scriptversion=2009-04-28.21; # UTC
-
-# This originates from X11R5 (mit/util/scripts/install.sh), which was
-# later released in X11R6 (xc/config/util/install.sh) with the
-# following copyright and license.
-#
-# Copyright (C) 1994 X Consortium
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to
-# deal in the Software without restriction, including without limitation the
-# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-# sell copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
-# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
-# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#
-# Except as contained in this notice, the name of the X Consortium shall not
-# be used in advertising or otherwise to promote the sale, use or other deal-
-# ings in this Software without prior written authorization from the X Consor-
-# tium.
-#
-#
-# FSF changes to this file are in the public domain.
-#
-# Calling this script install-sh is preferred over install.sh, to prevent
-# `make' implicit rules from creating a file called install from it
-# when there is no Makefile.
-#
-# This script is compatible with the BSD install script, but was written
-# from scratch.
-
-nl='
-'
-IFS=" "" $nl"
-
-# set DOITPROG to echo to test this script
-
-# Don't use :- since 4.3BSD and earlier shells don't like it.
-doit=${DOITPROG-}
-if test -z "$doit"; then
- doit_exec=exec
-else
- doit_exec=$doit
-fi
-
-# Put in absolute file names if you don't have them in your path;
-# or use environment vars.
-
-chgrpprog=${CHGRPPROG-chgrp}
-chmodprog=${CHMODPROG-chmod}
-chownprog=${CHOWNPROG-chown}
-cmpprog=${CMPPROG-cmp}
-cpprog=${CPPROG-cp}
-mkdirprog=${MKDIRPROG-mkdir}
-mvprog=${MVPROG-mv}
-rmprog=${RMPROG-rm}
-stripprog=${STRIPPROG-strip}
-
-posix_glob='?'
-initialize_posix_glob='
- test "$posix_glob" != "?" || {
- if (set -f) 2>/dev/null; then
- posix_glob=
- else
- posix_glob=:
- fi
- }
-'
-
-posix_mkdir=
-
-# Desired mode of installed file.
-mode=0755
-
-chgrpcmd=
-chmodcmd=$chmodprog
-chowncmd=
-mvcmd=$mvprog
-rmcmd="$rmprog -f"
-stripcmd=
-
-src=
-dst=
-dir_arg=
-dst_arg=
-
-copy_on_change=false
-no_target_directory=
-
-usage="\
-Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
- or: $0 [OPTION]... SRCFILES... DIRECTORY
- or: $0 [OPTION]... -t DIRECTORY SRCFILES...
- or: $0 [OPTION]... -d DIRECTORIES...
-
-In the 1st form, copy SRCFILE to DSTFILE.
-In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
-In the 4th, create DIRECTORIES.
-
-Options:
- --help display this help and exit.
- --version display version info and exit.
-
- -c (ignored)
- -C install only if different (preserve the last data modification time)
- -d create directories instead of installing files.
- -g GROUP $chgrpprog installed files to GROUP.
- -m MODE $chmodprog installed files to MODE.
- -o USER $chownprog installed files to USER.
- -s $stripprog installed files.
- -t DIRECTORY install into DIRECTORY.
- -T report an error if DSTFILE is a directory.
-
-Environment variables override the default commands:
- CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
- RMPROG STRIPPROG
-"
-
-while test $# -ne 0; do
- case $1 in
- -c) ;;
-
- -C) copy_on_change=true;;
-
- -d) dir_arg=true;;
-
- -g) chgrpcmd="$chgrpprog $2"
- shift;;
-
- --help) echo "$usage"; exit $?;;
-
- -m) mode=$2
- case $mode in
- *' '* | *' '* | *'
-'* | *'*'* | *'?'* | *'['*)
- echo "$0: invalid mode: $mode" >&2
- exit 1;;
- esac
- shift;;
-
- -o) chowncmd="$chownprog $2"
- shift;;
-
- -s) stripcmd=$stripprog;;
-
- -t) dst_arg=$2
- shift;;
-
- -T) no_target_directory=true;;
-
- --version) echo "$0 $scriptversion"; exit $?;;
-
- --) shift
- break;;
-
- -*) echo "$0: invalid option: $1" >&2
- exit 1;;
-
- *) break;;
- esac
- shift
-done
-
-if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
- # When -d is used, all remaining arguments are directories to create.
- # When -t is used, the destination is already specified.
- # Otherwise, the last argument is the destination. Remove it from $@.
- for arg
- do
- if test -n "$dst_arg"; then
- # $@ is not empty: it contains at least $arg.
- set fnord "$@" "$dst_arg"
- shift # fnord
- fi
- shift # arg
- dst_arg=$arg
- done
-fi
-
-if test $# -eq 0; then
- if test -z "$dir_arg"; then
- echo "$0: no input file specified." >&2
- exit 1
- fi
- # It's OK to call `install-sh -d' without argument.
- # This can happen when creating conditional directories.
- exit 0
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Cfg/ltmain.sh
^
|
@@ -1,11156 +0,0 @@
-#! /bin/sh
-## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
-## by inline-source v2014-01-03.01
-
-# libtool (GNU libtool) 2.4.6
-# Provide generalized library-building support services.
-# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
-
-# Copyright (C) 1996-2015 Free Software Foundation, Inc.
-# This is free software; see the source for copying conditions. There is NO
-# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-# GNU Libtool 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.
-#
-# As a special exception to the GNU General Public License,
-# if you distribute this file as part of a program or library that
-# is built using GNU Libtool, you may include this file under the
-# same distribution terms that you use for the rest of that program.
-#
-# GNU Libtool 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 program. If not, see <http://www.gnu.org/licenses/>.
-
-
-PROGRAM=libtool
-PACKAGE=libtool
-VERSION="2.4.6 Debian-2.4.6-2"
-package_revision=2.4.6
-
-
-## ------ ##
-## Usage. ##
-## ------ ##
-
-# Run './libtool --help' for help with using this script from the
-# command line.
-
-
-## ------------------------------- ##
-## User overridable command paths. ##
-## ------------------------------- ##
-
-# After configure completes, it has a better idea of some of the
-# shell tools we need than the defaults used by the functions shared
-# with bootstrap, so set those here where they can still be over-
-# ridden by the user, but otherwise take precedence.
-
-: ${AUTOCONF="autoconf"}
-: ${AUTOMAKE="automake"}
-
-
-## -------------------------- ##
-## Source external libraries. ##
-## -------------------------- ##
-
-# Much of our low-level functionality needs to be sourced from external
-# libraries, which are installed to $pkgauxdir.
-
-# Set a version string for this script.
-scriptversion=2015-01-20.17; # UTC
-
-# General shell script boiler plate, and helper functions.
-# Written by Gary V. Vaughan, 2004
-
-# Copyright (C) 2004-2015 Free Software Foundation, Inc.
-# This is free software; see the source for copying conditions. There is NO
-# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-# This program 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 3 of the License, or
-# (at your option) any later version.
-
-# As a special exception to the GNU General Public License, if you distribute
-# this file as part of a program or library that is built using GNU Libtool,
-# you may include this file under the same distribution terms that you use
-# for the rest of that program.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNES 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 program. If not, see <http://www.gnu.org/licenses/>.
-
-# Please report bugs or propose patches to gary@gnu.org.
-
-
-## ------ ##
-## Usage. ##
-## ------ ##
-
-# Evaluate this file near the top of your script to gain access to
-# the functions and variables defined here:
-#
-# . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh
-#
-# If you need to override any of the default environment variable
-# settings, do that before evaluating this file.
-
-
-## -------------------- ##
-## Shell normalisation. ##
-## -------------------- ##
-
-# Some shells need a little help to be as Bourne compatible as possible.
-# Before doing anything else, make sure all that help has been provided!
-
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '${1+"$@"}'='"$@"'
- setopt NO_GLOB_SUBST
-else
- case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
-fi
-
-# NLS nuisances: We save the old values in case they are required later.
-_G_user_locale=
-_G_safe_locale=
-for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
-do
- eval "if test set = \"\${$_G_var+set}\"; then
- save_$_G_var=\$$_G_var
- $_G_var=C
- export $_G_var
- _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\"
- _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\"
- fi"
-done
-
-# CDPATH.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-# Make sure IFS has a sensible default
-sp=' '
-nl='
-'
-IFS="$sp $nl"
-
-# There are apparently some retarded systems that use ';' as a PATH separator!
-if test "${PATH_SEPARATOR+set}" != set; then
- PATH_SEPARATOR=:
- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
- PATH_SEPARATOR=';'
- }
-fi
-
-
-
-## ------------------------- ##
-## Locate command utilities. ##
-## ------------------------- ##
-
-
-# func_executable_p FILE
-# ----------------------
-# Check that FILE is an executable regular file.
-func_executable_p ()
-{
- test -f "$1" && test -x "$1"
-}
-
-
-# func_path_progs PROGS_LIST CHECK_FUNC [PATH]
-# --------------------------------------------
-# Search for either a program that responds to --version with output
-# containing "GNU", or else returned by CHECK_FUNC otherwise, by
-# trying all the directories in PATH with each of the elements of
-# PROGS_LIST.
-#
-# CHECK_FUNC should accept the path to a candidate program, and
-# set $func_check_prog_result if it truncates its output less than
-# $_G_path_prog_max characters.
-func_path_progs ()
-{
- _G_progs_list=$1
- _G_check_func=$2
- _G_PATH=${3-"$PATH"}
-
- _G_path_prog_max=0
- _G_path_prog_found=false
- _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
- for _G_dir in $_G_PATH; do
- IFS=$_G_save_IFS
- test -z "$_G_dir" && _G_dir=.
- for _G_prog_name in $_G_progs_list; do
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Cfg/missing
^
|
@@ -1,376 +0,0 @@
-#! /bin/sh
-# Common stub for a few missing GNU programs while installing.
-
-scriptversion=2009-04-28.21; # UTC
-
-# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
-# 2008, 2009 Free Software Foundation, Inc.
-# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
-
-# This program 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, or (at your option)
-# any later version.
-
-# This program 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 program. If not, see <http://www.gnu.org/licenses/>.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-if test $# -eq 0; then
- echo 1>&2 "Try \`$0 --help' for more information"
- exit 1
-fi
-
-run=:
-sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
-sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
-
-# In the cases where this matters, `missing' is being run in the
-# srcdir already.
-if test -f configure.ac; then
- configure_ac=configure.ac
-else
- configure_ac=configure.in
-fi
-
-msg="missing on your system"
-
-case $1 in
---run)
- # Try to run requested program, and just exit if it succeeds.
- run=
- shift
- "$@" && exit 0
- # Exit code 63 means version mismatch. This often happens
- # when the user try to use an ancient version of a tool on
- # a file that requires a minimum version. In this case we
- # we should proceed has if the program had been absent, or
- # if --run hadn't been passed.
- if test $? = 63; then
- run=:
- msg="probably too old"
- fi
- ;;
-
- -h|--h|--he|--hel|--help)
- echo "\
-$0 [OPTION]... PROGRAM [ARGUMENT]...
-
-Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
-error status if there is no known handling for PROGRAM.
-
-Options:
- -h, --help display this help and exit
- -v, --version output version information and exit
- --run try to run the given command, and emulate it if it fails
-
-Supported PROGRAM values:
- aclocal touch file \`aclocal.m4'
- autoconf touch file \`configure'
- autoheader touch file \`config.h.in'
- autom4te touch the output file, or create a stub one
- automake touch all \`Makefile.in' files
- bison create \`y.tab.[ch]', if possible, from existing .[ch]
- flex create \`lex.yy.c', if possible, from existing .c
- help2man touch the output file
- lex create \`lex.yy.c', if possible, from existing .c
- makeinfo touch the output file
- tar try tar, gnutar, gtar, then tar without non-portable flags
- yacc create \`y.tab.[ch]', if possible, from existing .[ch]
-
-Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
-\`g' are ignored when checking the name.
-
-Send bug reports to <bug-automake@gnu.org>."
- exit $?
- ;;
-
- -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
- echo "missing $scriptversion (GNU Automake)"
- exit $?
- ;;
-
- -*)
- echo 1>&2 "$0: Unknown \`$1' option"
- echo 1>&2 "Try \`$0 --help' for more information"
- exit 1
- ;;
-
-esac
-
-# normalize program name to check for.
-program=`echo "$1" | sed '
- s/^gnu-//; t
- s/^gnu//; t
- s/^g//; t'`
-
-# Now exit if we have it, but it failed. Also exit now if we
-# don't have it and --version was passed (most likely to detect
-# the program). This is about non-GNU programs, so use $1 not
-# $program.
-case $1 in
- lex*|yacc*)
- # Not GNU programs, they don't have --version.
- ;;
-
- tar*)
- if test -n "$run"; then
- echo 1>&2 "ERROR: \`tar' requires --run"
- exit 1
- elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
- exit 1
- fi
- ;;
-
- *)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
- # Could not run --version or --help. This is probably someone
- # running `$TOOL --version' or `$TOOL --help' to check whether
- # $TOOL exists and not knowing $TOOL uses missing.
- exit 1
- fi
- ;;
-esac
-
-# If it does not exist, or fails to run (possibly an outdated version),
-# try to emulate it.
-case $program in
- aclocal*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`acinclude.m4' or \`${configure_ac}'. You might want
- to install the \`Automake' and \`Perl' packages. Grab them from
- any GNU archive site."
- touch aclocal.m4
- ;;
-
- autoconf*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`${configure_ac}'. You might want to install the
- \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
- archive site."
- touch configure
- ;;
-
- autoheader*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`acconfig.h' or \`${configure_ac}'. You might want
- to install the \`Autoconf' and \`GNU m4' packages. Grab them
- from any GNU archive site."
- files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
- test -z "$files" && files="config.h"
- touch_files=
- for f in $files; do
- case $f in
- *:*) touch_files="$touch_files "`echo "$f" |
- sed -e 's/^[^:]*://' -e 's/:.*//'`;;
- *) touch_files="$touch_files $f.in";;
- esac
- done
- touch $touch_files
- ;;
-
- automake*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
- You might want to install the \`Automake' and \`Perl' packages.
- Grab them from any GNU archive site."
- find . -type f -name Makefile.am -print |
- sed 's/\.am$/.in/' |
- while read f; do touch "$f"; done
- ;;
-
- autom4te*)
- echo 1>&2 "\
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/ChangeLog
^
|
@@ -1,1181 +0,0 @@
-2013-03-29 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/src_sinc.c
- Fix a read beyond end of coefficent array problem uncovered by gcc-4.8's
- -fsanitize=address feature and reported by Cristian RodrÃguez.
-
- Since this is reading filter coefficients from rodata memory and no write
- is possible, is is not exploitable from a security point of view.
-
- Solution was to reduce the half_coeff_len value for each filter by one.
-
-2013-01-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/samplerate.h src/common.h
- Make SRC_DATA const correct. Thanks to Nikos Chantziaras for the suggestion.
-
-2012-10-07 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * examples/sndfile-resample.c
- Add a --no-normalize cmd line option. Thanks to Adriano Moura for the
- patch.
-
-2012-09-28 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * tests/varispeed_test.c
- FIx compile error.
-
-2012-08-27 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/common.h src/samplerate.c
- Add SRC_ERR_BAD_INTERNAL_STATE error number and string.
- Move function is_bad_src_ratio() to common.h.
-
- * src/src_linear.c src/src_sinc.c src/src_zoh.c
- Validate internally stashed src_ratio value.
-
-2012-08-23 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * tests/multi_channel_test.c tests/snr_bw_test.c tests/varispeed_test.c
- Use fftw_cleanup() to remove all memory leaks reported by valgrind.
-
- * doc/license.html
- Specify GPLv2 or GPLv3.
-
-2012-08-22 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/src_sinc.c
- Cleanup calculation of float_increment.
-
-2012-03-11 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/samplerate.c
- Fix error message for error SRC_ERR_BAD_DATA_PTR. Thanks for oneman in
- #xiph on Freenode.
-
- * examples/audio_out.c
- Minor tweaks to Windows and OSX code.
-
-2011-11-05 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/samplerate.h
- Removed unused typedef struct SRC_CB_DATA.
-
- * examples/varispeed-play.c
- Rewrite to use the callback version of the API. This new version is far
- simpler and far easier to understand.
-
-2011-11-02 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * configure.ac examples/Makefile.am
- Detect ALSA and use it in varispeed-play.
-
- * examples/audio_out.[ch]
- On Linux used ALSA instead of OSS when available.
-
- * src/samplerate.c src/src_linear.c src/src_zoh.c \
- examples/sndfile-resample.c examples/timewarp-file.c
- Fix warnings from the Goanna static analysis tool.
-
-2011-08-15 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * configure.ac
- Add symbol support for kfreebsd-*-gnu-*.
-
- * configure.ac doc/Makefile.am
- Improve installation of html docs.
-
- * examples/audio_out.c tests/callback_hang_test.c
- Fix compiler warnings.
-
- * NEWS README Win32/config.h doc/*.html
- Updates for 0.1.8 release.
-
- * configure.ac
- Release 0.1.8.
-
-2011-02-22 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * tests/util.[ch]
- Rename function print_cpu_name() to get_cpu_name(). Add code for Mac OSX and
- FreeBSD.
-
- * tests/multichan_throughput_test.c tests/throughput_test.c
- Update to use get_cpu_name().
-
-2010-11-04 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/*.[ch]
- Fix typo in comments.
-
-2010-10-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/fastest_coeffs.h src/high_qual_coeffs.h src/mid_qual_coeffs.h
- Fix typo in comments.
-
- * configure.ac
- Add AM_SILENT_RULES.
-
- * doc/download.html
- Add a GPG signature.
-
-2010-09-27 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/float_cast.h
- Add lrint/lrintf version for Win64. Thanks to Dmitry Baikov.
-
-2010-01-10 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * examples/sndfile-resample.c
- Prevent creation of double length output files when conversion is restarted
- due to clipping of the output when the format is FLAC. This problem arises
- due to libsndfile's in ability to seek in a FLAC file during write.
-
- * src/samplerate.h tests/termination_test.c
- Revert change that moved the src_ratio field to the start of SRC_DATA
- struct. This change does have some merit, but is not worth it considering
- that its an API change. This idea will be reconsidered when the API does
- change.
-
-2009-12-01 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * doc/win32.html
- Update instructions.
-
- * Win32/Makefile.msvc
- Add /Zm200 to CFLAGS.
-
-2009-11-29 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/common.h
- Add macro UNUSED for marking function parameters as unused.
-
-2009-10-07 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * tests/misc_test.c
- Add zero_input_test() from debian bug #506722.
-
- * src/src_linear.c src/src_zoh.c
- Fix for bug in zero_input_test(). Both these converters crashed if the
- input_frames field of SRC_DATA was zero.
-
-2009-09-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * M4/endian.m4
- Fix detection of CPU endian-ness when cross compiling.
-
-2009-08-24 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * tests/termination_test.c
- Add test to detect a particular kind of termination error.
-
- * src/src_sinc.c
- Fix a termination condition bug.
-
-2009-06-25 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/samplerate.h
- Change definition of SRC_STATE to be kinder to some slightly broken
- compilers. Thanks to Rob Brown for suggesting this fix.
-
-2009-04-11 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * M4/check_signal.m4 M4/clip_mode.m4 M4/lrint.m4 M4/lrintf.m4
- New files used instead of acinclude.m4.
-
-2009-04-03 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/samplerate.h
- Move src_ratio field to the start of the SRC_DATA struct to ensure it gets
- aligned correctly when either the library or client code gets compiled with
- -malign-double.
-
- * configure.ac
- Bump version to 1.0.0 due to API change.
-
-2009-02-26 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * Win32/Makefile.msvc
- Add /Zm1000 to the CFLAGS as suggested by Kun Niu.
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/INSTALL
^
|
@@ -1,117 +0,0 @@
-Install Instructions for libsamplerate
-======================================
-
-The following instructions explain how to install libsamplerate under
-Linux and other Unix like systems including Mac OSX. (For windows,
-see http://www.mega-nerd.com/SRC/win32.html).
-
-Preliminaries
--------------
-1) Included with libsamplerate is a command line program named
- sndfile-resample which uses libnsdile:
-
- http://www.mega-nerd.com/libsndfile/
-
- for file I/O. If you want to use sndfile-resample you need to
- ensure that libsndfile is correctly installed first. If it is, the
- command "pkg-config --cflags --libs sndfile" should print out
- something like this:
-
- -lsndfile
-
- If pkg-config doesn't exist you will need need to install it. If
- pkg-config cannot find libsndfile you may need install it. If you
- install from from a Linux distribution package, make sure you also
- install the libsndfile-devel package which contains the header files.
-
- If libsndfile is installed, you may need to set the PKG_CONFIG_PATH
- environment variable. If libsndfile is installed in /usr/local/lib,
- you will need to set PKG_CONFIG_PATH using:
-
- export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
-
- Pkg-config should now work. If it doesn't you need to fix it if you
- want to use sndfile-resample.
-
-2) The included tests suite for libsamplerate needs libfftw3 which is
- available here:
-
- http://www.fftw.org/
-
- If FFTW3 is not available, libsamplerate should still compile and
- install without problems but the test suite will not be as
- comprehensive as it normally is.
-
-Building
---------
-Building and verifying libsamplerate is a four or five step process.
-
-1) The first step is to run configure
-
- ./configure
-
- which should print out something like the following:
-
- checking build system type...
- ...
- ...
- -=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
-
- Configuration summary :
-
- Version : ..................... X.Y.Z
- Enable debugging : ............ no
-
- Tools :
-
- Compiler is GCC : ............. yes
- GCC major version : ........... 3
-
- Extra tools required for testing and examples :
-
- Use FFTW : .................... yes
- Have libsndfile : ............. yes
-
- Installation directories :
-
- Library directory : ........... /usr/local/lib
- Program directory : ........... /usr/local/bin
- Pkgconfig directory : ......... /usr/local/lib/pkgconfig
-
- Compiling some other packages against libsamplerate may require
- the addition of "/usr/local/lib/pkgconfig" to the
- PKG_CONFIG_PATH environment variable.
-
- There are a number of configure options. See the output of
- configure when run with the --help command line option.
-
-2) If all goes well with the above then compiling the library can be
- done with
-
- make
-
-3) When that has finished, the test suite can be run using:
-
- make check
-
-4) The final step is to install the library. This step needs to be
- carried out as the root user (or with sudo):
-
- make install
-
- This command will by default install the library in the directory
- /usr/local/lib. It can in installed in other location by using the
- --prefix option in step 1).
-
-5) On linux, one more step is required, the registering of the library
- with the system. This is done by running the following command
- (also as the root user):
-
- ldconfig -v
-
-As a final test, you can run
-
- sndfile-resample
-
-to make sure everything is installed correctly.
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/M4
^
|
-(directory)
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/M4/Makefile.am
^
|
@@ -1,4 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-EXTRA_DIST = add_cflags.m4 endian.m4
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/M4/Makefile.in
^
|
@@ -1,469 +0,0 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-am__is_gnu_make = { \
- if test -z '$(MAKELEVEL)'; then \
- false; \
- elif test -n '$(MAKE_HOST)'; then \
- true; \
- elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
- true; \
- else \
- false; \
- fi; \
-}
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = M4
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/M4/check_signal.m4 \
- $(top_srcdir)/M4/clip_mode.m4 $(top_srcdir)/M4/endian.m4 \
- $(top_srcdir)/M4/libtool.m4 $(top_srcdir)/M4/lrint.m4 \
- $(top_srcdir)/M4/lrintf.m4 $(top_srcdir)/M4/ltoptions.m4 \
- $(top_srcdir)/M4/ltsugar.m4 $(top_srcdir)/M4/ltversion.m4 \
- $(top_srcdir)/M4/lt~obsolete.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/src/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-SOURCES =
-DIST_SOURCES =
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-am__DIST_COMMON = $(srcdir)/Makefile.in
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@
-ALSA_LIBS = @ALSA_LIBS@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-COMPILER_IS_GCC = @COMPILER_IS_GCC@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DLLWRAP = @DLLWRAP@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FFTW3_CFLAGS = @FFTW3_CFLAGS@
-FFTW3_LIBS = @FFTW3_LIBS@
-FGREP = @FGREP@
-GCC_MAJOR_VERSION = @GCC_MAJOR_VERSION@
-GREP = @GREP@
-HAVE_FFTW3 = @HAVE_FFTW3@
-HAVE_SNDFILE = @HAVE_SNDFILE@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OS_SPECIFIC_INCLUDES = @OS_SPECIFIC_INCLUDES@
-OS_SPECIFIC_LINKS = @OS_SPECIFIC_LINKS@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/M4/add_cflags.m4
^
|
@@ -1,17 +0,0 @@
-dnl @synopsis AC_ADD_CFLAGS
-dnl
-dnl Add the given option to CFLAGS, if it doesn't break the compiler
-
-AC_DEFUN([AC_ADD_CFLAGS],
-[AC_MSG_CHECKING([if $CC accepts $1])
- ac_add_cflags__old_cflags="$CFLAGS"
- CFLAGS="$CFLAGS $1"
- AC_TRY_LINK([
- #include <stdio.h>
- ],
- [puts("Hello, World!"); return 0;],
- AC_MSG_RESULT([yes]),
- AC_MSG_RESULT([no])
- CFLAGS="$ac_add_cflags__old_cflags"
- )
-])# AC_ADD_CFLAGS
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/M4/check_signal.m4
^
|
@@ -1,26 +0,0 @@
-dnl @synopsis AC_CHECK_SIGNAL(SIGNAME)
-dnl
-dnl
-dnl @category C
-dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-dnl @version 1.0 Jul 07 2007
-
-AC_DEFUN([AC_CHECK_SIGNAL],
-[AC_CACHE_CHECK(for $1,
- ac_cv_signal_$1,
-[
-AC_TRY_LINK([
-#include <signal.h>
-
-], signal($1, SIG_DFL) ;, ac_cv_signal_$1=yes, ac_cv_signal_$1=no)
-
-])
-
-if test "$ac_cv_signal_$1" = yes; then
- AC_DEFINE(HAVE_$1, 1,
- [Define if you have signal $1.])
-fi
-])# AC_CHECK_SIGNAL
-
-
-## AC_CHECK_SIGNALS
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/M4/clip_mode.m4
^
|
@@ -1,124 +0,0 @@
-dnl @synopsis AC_C_CLIP_MODE
-dnl
-dnl Determine the clipping mode when converting float to int.
-dnl @version 1.0 May 17 2003
-dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-dnl
-dnl Permission to use, copy, modify, distribute, and sell this file for any
-dnl purpose is hereby granted without fee, provided that the above copyright
-dnl and this permission notice appear in all copies. No representations are
-dnl made about the suitability of this software for any purpose. It is
-dnl provided "as is" without express or implied warranty.
-
-
-
-
-
-
-
-dnl Find the clipping mode in the following way:
-dnl 1) If we are not cross compiling test it.
-dnl 2) IF we are cross compiling, assume that clipping isn't done correctly.
-
-AC_DEFUN([AC_C_CLIP_MODE],
-[AC_CACHE_CHECK(processor clipping capabilities,
- ac_cv_c_clip_type,
-
-# Initialize to unknown
-ac_cv_c_clip_positive=unknown
-ac_cv_c_clip_negative=unknown
-
-
-if test $ac_cv_c_clip_positive = unknown ; then
- AC_TRY_RUN(
- [[
- #define _ISOC9X_SOURCE 1
- #define _ISOC99_SOURCE 1
- #define __USE_ISOC99 1
- #define __USE_ISOC9X 1
- #include <math.h>
- int main (void)
- { double fval ;
- int k, ival ;
-
- fval = 1.0 * 0x7FFFFFFF ;
- for (k = 0 ; k < 100 ; k++)
- { ival = (lrint (fval)) >> 24 ;
- if (ival != 127)
- return 1 ;
-
- fval *= 1.2499999 ;
- } ;
-
- return 0 ;
- }
- ]],
- ac_cv_c_clip_positive=yes,
- ac_cv_c_clip_positive=no,
- ac_cv_c_clip_positive=unknown
- )
-
- AC_TRY_RUN(
- [[
- #define _ISOC9X_SOURCE 1
- #define _ISOC99_SOURCE 1
- #define __USE_ISOC99 1
- #define __USE_ISOC9X 1
- #include <math.h>
- int main (void)
- { double fval ;
- int k, ival ;
-
- fval = -8.0 * 0x10000000 ;
- for (k = 0 ; k < 100 ; k++)
- { ival = (lrint (fval)) >> 24 ;
- if (ival != -128)
- return 1 ;
-
- fval *= 1.2499999 ;
- } ;
-
- return 0 ;
- }
- ]],
- ac_cv_c_clip_negative=yes,
- ac_cv_c_clip_negative=no,
- ac_cv_c_clip_negative=unknown
- )
- fi
-
-if test $ac_cv_c_clip_positive = yes ; then
- ac_cv_c_clip_positive=1
-else
- ac_cv_c_clip_positive=0
- fi
-
-if test $ac_cv_c_clip_negative = yes ; then
- ac_cv_c_clip_negative=1
-else
- ac_cv_c_clip_negative=0
- fi
-
-[[
-case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
- "00")
- ac_cv_c_clip_type="none"
- ;;
- "10")
- ac_cv_c_clip_type="positive"
- ;;
- "01")
- ac_cv_c_clip_type="negative"
- ;;
- "11")
- ac_cv_c_clip_type="both"
- ;;
- esac
- ]]
-
-)
-]
-
-)# AC_C_CLIP_MODE
-
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/M4/endian.m4
^
|
@@ -1,155 +0,0 @@
-dnl @synopsis AC_C_FIND_ENDIAN
-dnl
-dnl Determine endian-ness of target processor.
-dnl @version 1.1 Mar 03 2002
-dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-dnl
-dnl Majority written from scratch to replace the standard autoconf macro
-dnl AC_C_BIGENDIAN. Only part remaining from the original it the invocation
-dnl of the AC_TRY_RUN macro.
-dnl
-dnl Permission to use, copy, modify, distribute, and sell this file for any
-dnl purpose is hereby granted without fee, provided that the above copyright
-dnl and this permission notice appear in all copies. No representations are
-dnl made about the suitability of this software for any purpose. It is
-dnl provided "as is" without express or implied warranty.
-
-dnl Find endian-ness in the following way:
-dnl 1) Look in <endian.h>.
-dnl 2) If 1) fails, look in <sys/types.h> and <sys/param.h>.
-dnl 3) If 1) and 2) fails and not cross compiling run a test program.
-dnl 4) If 1) and 2) fails and cross compiling then guess based on target.
-
-AC_DEFUN([AC_C_FIND_ENDIAN],
-[AC_CACHE_CHECK(processor byte ordering,
- ac_cv_c_byte_order,
-
-# Initialize to unknown
-ac_cv_c_byte_order=unknown
-
-if test x$ac_cv_header_endian_h = xyes ; then
-
- # First try <endian.h> which should set BYTE_ORDER.
-
- [AC_TRY_LINK([
- #include <endian.h>
- #if BYTE_ORDER != LITTLE_ENDIAN
- not big endian
- #endif
- ], return 0 ;,
- ac_cv_c_byte_order=little
- )]
-
- [AC_TRY_LINK([
- #include <endian.h>
- #if BYTE_ORDER != BIG_ENDIAN
- not big endian
- #endif
- ], return 0 ;,
- ac_cv_c_byte_order=big
- )]
-
- fi
-
-if test $ac_cv_c_byte_order = unknown ; then
-
- [AC_TRY_LINK([
- #include <sys/types.h>
- #include <sys/param.h>
- #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
- bogus endian macros
- #endif
- ], return 0 ;,
-
- [AC_TRY_LINK([
- #include <sys/types.h>
- #include <sys/param.h>
- #if BYTE_ORDER != LITTLE_ENDIAN
- not big endian
- #endif
- ], return 0 ;,
- ac_cv_c_byte_order=little
- )]
-
- [AC_TRY_LINK([
- #include <sys/types.h>
- #include <sys/param.h>
- #if BYTE_ORDER != LITTLE_ENDIAN
- not big endian
- #endif
- ], return 0 ;,
- ac_cv_c_byte_order=little
- )]
-
- )]
-
- fi
-
-if test $ac_cv_c_byte_order = unknown ; then
- if test $cross_compiling = yes ; then
- # This is the last resort. Try to guess the target processor endian-ness
- # by looking at the target CPU type.
- [
- case "$target_cpu" in
- alpha* | i?86* | mipsel* | ia64*)
- ac_cv_c_byte_order=little
- ;;
-
- m68* | mips* | powerpc* | hppa* | sparc*)
- ac_cv_c_byte_order=big
- ;;
-
- esac
- ]
- else
- AC_TRY_RUN(
- [[
- int main (void)
- { /* Are we little or big endian? From Harbison&Steele. */
- union
- { long l ;
- char c [sizeof (long)] ;
- } u ;
- u.l = 1 ;
- return (u.c [sizeof (long) - 1] == 1);
- }
- ]], , ac_cv_c_byte_order=big,
- )
-
- AC_TRY_RUN(
- [[int main (void)
- { /* Are we little or big endian? From Harbison&Steele. */
- union
- { long l ;
- char c [sizeof (long)] ;
- } u ;
- u.l = 1 ;
- return (u.c [0] == 1);
- }]], , ac_cv_c_byte_order=little,
- )
- fi
- fi
-
-)
-
-if test $ac_cv_c_byte_order = big ; then
- ac_cv_c_big_endian=1
- ac_cv_c_little_endian=0
-elif test $ac_cv_c_byte_order = little ; then
- ac_cv_c_big_endian=0
- ac_cv_c_little_endian=1
-else
- ac_cv_c_big_endian=0
- ac_cv_c_little_endian=0
-
- AC_MSG_WARN([[*****************************************************************]])
- AC_MSG_WARN([[*** Not able to determine endian-ness of target processor. ]])
- AC_MSG_WARN([[*** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in ]])
- AC_MSG_WARN([[*** src/config.h may need to be hand editied. ]])
- AC_MSG_WARN([[*****************************************************************]])
- fi
-
-]
-)# AC_C_FIND_ENDIAN
-
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/M4/libtool.m4
^
|
@@ -1,8387 +0,0 @@
-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
-#
-# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
-# Written by Gordon Matzigkeit, 1996
-#
-# This file is free software; the Free Software Foundation gives
-# unlimited permission to copy and/or distribute it, with or without
-# modifications, as long as this notice is preserved.
-
-m4_define([_LT_COPYING], [dnl
-# Copyright (C) 2014 Free Software Foundation, Inc.
-# This is free software; see the source for copying conditions. There is NO
-# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-# GNU Libtool 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 of the License, or
-# (at your option) any later version.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program or library that is built
-# using GNU Libtool, you may include this file under the same
-# distribution terms that you use for the rest of that program.
-#
-# GNU Libtool 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 program. If not, see <http://www.gnu.org/licenses/>.
-])
-
-# serial 58 LT_INIT
-
-
-# LT_PREREQ(VERSION)
-# ------------------
-# Complain and exit if this libtool version is less that VERSION.
-m4_defun([LT_PREREQ],
-[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
- [m4_default([$3],
- [m4_fatal([Libtool version $1 or higher is required],
- 63)])],
- [$2])])
-
-
-# _LT_CHECK_BUILDDIR
-# ------------------
-# Complain if the absolute build directory name contains unusual characters
-m4_defun([_LT_CHECK_BUILDDIR],
-[case `pwd` in
- *\ * | *\ *)
- AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
-esac
-])
-
-
-# LT_INIT([OPTIONS])
-# ------------------
-AC_DEFUN([LT_INIT],
-[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
-AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
-AC_BEFORE([$0], [LT_LANG])dnl
-AC_BEFORE([$0], [LT_OUTPUT])dnl
-AC_BEFORE([$0], [LTDL_INIT])dnl
-m4_require([_LT_CHECK_BUILDDIR])dnl
-
-dnl Autoconf doesn't catch unexpanded LT_ macros by default:
-m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
-m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
-dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
-dnl unless we require an AC_DEFUNed macro:
-AC_REQUIRE([LTOPTIONS_VERSION])dnl
-AC_REQUIRE([LTSUGAR_VERSION])dnl
-AC_REQUIRE([LTVERSION_VERSION])dnl
-AC_REQUIRE([LTOBSOLETE_VERSION])dnl
-m4_require([_LT_PROG_LTMAIN])dnl
-
-_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
-
-dnl Parse OPTIONS
-_LT_SET_OPTIONS([$0], [$1])
-
-# This can be used to rebuild libtool when needed
-LIBTOOL_DEPS=$ltmain
-
-# Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-AC_SUBST(LIBTOOL)dnl
-
-_LT_SETUP
-
-# Only expand once:
-m4_define([LT_INIT])
-])# LT_INIT
-
-# Old names:
-AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
-AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
-dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
-
-
-# _LT_PREPARE_CC_BASENAME
-# -----------------------
-m4_defun([_LT_PREPARE_CC_BASENAME], [
-# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
-func_cc_basename ()
-{
- for cc_temp in @S|@*""; do
- case $cc_temp in
- compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
- distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
- \-*) ;;
- *) break;;
- esac
- done
- func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
-}
-])# _LT_PREPARE_CC_BASENAME
-
-
-# _LT_CC_BASENAME(CC)
-# -------------------
-# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
-# but that macro is also expanded into generated libtool script, which
-# arranges for $SED and $ECHO to be set by different means.
-m4_defun([_LT_CC_BASENAME],
-[m4_require([_LT_PREPARE_CC_BASENAME])dnl
-AC_REQUIRE([_LT_DECL_SED])dnl
-AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
-func_cc_basename $1
-cc_basename=$func_cc_basename_result
-])
-
-
-# _LT_FILEUTILS_DEFAULTS
-# ----------------------
-# It is okay to use these file commands and assume they have been set
-# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
-m4_defun([_LT_FILEUTILS_DEFAULTS],
-[: ${CP="cp -f"}
-: ${MV="mv -f"}
-: ${RM="rm -f"}
-])# _LT_FILEUTILS_DEFAULTS
-
-
-# _LT_SETUP
-# ---------
-m4_defun([_LT_SETUP],
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
-AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
-AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
-
-_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
-dnl
-_LT_DECL([], [host_alias], [0], [The host system])dnl
-_LT_DECL([], [host], [0])dnl
-_LT_DECL([], [host_os], [0])dnl
-dnl
-_LT_DECL([], [build_alias], [0], [The build system])dnl
-_LT_DECL([], [build], [0])dnl
-_LT_DECL([], [build_os], [0])dnl
-dnl
-AC_REQUIRE([AC_PROG_CC])dnl
-AC_REQUIRE([LT_PATH_LD])dnl
-AC_REQUIRE([LT_PATH_NM])dnl
-dnl
-AC_REQUIRE([AC_PROG_LN_S])dnl
-test -z "$LN_S" && LN_S="ln -s"
-_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
-dnl
-AC_REQUIRE([LT_CMD_MAX_LEN])dnl
-_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
-_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
-dnl
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
-m4_require([_LT_CHECK_SHELL_FEATURES])dnl
-m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
-m4_require([_LT_CMD_RELOAD])dnl
-m4_require([_LT_CHECK_MAGIC_METHOD])dnl
-m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
-m4_require([_LT_CMD_OLD_ARCHIVE])dnl
-m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
-m4_require([_LT_WITH_SYSROOT])dnl
-m4_require([_LT_CMD_TRUNCATE])dnl
-
-_LT_CONFIG_LIBTOOL_INIT([
-# See if we are running on zsh, and set the options that allow our
-# commands through without removal of \ escapes INIT.
-if test -n "\${ZSH_VERSION+set}"; then
- setopt NO_GLOB_SUBST
-fi
-])
-if test -n "${ZSH_VERSION+set}"; then
- setopt NO_GLOB_SUBST
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/M4/lrint.m4
^
|
@@ -1,37 +0,0 @@
-dnl @synopsis AC_C99_FUNC_LRINT
-dnl
-dnl Check whether C99's lrint function is available.
-dnl @version 1.3 Feb 12 2002
-dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-dnl
-dnl Permission to use, copy, modify, distribute, and sell this file for any
-dnl purpose is hereby granted without fee, provided that the above copyright
-dnl and this permission notice appear in all copies. No representations are
-dnl made about the suitability of this software for any purpose. It is
-dnl provided "as is" without express or implied warranty.
-dnl
-AC_DEFUN([AC_C99_FUNC_LRINT],
-[AC_CACHE_CHECK(for lrint,
- ac_cv_c99_lrint,
-[
-lrint_save_CFLAGS=$CFLAGS
-CFLAGS="-lm"
-AC_TRY_LINK([
-#define _ISOC9X_SOURCE 1
-#define _ISOC99_SOURCE 1
-#define __USE_ISOC99 1
-#define __USE_ISOC9X 1
-
-#include <math.h>
-], if (!lrint(3.14159)) lrint(2.7183);, ac_cv_c99_lrint=yes, ac_cv_c99_lrint=no)
-
-CFLAGS=$lrint_save_CFLAGS
-
-])
-
-if test "$ac_cv_c99_lrint" = yes; then
- AC_DEFINE(HAVE_LRINT, 1,
- [Define if you have C99's lrint function.])
-fi
-])# AC_C99_FUNC_LRINT
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/M4/lrintf.m4
^
|
@@ -1,37 +0,0 @@
-dnl @synopsis AC_C99_FUNC_LRINTF
-dnl
-dnl Check whether C99's lrintf function is available.
-dnl @version 1.3 Feb 12 2002
-dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-dnl
-dnl Permission to use, copy, modify, distribute, and sell this file for any
-dnl purpose is hereby granted without fee, provided that the above copyright
-dnl and this permission notice appear in all copies. No representations are
-dnl made about the suitability of this software for any purpose. It is
-dnl provided "as is" without express or implied warranty.
-dnl
-AC_DEFUN([AC_C99_FUNC_LRINTF],
-[AC_CACHE_CHECK(for lrintf,
- ac_cv_c99_lrintf,
-[
-lrintf_save_CFLAGS=$CFLAGS
-CFLAGS="-lm"
-AC_TRY_LINK([
-#define _ISOC9X_SOURCE 1
-#define _ISOC99_SOURCE 1
-#define __USE_ISOC99 1
-#define __USE_ISOC9X 1
-
-#include <math.h>
-], if (!lrintf(3.14159)) lrintf(2.7183);, ac_cv_c99_lrintf=yes, ac_cv_c99_lrintf=no)
-
-CFLAGS=$lrintf_save_CFLAGS
-
-])
-
-if test "$ac_cv_c99_lrintf" = yes; then
- AC_DEFINE(HAVE_LRINTF, 1,
- [Define if you have C99's lrintf function.])
-fi
-])# AC_C99_FUNC_LRINTF
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/M4/ltoptions.m4
^
|
@@ -1,437 +0,0 @@
-# Helper functions for option handling. -*- Autoconf -*-
-#
-# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
-# Foundation, Inc.
-# Written by Gary V. Vaughan, 2004
-#
-# This file is free software; the Free Software Foundation gives
-# unlimited permission to copy and/or distribute it, with or without
-# modifications, as long as this notice is preserved.
-
-# serial 8 ltoptions.m4
-
-# This is to help aclocal find these macros, as it can't see m4_define.
-AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
-
-
-# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
-# ------------------------------------------
-m4_define([_LT_MANGLE_OPTION],
-[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
-
-
-# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
-# ---------------------------------------
-# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
-# matching handler defined, dispatch to it. Other OPTION-NAMEs are
-# saved as a flag.
-m4_define([_LT_SET_OPTION],
-[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
-m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
- _LT_MANGLE_DEFUN([$1], [$2]),
- [m4_warning([Unknown $1 option '$2'])])[]dnl
-])
-
-
-# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
-# ------------------------------------------------------------
-# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
-m4_define([_LT_IF_OPTION],
-[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
-
-
-# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
-# -------------------------------------------------------
-# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
-# are set.
-m4_define([_LT_UNLESS_OPTIONS],
-[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
- [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
- [m4_define([$0_found])])])[]dnl
-m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
-])[]dnl
-])
-
-
-# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
-# ----------------------------------------
-# OPTION-LIST is a space-separated list of Libtool options associated
-# with MACRO-NAME. If any OPTION has a matching handler declared with
-# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
-# the unknown option and exit.
-m4_defun([_LT_SET_OPTIONS],
-[# Set options
-m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
- [_LT_SET_OPTION([$1], _LT_Option)])
-
-m4_if([$1],[LT_INIT],[
- dnl
- dnl Simply set some default values (i.e off) if boolean options were not
- dnl specified:
- _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
- ])
- _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
- ])
- dnl
- dnl If no reference was made to various pairs of opposing options, then
- dnl we run the default mode handler for the pair. For example, if neither
- dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
- dnl archives by default:
- _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
- _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
- _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
- _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
- [_LT_ENABLE_FAST_INSTALL])
- _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
- [_LT_WITH_AIX_SONAME([aix])])
- ])
-])# _LT_SET_OPTIONS
-
-
-## --------------------------------- ##
-## Macros to handle LT_INIT options. ##
-## --------------------------------- ##
-
-# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
-# -----------------------------------------
-m4_define([_LT_MANGLE_DEFUN],
-[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
-
-
-# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
-# -----------------------------------------------
-m4_define([LT_OPTION_DEFINE],
-[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
-])# LT_OPTION_DEFINE
-
-
-# dlopen
-# ------
-LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
-])
-
-AU_DEFUN([AC_LIBTOOL_DLOPEN],
-[_LT_SET_OPTION([LT_INIT], [dlopen])
-AC_DIAGNOSE([obsolete],
-[$0: Remove this warning and the call to _LT_SET_OPTION when you
-put the 'dlopen' option into LT_INIT's first parameter.])
-])
-
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
-
-
-# win32-dll
-# ---------
-# Declare package support for building win32 dll's.
-LT_OPTION_DEFINE([LT_INIT], [win32-dll],
-[enable_win32_dll=yes
-
-case $host in
-*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
- AC_CHECK_TOOL(AS, as, false)
- AC_CHECK_TOOL(DLLTOOL, dlltool, false)
- AC_CHECK_TOOL(OBJDUMP, objdump, false)
- ;;
-esac
-
-test -z "$AS" && AS=as
-_LT_DECL([], [AS], [1], [Assembler program])dnl
-
-test -z "$DLLTOOL" && DLLTOOL=dlltool
-_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
-
-test -z "$OBJDUMP" && OBJDUMP=objdump
-_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
-])# win32-dll
-
-AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
-_LT_SET_OPTION([LT_INIT], [win32-dll])
-AC_DIAGNOSE([obsolete],
-[$0: Remove this warning and the call to _LT_SET_OPTION when you
-put the 'win32-dll' option into LT_INIT's first parameter.])
-])
-
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
-
-
-# _LT_ENABLE_SHARED([DEFAULT])
-# ----------------------------
-# implement the --enable-shared flag, and supports the 'shared' and
-# 'disable-shared' LT_INIT options.
-# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
-m4_define([_LT_ENABLE_SHARED],
-[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
-AC_ARG_ENABLE([shared],
- [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
- [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
- [p=${PACKAGE-default}
- case $enableval in
- yes) enable_shared=yes ;;
- no) enable_shared=no ;;
- *)
- enable_shared=no
- # Look at the argument we got. We use all the common list separators.
- lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
- for pkg in $enableval; do
- IFS=$lt_save_ifs
- if test "X$pkg" = "X$p"; then
- enable_shared=yes
- fi
- done
- IFS=$lt_save_ifs
- ;;
- esac],
- [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
-
- _LT_DECL([build_libtool_libs], [enable_shared], [0],
- [Whether or not to build shared libraries])
-])# _LT_ENABLE_SHARED
-
-LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
-LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
-
-# Old names:
-AC_DEFUN([AC_ENABLE_SHARED],
-[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/M4/ltsugar.m4
^
|
@@ -1,123 +0,0 @@
-# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
-#
-# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
-# Written by Gary V. Vaughan, 2004
-#
-# This file is free software; the Free Software Foundation gives
-# unlimited permission to copy and/or distribute it, with or without
-# modifications, as long as this notice is preserved.
-
-# serial 6 ltsugar.m4
-
-# This is to help aclocal find these macros, as it can't see m4_define.
-AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
-
-
-# lt_join(SEP, ARG1, [ARG2...])
-# -----------------------------
-# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
-# associated separator.
-# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
-# versions in m4sugar had bugs.
-m4_define([lt_join],
-[m4_if([$#], [1], [],
- [$#], [2], [[$2]],
- [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
-m4_define([_lt_join],
-[m4_if([$#$2], [2], [],
- [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
-
-
-# lt_car(LIST)
-# lt_cdr(LIST)
-# ------------
-# Manipulate m4 lists.
-# These macros are necessary as long as will still need to support
-# Autoconf-2.59 which quotes differently.
-m4_define([lt_car], [[$1]])
-m4_define([lt_cdr],
-[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
- [$#], 1, [],
- [m4_dquote(m4_shift($@))])])
-m4_define([lt_unquote], $1)
-
-
-# lt_append(MACRO-NAME, STRING, [SEPARATOR])
-# ------------------------------------------
-# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
-# Note that neither SEPARATOR nor STRING are expanded; they are appended
-# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
-# No SEPARATOR is output if MACRO-NAME was previously undefined (different
-# than defined and empty).
-#
-# This macro is needed until we can rely on Autoconf 2.62, since earlier
-# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
-m4_define([lt_append],
-[m4_define([$1],
- m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
-
-
-
-# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
-# ----------------------------------------------------------
-# Produce a SEP delimited list of all paired combinations of elements of
-# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
-# has the form PREFIXmINFIXSUFFIXn.
-# Needed until we can rely on m4_combine added in Autoconf 2.62.
-m4_define([lt_combine],
-[m4_if(m4_eval([$# > 3]), [1],
- [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
-[[m4_foreach([_Lt_prefix], [$2],
- [m4_foreach([_Lt_suffix],
- ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
- [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
-
-
-# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
-# -----------------------------------------------------------------------
-# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
-# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
-m4_define([lt_if_append_uniq],
-[m4_ifdef([$1],
- [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
- [lt_append([$1], [$2], [$3])$4],
- [$5])],
- [lt_append([$1], [$2], [$3])$4])])
-
-
-# lt_dict_add(DICT, KEY, VALUE)
-# -----------------------------
-m4_define([lt_dict_add],
-[m4_define([$1($2)], [$3])])
-
-
-# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
-# --------------------------------------------
-m4_define([lt_dict_add_subkey],
-[m4_define([$1($2:$3)], [$4])])
-
-
-# lt_dict_fetch(DICT, KEY, [SUBKEY])
-# ----------------------------------
-m4_define([lt_dict_fetch],
-[m4_ifval([$3],
- m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
- m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
-
-
-# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
-# -----------------------------------------------------------------
-m4_define([lt_if_dict_fetch],
-[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
- [$5],
- [$6])])
-
-
-# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
-# --------------------------------------------------------------
-m4_define([lt_dict_filter],
-[m4_if([$5], [], [],
- [lt_join(m4_quote(m4_default([$4], [[, ]])),
- lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
- [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/M4/ltversion.m4
^
|
@@ -1,23 +0,0 @@
-# ltversion.m4 -- version numbers -*- Autoconf -*-
-#
-# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
-# Written by Scott James Remnant, 2004
-#
-# This file is free software; the Free Software Foundation gives
-# unlimited permission to copy and/or distribute it, with or without
-# modifications, as long as this notice is preserved.
-
-# @configure_input@
-
-# serial 4179 ltversion.m4
-# This file is part of GNU Libtool
-
-m4_define([LT_PACKAGE_VERSION], [2.4.6])
-m4_define([LT_PACKAGE_REVISION], [2.4.6])
-
-AC_DEFUN([LTVERSION_VERSION],
-[macro_version='2.4.6'
-macro_revision='2.4.6'
-_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
-_LT_DECL(, macro_revision, 0)
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/M4/lt~obsolete.m4
^
|
@@ -1,99 +0,0 @@
-# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
-#
-# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
-# Foundation, Inc.
-# Written by Scott James Remnant, 2004.
-#
-# This file is free software; the Free Software Foundation gives
-# unlimited permission to copy and/or distribute it, with or without
-# modifications, as long as this notice is preserved.
-
-# serial 5 lt~obsolete.m4
-
-# These exist entirely to fool aclocal when bootstrapping libtool.
-#
-# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
-# which have later been changed to m4_define as they aren't part of the
-# exported API, or moved to Autoconf or Automake where they belong.
-#
-# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
-# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
-# using a macro with the same name in our local m4/libtool.m4 it'll
-# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
-# and doesn't know about Autoconf macros at all.)
-#
-# So we provide this file, which has a silly filename so it's always
-# included after everything else. This provides aclocal with the
-# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
-# because those macros already exist, or will be overwritten later.
-# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
-#
-# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
-# Yes, that means every name once taken will need to remain here until
-# we give up compatibility with versions before 1.7, at which point
-# we need to keep only those names which we still refer to.
-
-# This is to help aclocal find these macros, as it can't see m4_define.
-AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
-
-m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
-m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
-m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
-m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
-m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
-m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
-m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
-m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
-m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
-m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
-m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
-m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
-m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
-m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
-m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
-m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
-m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
-m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
-m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
-m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
-m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
-m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
-m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
-m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
-m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
-m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
-m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
-m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
-m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
-m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
-m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
-m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
-m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
-m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
-m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
-m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
-m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
-m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
-m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
-m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
-m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
-m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
-m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
-m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
-m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
-m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
-m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
-m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
-m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
-m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
-m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
-m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
-m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
-m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
-m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
-m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
-m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
-m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
-m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
-m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
-m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Make.bat
^
|
@@ -1,22 +0,0 @@
-@echo off
-
-if "%1"=="check" GOTO CHECK
-if "%1"=="clean" GOTO CLEAN
-
-copy /y Win32\config.h src\config.h
-copy /y Win32\unistd.h examples\unistd.h
-
-nmake -f Win32\Makefile.msvc
-goto END
-
-
-:CHECK
-nmake -f Win32\Makefile.msvc check
-goto END
-
-:CLEAN
-nmake -f Win32\Makefile.msvc clean
-goto END
-
-:END
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Makefile.am
^
|
@@ -1,22 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-DISTCHECK_CONFIGURE_FLAGS = --enable-gcc-werror
-
-SUBDIRS = M4 src doc examples tests
-DIST_SUBDIRS = Win32 $(SUBDIRS)
-
-EXTRA_DIST = autogen.sh libsamplerate.spec.in samplerate.pc.in Make.bat
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = samplerate.pc
-
-m4datadir = $(datadir)/aclocal
-
-# Some people prefer "make test" to "make check".
-
-test:
- make check
-
-check-asm :
- (cd src && make check-asm)
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Makefile.in
^
|
@@ -1,902 +0,0 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-VPATH = @srcdir@
-am__is_gnu_make = { \
- if test -z '$(MAKELEVEL)'; then \
- false; \
- elif test -n '$(MAKE_HOST)'; then \
- true; \
- elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
- true; \
- else \
- false; \
- fi; \
-}
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = .
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/M4/check_signal.m4 \
- $(top_srcdir)/M4/clip_mode.m4 $(top_srcdir)/M4/endian.m4 \
- $(top_srcdir)/M4/libtool.m4 $(top_srcdir)/M4/lrint.m4 \
- $(top_srcdir)/M4/lrintf.m4 $(top_srcdir)/M4/ltoptions.m4 \
- $(top_srcdir)/M4/ltsugar.m4 $(top_srcdir)/M4/ltversion.m4 \
- $(top_srcdir)/M4/lt~obsolete.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
- $(am__configure_deps) $(am__DIST_COMMON)
-am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
- configure.lineno config.status.lineno
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/src/config.h
-CONFIG_CLEAN_FILES = libsamplerate.spec samplerate.pc
-CONFIG_CLEAN_VPATH_FILES =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-SOURCES =
-DIST_SOURCES =
-RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
- ctags-recursive dvi-recursive html-recursive info-recursive \
- install-data-recursive install-dvi-recursive \
- install-exec-recursive install-html-recursive \
- install-info-recursive install-pdf-recursive \
- install-ps-recursive install-recursive installcheck-recursive \
- installdirs-recursive pdf-recursive ps-recursive \
- tags-recursive uninstall-recursive
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
-DATA = $(pkgconfig_DATA)
-RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
- distclean-recursive maintainer-clean-recursive
-am__recursive_targets = \
- $(RECURSIVE_TARGETS) \
- $(RECURSIVE_CLEAN_TARGETS) \
- $(am__extra_recursive_targets)
-AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
- cscope distdir dist dist-all distcheck
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-CSCOPE = cscope
-am__DIST_COMMON = $(srcdir)/Makefile.in \
- $(srcdir)/libsamplerate.spec.in $(srcdir)/samplerate.pc.in \
- $(top_srcdir)/Cfg/compile $(top_srcdir)/Cfg/config.guess \
- $(top_srcdir)/Cfg/config.sub $(top_srcdir)/Cfg/install-sh \
- $(top_srcdir)/Cfg/ltmain.sh $(top_srcdir)/Cfg/missing AUTHORS \
- COPYING Cfg/compile Cfg/config.guess Cfg/config.sub \
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/NEWS
^
|
@@ -1,40 +0,0 @@
-Version 0.1.9 (2016-09-23)
- * Relicense under 2 clause BSD license.
- * Minor bug fixes and upates.
-
-Version 0.1.8 (2011-08-15)
- * Minor bug fixes and upates.
-
-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).
-
-Version 0.1.5 (2009-01-11)
- * Optimisation resulting dramatic throughput improvements.
-
-Version 0.1.4 (2008-07-02)
- * Fix bug which causes a segfault with extremely low conversion ratios.
-
-Version 0.1.3 (2008-03-23)
- * Huge improvement to the quality of conversion with the
- SRC_SINC_MEDIUM_QUALITY and SRC_SINC_BEST_QUALITY converters.
- * Minor bug fixes.
-
-Version 0.1.2 (2004-09-12)
- * Fixed where callback based API wasn't being reset properly.
- * Minor bug fixes.
-
-Version 0.1.1 (2004-07-17)
- * Fixed bug in callback based API.
- * Fixed a bug brought to light by aggressive optimisations of gcc-3.4.
- * Minor bug fixes.
-
-Version 0.1.0 (2004-03-14)
- * Added callback based API.
- * Added a pair of functions for doing short to float and float to short
- conversions on an arrays of data.
- * Many minor bug fixes.
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/README
^
|
@@ -1,50 +0,0 @@
-This is libsamplerate, 0.1.9
-
-libsamplerate (also known as Secret Rabbit Code) is a library for
-perfroming sample rate conversion of audio data.
-
-The src/ directory contains the source code for library itself.
-
-The doc/ directory contains the libsamplerate documentation.
-
-The examples/ directory contains examples of how to write code using
-libsamplerate.
-
-The tests/ directory contains programs which link against
-libsamplerate and test its functionality.
-
-The Win32/ directory contains files and documentation to allow
-libsamplerate to compile under Win32 with the Microsoft Visual C++
-compiler.
-
-Win32
------
-There are detailed instructions for building libsamplerate on Win32
-in the file
-
- doc/win32.html
-
-
-MacOSX
-------
-Building on MacOSX should be the same as building it on any other
-Unix.
-
-
-OTHER PLATFORMS
----------------
-To compile libsamplerate on platforms which have a Bourne Shell compatible
-shell, an ANSI C compiler and a make utility should require no more that
-the following three commands :
- ./configure
- make
- make install
-
-CONTACTS
---------
-
-libsamplerate was written by Erik de Castro Lopo (erikd AT mega-nerd DOT com).
-The libsamplerate home page is at :
-
- http://www.mega-nerd.com/libsamplerate/
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Win32
^
|
-(directory)
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Win32/Makefile.am
^
|
@@ -1,2 +0,0 @@
-EXTRA_DIST = Makefile.msvc config.h unistd.h unistd.h libsamplerate-0.def
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Win32/Makefile.in
^
|
@@ -1,471 +0,0 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-am__is_gnu_make = { \
- if test -z '$(MAKELEVEL)'; then \
- false; \
- elif test -n '$(MAKE_HOST)'; then \
- true; \
- elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
- true; \
- else \
- false; \
- fi; \
-}
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = Win32
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/M4/check_signal.m4 \
- $(top_srcdir)/M4/clip_mode.m4 $(top_srcdir)/M4/endian.m4 \
- $(top_srcdir)/M4/libtool.m4 $(top_srcdir)/M4/lrint.m4 \
- $(top_srcdir)/M4/lrintf.m4 $(top_srcdir)/M4/ltoptions.m4 \
- $(top_srcdir)/M4/ltsugar.m4 $(top_srcdir)/M4/ltversion.m4 \
- $(top_srcdir)/M4/lt~obsolete.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/src/config.h
-CONFIG_CLEAN_FILES = Makefile.mingw
-CONFIG_CLEAN_VPATH_FILES =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-SOURCES =
-DIST_SOURCES =
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.mingw.in
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@
-ALSA_LIBS = @ALSA_LIBS@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-COMPILER_IS_GCC = @COMPILER_IS_GCC@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DLLWRAP = @DLLWRAP@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FFTW3_CFLAGS = @FFTW3_CFLAGS@
-FFTW3_LIBS = @FFTW3_LIBS@
-FGREP = @FGREP@
-GCC_MAJOR_VERSION = @GCC_MAJOR_VERSION@
-GREP = @GREP@
-HAVE_FFTW3 = @HAVE_FFTW3@
-HAVE_SNDFILE = @HAVE_SNDFILE@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OS_SPECIFIC_INCLUDES = @OS_SPECIFIC_INCLUDES@
-OS_SPECIFIC_LINKS = @OS_SPECIFIC_LINKS@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Win32/Makefile.mingw.in
^
|
@@ -1,155 +0,0 @@
-# MinGW specific Makefile for libsamplerate.
-
-@SET_MAKE@
-
-PROGRAMS = sndfile-resample.exe
-TARGETS = libsamplerate.dll $(PROGRAMS) varispeed-play.exe samplerate.pc
-
-AR = @AR@
-CC = @CC@
-CFLAGS = @CFLAGS@ -Isrc
-COMPILER_IS_GCC = @COMPILER_IS_GCC@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CXX = @CXX@
-DLLTOOL = @DLLTOOL@
-DLLWRAP = @DLLWRAP@
-FFTW3_CFLAGS = @FFTW3_CFLAGS@
-FFTW3_LIBS = @FFTW3_LIBS@
-INSTALL = @INSTALL@
-INSTALL_DATA = ${INSTALL} -m 644
-install_sh = @install_sh@
-LDFLAGS = @LDFLAGS@
-LN_S = @LN_S@
-PEXPORTS = @PEXPORTS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-RANLIB = @RANLIB@
-SNDFILE_CFLAGS = -std=c99 @SNDFILE_CFLAGS@
-SNDFILE_LIBS = @SNDFILE_LIBS@
-STRIP = @STRIP@
-
-#====================================================================
-# Target directories.
-
-bindir = @bindir@
-exec_prefix = @exec_prefix@
-htmldocdir = @htmldocdir@
-includedir = @includedir@
-libdir = @libdir@
-pkgconfigdir = @libdir@/pkgconfig
-prefix = @prefix@
-
-#====================================================================
-# Targets
-
-all : $(TARGETS)
-
-clean :
- rm -f $(TARGETS) *.del *.lib src/*.o tests/*.o tests/*.exe
-
-install : $(TARGETS)
- $(install_sh) -c libsamplerate.dll $(libdir)
- $(install_sh) -c samplerate.pc $(pkgconfigdir)
- @for prog in $(PROGRAMS); do \
- echo "installing ... $$prog" ; \
- $(install_sh) -c "$$prog" $(bindir) ; \
- done;
- $(install_sh) -c src/samplerate.h $(includedir)
-
-uninstall :
- rm -f $(libdir)/libsamplerate.dll
- rm -f $(pkgconfigdir)/samplerate.pc
- @for prog in $(PROGRAMS); do \
- echo "removing ... $(bindir)/$$prog" ; \
- rm -f $(bindir)/"$$prog" ; \
- done;
- rm -f $(includedir)/samplerate.h
-
-#====================================================================
-
-LINK_OBJS = \
- src/src_linear.o \
- src/src_sinc.o \
- src/src_zoh.o \
- src/samplerate.o
-
-libsamplerate.dll libsamplerate.lib : $(LINK_OBJS)
- $(DLLWRAP) --def Win32/libsamplerate.def $(LINK_OBJS) --output-lib libsamplerate.lib -o libsamplerate.dll
- $(STRIP) libsamplerate.dll
-
-sndfile-resample.exe : examples/sndfile-resample.c libsamplerate.lib
- $(CC) $(CFLAGS) $(SNDFILE_CFLAGS) $+ $(SNDFILE_LIBS) -o $@
-
-varispeed-play.exe : examples/varispeed-play.c examples/audio_out.o libsamplerate.lib
- $(CC) $(CFLAGS) $(SNDFILE_CFLAGS) $+ $(SNDFILE_LIBS) -lwinmm -o $@
-
-examples/audio_out.o : examples/audio_out.c
- $(CC) $(CFLAGS) $(SNDFILE_CFLAGS) -c $+ -o $@
-
-samplerate.pc : samplerate.pc.in config.status
- @./config.status $@
-
-config.status :
- ./configure
-
-#====================================================================
-# Testing programs.
-
-TEST_PROGS = \
- tests/misc_test.exe \
- tests/termination_test.exe \
- tests/simple_test.exe \
- tests/callback_test.exe \
- tests/reset_test.exe \
- tests/multi_channel_test.exe \
- tests/float_short_test.exe \
- tests/snr_bw_test.exe
-
-
-check : $(TEST_PROGS)
- tests/misc_test.exe
- tests/termination_test.exe
- tests/simple_test.exe
- tests/callback_test.exe
- tests/reset_test.exe
- tests/multi_channel_test.exe
- tests/float_short_test.exe
- tests/snr_bw_test.exe
- @echo ----------------------------------------------------------------------
- @echo libsamplerate passed all tests
- @echo ----------------------------------------------------------------------
-
-#====================================================================
-# Test programs.
-
-tests/misc_test.exe : tests/misc_test.c tests/util.c libsamplerate.lib
- $(CC) $(CFLAGS) $+ -o $@
-
-tests/termination_test.exe : tests/termination_test.c tests/util.c libsamplerate.lib
- $(CC) $(CFLAGS) $+ -o $@
-
-tests/simple_test.exe : tests/simple_test.c tests/util.c libsamplerate.lib
- $(CC) $(CFLAGS) $+ -o $@
-
-tests/callback_test.exe : tests/callback_test.c tests/util.c libsamplerate.lib
- $(CC) $(CFLAGS) $+ -o $@
-
-tests/reset_test.exe : tests/reset_test.c tests/util.c libsamplerate.lib
- $(CC) $(CFLAGS) $+ -o $@
-
-tests/float_short_test.exe : tests/float_short_test.c tests/util.c libsamplerate.lib
- $(CC) $(CFLAGS) $+ -o $@
-
-tests/multi_channel_test.exe : tests/multi_channel_test.c tests/util.c tests/calc_snr.c libsamplerate.lib
- $(CC) $(CFLAGS) $(FFTW3_CFLAGS) $+ $(FFTW3_LIBS) -o $@
-
-tests/snr_bw_test.exe : tests/snr_bw_test.c tests/util.c tests/calc_snr.c libsamplerate.lib
- $(CC) $(CFLAGS) $(FFTW3_CFLAGS) $+ $(FFTW3_LIBS) -o $@
-
-# End of Makefile
-#====================================================================
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Win32/Makefile.msvc
^
|
@@ -1,150 +0,0 @@
-
-# Set the value of $(MSVCDir) for your installation.
-
-# MSVCDir="C:\Progra~1\Micros~1\VC98"
-# CFLAGS=/nologo /MD /W1 /GX /O2 /I "$(MSVCDir)\Include" /I . /I "Win32" /I "src" /D "WIN32" /D "_USRDLL" /YX /FD /Zm1000
-# PROG_LINK_FLAGS=/nologo /incremental:no /libpath:"$(MSVCDir)\Lib" /pdb:"libsamplerate-0.pdb" /machine:I386 /exetype:dynamic
-
-MSVCDir="C:\Progra~1\Micros~1.Net\Vc7"
-CFLAGS=/nologo /MD /W1 /GX /O2 /Zm200 /I "$(MSVCDir)\Include" /I "$(MSVCDir)\PlatformSDK\Include" /I . /I "Win32" /I "src" /D "WIN32" /D "_USRDLL" /YX /FD /Zm1000
-PROG_LINK_FLAGS=/nologo /incremental:no /libpath:"$(MSVCDir)\Lib" /libpath:"$(MSVCDir)\PlatformSDK\Lib" /pdb:"libsamplerate-0.pdb" /machine:I386 /exetype:dynamic
-
-CPP=cl.exe
-LINK32=link.exe
-DLL_LINK_FLAGS=/nologo /dll /incremental:no /libpath:"$(MSVCDir)\Lib" /pdb:"libsamplerate-0.pdb" /implib:".\libsamplerate-0.lib" /machine:I386 /out:"libsamplerate-0.dll"
-
-#====================================================================
-# Targets
-
-ALL : libsndfile-1.lib libsamplerate-0.dll \
- ".\examples\sndfile-resample.exe" \
- ".\examples\varispeed-play.exe"
-
-CLEAN :
- -@erase "src\*.obj"
- -@erase "tests\*.exe"
-
-#====================================================================
-
-LINK32_OBJS= \
- ".\src\samplerate.obj" \
- ".\src\src_linear.obj" \
- ".\src\src_zoh.obj" \
- ".\src\src_sinc.obj"
-
-libsamplerate-0.dll : $(LINK32_OBJS) ".\Win32\libsamplerate-0.def"
- $(LINK32) $(DLL_LINK_FLAGS) /def:".\Win32\libsamplerate-0.def" $(LINK32_OBJS)
-
-".\examples\sndfile-resample.exe" : ".\examples\sndfile-resample.c"
- $(CPP) $(CFLAGS) /Fo".\examples\sndfile-resample.obj" /c ".\examples\sndfile-resample.c"
- $(LINK32) $(PROG_LINK_FLAGS) /out:".\examples\sndfile-resample.exe" ".\examples\sndfile-resample.obj" libsamplerate-0.lib libsndfile-1.lib
-
-".\examples\varispeed-play.exe" : ".\examples\varispeed-play.c" ".\examples\audio_out.obj"
- $(CPP) $(CFLAGS) /Fo".\examples\varispeed-play.obj" /c ".\examples\varispeed-play.c"
- $(LINK32) $(PROG_LINK_FLAGS) /out:".\examples\varispeed-play.exe" ".\examples\varispeed-play.obj" ".\examples\audio_out.obj" libsamplerate-0.lib libsndfile-1.lib winmm.lib
-
-".\examples\audio_out.obj" : ".\examples\audio_out.c"
- $(CPP) $(CFLAGS) /Fo".\examples\audio_out.obj" /c ".\examples\audio_out.c"
-
-TEST_PROGS= \
- ".\tests\misc_test.exe" \
- ".\tests\termination_test.exe" \
- ".\tests\simple_test.exe" \
- ".\tests\reset_test.exe" \
- ".\tests\multi_channel_test.exe" \
- ".\tests\snr_bw_test.exe" \
- ".\tests\throughput_test.exe"
-
-CHECK: $(TEST_PROGS)
- ".\tests\misc_test.exe"
- ".\tests\termination_test.exe"
- ".\tests\simple_test.exe"
- ".\tests\reset_test.exe"
- ".\tests\multi_channel_test.exe"
- ".\tests\snr_bw_test.exe"
- ".\tests\throughput_test.exe"
- -@echo ----------------------------------------------------------------------
- -@echo libsamplerate passed all tests
- -@echo ----------------------------------------------------------------------
-
-#====================================================================
-# C files in src.
-
-".\src\samplerate.obj" : ".\src\samplerate.c"
- $(CPP) $(CFLAGS) /Fo".\src\samplerate.obj" /c ".\src\samplerate.c"
-
-".\src\src_linear.obj" : ".\src\src_linear.c"
- $(CPP) $(CFLAGS) /Fo".\src\src_linear.obj" /c ".\src\src_linear.c"
-
-".\src\src_zoh.obj" : ".\src\src_zoh.c"
- $(CPP) $(CFLAGS) /Fo".\src\src_zoh.obj" /c ".\src\src_zoh.c"
-
-".\src\src_sinc.obj" : ".\src\src_sinc.c"
- $(CPP) $(CFLAGS) /Fo".\src\src_sinc.obj" /c ".\src\src_sinc.c"
-
-#====================================================================
-# Object files for test programs.
-
-".\tests\util.obj" : ".\tests\util.c"
- $(CPP) $(CFLAGS) /Fo".\tests\util.obj" /c ".\tests\util.c"
-
-".\tests\calc_snr.obj" : ".\tests\calc_snr.c"
- $(CPP) $(CFLAGS) /Fo".\tests\calc_snr.obj" /c ".\tests\calc_snr.c"
-
-".\tests\dft_cmp.obj" : ".\tests\dft_cmp.c"
- $(CPP) $(CFLAGS) /Fo".\tests\dft_cmp.obj" /c ".\tests\dft_cmp.c"
-
-#====================================================================
-# Test programs.
-
-".\tests\misc_test.exe" : ".\tests\misc_test.c" ".\tests\util.obj"
- $(CPP) $(CFLAGS) /Fo".\tests\misc_test.obj" /c ".\tests\misc_test.c"
- $(LINK32) $(PROG_LINK_FLAGS) /out:".\tests\misc_test.exe" ".\tests\misc_test.obj" ".\tests\util.obj" libsamplerate-0.lib
-
-".\tests\termination_test.exe" : ".\tests\termination_test.c" ".\tests\util.obj"
- $(CPP) $(CFLAGS) /Fo".\tests\termination_test.obj" /c ".\tests\termination_test.c"
- $(LINK32) $(PROG_LINK_FLAGS) /out:".\tests\termination_test.exe" ".\tests\termination_test.obj" ".\tests\util.obj" libsamplerate-0.lib
-
-".\tests\streaming_test.exe" : ".\tests\streaming_test.c" ".\tests\util.obj"
- $(CPP) $(CFLAGS) /Fo".\tests\streaming_test.obj" /c ".\tests\streaming_test.c"
- $(LINK32) $(PROG_LINK_FLAGS) /out:".\tests\streaming_test.exe" ".\tests\streaming_test.obj" ".\tests\util.obj" libsamplerate-0.lib
-
-".\tests\simple_test.exe" : ".\tests\simple_test.c" ".\tests\util.obj"
- $(CPP) $(CFLAGS) /Fo".\tests\simple_test.obj" /c ".\tests\simple_test.c"
- $(LINK32) $(PROG_LINK_FLAGS) /out:".\tests\simple_test.exe" ".\tests\simple_test.obj" ".\tests\util.obj" libsamplerate-0.lib
-
-".\tests\reset_test.exe" : ".\tests\reset_test.c" ".\tests\util.obj"
- $(CPP) $(CFLAGS) /Fo".\tests\reset_test.obj" /c ".\tests\reset_test.c"
- $(LINK32) $(PROG_LINK_FLAGS) /out:".\tests\reset_test.exe" ".\tests\reset_test.obj" ".\tests\util.obj" libsamplerate-0.lib
-
-".\tests\multi_channel_test.exe" : ".\tests\multi_channel_test.c" ".\tests\util.obj" ".\tests\calc_snr.obj"
- $(CPP) $(CFLAGS) /Fo".\tests\multi_channel_test.obj" /c ".\tests\multi_channel_test.c"
- $(LINK32) $(PROG_LINK_FLAGS) /out:".\tests\multi_channel_test.exe" ".\tests\multi_channel_test.obj" ".\tests\util.obj" ".\tests\calc_snr.obj" libsamplerate-0.lib
-
-".\tests\snr_bw_test.exe" : ".\tests\snr_bw_test.c" ".\tests\util.obj"
- $(CPP) $(CFLAGS) /Fo".\tests\snr_bw_test.obj" /c ".\tests\snr_bw_test.c"
- $(LINK32) $(PROG_LINK_FLAGS) /out:".\tests\snr_bw_test.exe" ".\tests\snr_bw_test.obj" ".\tests\util.obj" libsamplerate-0.lib
-
-".\tests\throughput_test.exe" : ".\tests\throughput_test.c" ".\tests\util.obj"
- $(CPP) $(CFLAGS) /Fo".\tests\throughput_test.obj" /c ".\tests\throughput_test.c"
- $(LINK32) $(PROG_LINK_FLAGS) /out:".\tests\throughput_test.exe" ".\tests\throughput_test.obj" ".\tests\util.obj" libsamplerate-0.lib
-
-#====================================================================
-# Bit of extra trickery.
-
-sndfile.h libsndfile-1.dll libsndfile-1.def :
- -@echo *---------------------------------------------------------------
- -@echo * You need to get the pre-built Win32 binaries for libsndfile
- -@echo * from : http://www.mega-nerd.com/libsndfile
- -@echo * The prebuilt binaries will be in a ZIP file which contains
- -@echo * the files :
- -@echo * sndfile.h libsndfile-1.dll libsndfile-1.def
- -@echo * which need to be copied to this directory.
- -@echo *---------------------------------------------------------------
- -@exit 1
-
-libsndfile-1.lib : libsndfile-1.dll libsndfile-1.def
- lib /machine:i386 /def:libsndfile-1.def
-
-# End of Makefile
-#====================================================================
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Win32/config.h
^
|
@@ -1,197 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-/*
-** This is the Win32 specific config.h header file.
-**
-** On Unix (including MacOSX), this header file is automatically generated
-** during the configure process while on Win32 this has to be hand edited
-** to keep it up to date.
-**
-** This is also a good file to add Win32 specific things.
-*/
-
-/*
-** MSVC++ assumes that all floating point constants without a trailing
-** letter 'f' are double precision.
-**
-** If this assumption is incorrect and one of these floating point constants
-** is assigned to a float variable MSVC++ generates a warning.
-**
-** Since there are currently about 25000 of these warnings generated in
-** src/src_sinc.c this slows down compile times considerably. The
-** following #pragma disables the warning.
-*/
-
-#pragma warning(disable: 4305)
-
-/*----------------------------------------------------------------------------
-** Normal #defines follow.
-*/
-
-/* Set to 1 if the compile is GNU GCC. */
-#define COMPILER_IS_GCC 0
-
-/* Target processor clips on negative float to int conversion. */
-#define CPU_CLIPS_NEGATIVE 0
-
-/* Target processor clips on positive float to int conversion. */
-#define CPU_CLIPS_POSITIVE 0
-
-/* Target processor is big endian. */
-#define CPU_IS_BIG_ENDIAN 0
-
-/* Target processor is little endian. */
-#define CPU_IS_LITTLE_ENDIAN 1
-
-/* Set to 1 to enable debugging. */
-#define ENABLE_DEBUG 0
-
-/* Major version of GCC or 3 otherwise. */
-/* #undef GCC_MAJOR_VERSION */
-
-/* Define to 1 if you have the `alarm' function. */
-/* #undef HAVE_ALARM */
-
-/* Define to 1 if you have the `calloc' function. */
-#define HAVE_CALLOC 1
-
-/* Define to 1 if you have the `ceil' function. */
-#define HAVE_CEIL 1
-
-/* Define to 1 if you have the <dlfcn.h> header file. */
-/* #undef HAVE_DLFCN_H */
-
-/* Set to 1 if you have libfftw3. */
-/* #undef HAVE_FFTW3 */
-
-/* Define to 1 if you have the `floor' function. */
-#define HAVE_FLOOR 1
-
-/* Define to 1 if you have the `fmod' function. */
-#define HAVE_FMOD 1
-
-/* Define to 1 if you have the `free' function. */
-#define HAVE_FREE 1
-
-/* Define to 1 if you have the <inttypes.h> header file. */
-/* #undef HAVE_INTTYPES_H */
-
-/* Define to 1 if you have the `m' library (-lm). */
-/* #undef HAVE_LIBM */
-
-/* Define if you have C99's lrint function. */
-/* #undef HAVE_LRINT */
-
-/* Define if you have C99's lrintf function. */
-/* #undef HAVE_LRINTF */
-
-/* Define to 1 if you have the `malloc' function. */
-#define HAVE_MALLOC 1
-
-/* Define to 1 if you have the `memcpy' function. */
-#define HAVE_MEMCPY 1
-
-/* Define to 1 if you have the `memmove' function. */
-#define HAVE_MEMMOVE 1
-
-/* Define to 1 if you have the <memory.h> header file. */
-#define HAVE_MEMORY_H 1
-
-/* Define if you have signal SIGALRM. */
-/* #undef HAVE_SIGALRM */
-
-/* Define to 1 if you have the `signal' function. */
-/* #undef HAVE_SIGNAL */
-
-/* Set to 1 if you have libsndfile. */
-#define HAVE_SNDFILE 1
-
-/* Define to 1 if you have the <stdint.h> header file. */
-/* #undef HAVE_STDINT_H */
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#define HAVE_STDLIB_H 1
-
-/* Define to 1 if you have the <strings.h> header file. */
-#define HAVE_STRINGS_H 1
-
-/* Define to 1 if you have the <string.h> header file. */
-#define HAVE_STRING_H 1
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#define HAVE_SYS_STAT_H 1
-
-/* Define to 1 if you have the <sys/times.h> header file. */
-/* #undef HAVE_SYS_TIMES_H */
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#define HAVE_SYS_TYPES_H 1
-
-/* Define to 1 if you have the <unistd.h> header file. */
-#define HAVE_UNISTD_H 1
-
-/* Define to the sub-directory in which libtool stores uninstalled libraries.
- */
-#define LT_OBJDIR ".libs/"
-
-/* Define to 1 if your C compiler doesn't accept -c and -o together. */
-/* #undef NO_MINUS_C_MINUS_O */
-
-/* Set to 1 if compiling for Win32 */
-#define OS_IS_WIN32 1
-
-/* Name of package */
-#define PACKAGE "libsamplerate"
-
-/* Define to the address where bug reports for this package should be sent. */
-#define PACKAGE_BUGREPORT "erikd@mega-nerd.com"
-
-/* Define to the full name of this package. */
-#define PACKAGE_NAME "libsamplerate"
-
-/* Define to the full name and version of this package. */
-#define PACKAGE_STRING "libsamplerate 0.1.8"
-
-/* Define to the one symbol short name of this package. */
-#define PACKAGE_TARNAME "libsamplerate"
-
-/* Define to the home page for this package. */
-#define PACKAGE_URL "http://www.mega-nerd.com/libsamplerate/"
-
-/* Define to the version of this package. */
-#define PACKAGE_VERSION "0.1.8"
-
-/* The size of `double', as computed by sizeof. */
-#define SIZEOF_DOUBLE 8
-
-/* The size of `float', as computed by sizeof. */
-#define SIZEOF_FLOAT 4
-
-/* The size of `int', as computed by sizeof. */
-#define SIZEOF_INT 4
-
-/* The size of `long', as computed by sizeof. */
-#define SIZEOF_LONG 4
-
-/* Define to 1 if you have the ANSI C header files. */
-#define STDC_HEADERS 1
-
-/* Version number of package */
-#define VERSION "0.1.8"
-
-
-
-/* Extra Win32 hacks. */
-
-/*
-** Microsoft's compiler still does not support the 1999 ISO C Standard
-** which includes 'inline'.
-*/
-
-#define inline __inline
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Win32/libsamplerate-0.def
^
|
@@ -1,28 +0,0 @@
-LIBRARY libsamplerate-0.dll
-EXPORTS
-
-src_new @1
-src_delete @2
-
-src_get_name @10
-src_get_description @11
-src_get_version @12
-
-src_process @20
-src_reset @21
-src_set_ratio @22
-
-src_error @30
-src_strerror @31
-
-src_simple @40
-
-src_is_valid_ratio @50
-
-src_callback_new @60
-src_callback_read @61
-
-src_short_to_float_array @70
-src_float_to_short_array @71
-src_int_to_float_array @80
-src_float_to_int_array @81
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/Win32/unistd.h
^
|
@@ -1,12 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-/*
-** Emtpy file to prevent Win32 compiler from complaining that the
-** file doesn't exist.
-*/
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/aclocal.m4
^
|
@@ -1,1438 +0,0 @@
-# generated automatically by aclocal 1.15 -*- Autoconf -*-
-
-# Copyright (C) 1996-2014 Free Software Foundation, Inc.
-
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
-m4_ifndef([AC_AUTOCONF_VERSION],
- [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
-m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
-[m4_warning([this file was generated for autoconf 2.69.
-You have another version of autoconf. It may work, but is not guaranteed to.
-If you have problems, you may need to regenerate the build system entirely.
-To do so, use the procedure documented by the package, typically 'autoreconf'.])])
-
-dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
-dnl serial 11 (pkg-config-0.29)
-dnl
-dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
-dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 2 of the License, or
-dnl (at your option) any later version.
-dnl
-dnl This program is distributed in the hope that it will be useful, but
-dnl WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-dnl General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-dnl 02111-1307, USA.
-dnl
-dnl As a special exception to the GNU General Public License, if you
-dnl distribute this file as part of a program that contains a
-dnl configuration script generated by Autoconf, you may include it under
-dnl the same distribution terms that you use for the rest of that
-dnl program.
-
-dnl PKG_PREREQ(MIN-VERSION)
-dnl -----------------------
-dnl Since: 0.29
-dnl
-dnl Verify that the version of the pkg-config macros are at least
-dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
-dnl installed version of pkg-config, this checks the developer's version
-dnl of pkg.m4 when generating configure.
-dnl
-dnl To ensure that this macro is defined, also add:
-dnl m4_ifndef([PKG_PREREQ],
-dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
-dnl
-dnl See the "Since" comment for each macro you use to see what version
-dnl of the macros you require.
-m4_defun([PKG_PREREQ],
-[m4_define([PKG_MACROS_VERSION], [0.29])
-m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
- [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
-])dnl PKG_PREREQ
-
-dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
-dnl ----------------------------------
-dnl Since: 0.16
-dnl
-dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
-dnl first found in the path. Checks that the version of pkg-config found
-dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
-dnl used since that's the first version where most current features of
-dnl pkg-config existed.
-AC_DEFUN([PKG_PROG_PKG_CONFIG],
-[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
-m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
-m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
-AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
-AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
-AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
-
-if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
- AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
-fi
-if test -n "$PKG_CONFIG"; then
- _pkg_min_version=m4_default([$1], [0.9.0])
- AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- PKG_CONFIG=""
- fi
-fi[]dnl
-])dnl PKG_PROG_PKG_CONFIG
-
-dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-dnl -------------------------------------------------------------------
-dnl Since: 0.18
-dnl
-dnl Check to see whether a particular set of modules exists. Similar to
-dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
-dnl
-dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
-dnl only at the first occurence in configure.ac, so if the first place
-dnl it's called might be skipped (such as if it is within an "if", you
-dnl have to call PKG_CHECK_EXISTS manually
-AC_DEFUN([PKG_CHECK_EXISTS],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-if test -n "$PKG_CONFIG" && \
- AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
- m4_default([$2], [:])
-m4_ifvaln([$3], [else
- $3])dnl
-fi])
-
-dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
-dnl ---------------------------------------------
-dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
-dnl pkg_failed based on the result.
-m4_define([_PKG_CONFIG],
-[if test -n "$$1"; then
- pkg_cv_[]$1="$$1"
- elif test -n "$PKG_CONFIG"; then
- PKG_CHECK_EXISTS([$3],
- [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes ],
- [pkg_failed=yes])
- else
- pkg_failed=untried
-fi[]dnl
-])dnl _PKG_CONFIG
-
-dnl _PKG_SHORT_ERRORS_SUPPORTED
-dnl ---------------------------
-dnl Internal check to see if pkg-config supports short errors.
-AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
-else
- _pkg_short_errors_supported=no
-fi[]dnl
-])dnl _PKG_SHORT_ERRORS_SUPPORTED
-
-
-dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
-dnl [ACTION-IF-NOT-FOUND])
-dnl --------------------------------------------------------------
-dnl Since: 0.4.0
-dnl
-dnl Note that if there is a possibility the first call to
-dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
-dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
-AC_DEFUN([PKG_CHECK_MODULES],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
-AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
-
-pkg_failed=no
-AC_MSG_CHECKING([for $1])
-
-_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
-_PKG_CONFIG([$1][_LIBS], [libs], [$2])
-
-m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
-and $1[]_LIBS to avoid the need to call pkg-config.
-See the pkg-config man page for more details.])
-
-if test $pkg_failed = yes; then
- AC_MSG_RESULT([no])
- _PKG_SHORT_ERRORS_SUPPORTED
- if test $_pkg_short_errors_supported = yes; then
- $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
- else
- $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
-
- m4_default([$4], [AC_MSG_ERROR(
-[Package requirements ($2) were not met:
-
-$$1_PKG_ERRORS
-
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
-installed software in a non-standard prefix.
-
-_PKG_TEXT])[]dnl
- ])
-elif test $pkg_failed = untried; then
- AC_MSG_RESULT([no])
- m4_default([$4], [AC_MSG_FAILURE(
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/autogen.sh
^
|
@@ -1,129 +0,0 @@
-#!/bin/sh
-# Run this to set up the build system: configure, makefiles, etc.
-# (based on the version in enlightenment's cvs)
-
-package="libsamplerate"
-
-ACLOCAL_FLAGS="-I M4"
-
-olddir=`pwd`
-srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
-
-cd "$srcdir"
-DIE=0
-
-echo "checking for autoconf... "
-(autoconf --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "You must have autoconf installed to compile $package."
- echo "Download the appropriate package for your distribution,"
- echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
- DIE=1
-}
-
-VERSIONGREP="sed -e s/.*[^0-9\.]\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/"
-VERSIONMKMAJ="sed -e s/\([0-9][0-9]*\)[^0-9].*/\\1/"
-VERSIONMKMIN="sed -e s/.*[0-9][0-9]*\.//"
-
-# do we need automake?
-if test -r Makefile.am; then
- AM_OPTIONS=`fgrep AUTOMAKE_OPTIONS Makefile.am`
- AM_NEEDED=`echo $AM_OPTIONS | $VERSIONGREP`
- if test x"$AM_NEEDED" = "x$AM_OPTIONS"; then
- AM_NEEDED=""
- fi
- if test -z $AM_NEEDED; then
- echo -n "checking for automake... "
- AUTOMAKE=automake
- ACLOCAL=aclocal
- if ($AUTOMAKE --version < /dev/null > /dev/null 2>&1); then
- echo "yes"
- else
- echo "no"
- AUTOMAKE=
- fi
- else
- echo -n "checking for automake $AM_NEEDED or later... "
- majneeded=`echo $AM_NEEDED | $VERSIONMKMAJ`
- minneeded=`echo $AM_NEEDED | $VERSIONMKMIN`
- for am in automake-$AM_NEEDED automake$AM_NEEDED \
- automake automake-1.7 automake-1.8 automake-1.9 automake-1.10; do
- ($am --version < /dev/null > /dev/null 2>&1) || continue
- ver=`$am --version < /dev/null | head -n 1 | $VERSIONGREP`
- maj=`echo $ver | $VERSIONMKMAJ`
- min=`echo $ver | $VERSIONMKMIN`
- if test $maj -eq $majneeded -a $min -ge $minneeded; then
- AUTOMAKE=$am
- echo $AUTOMAKE
- break
- fi
- done
- test -z $AUTOMAKE && echo "no"
- echo -n "checking for aclocal $AM_NEEDED or later... "
- for ac in aclocal-$AM_NEEDED aclocal$AM_NEEDED \
- aclocal aclocal-1.7 aclocal-1.8 aclocal-1.9 aclocal-1.10; do
- ($ac --version < /dev/null > /dev/null 2>&1) || continue
- ver=`$ac --version < /dev/null | head -n 1 | $VERSIONGREP`
- maj=`echo $ver | $VERSIONMKMAJ`
- min=`echo $ver | $VERSIONMKMIN`
- if test $maj -eq $majneeded -a $min -ge $minneeded; then
- ACLOCAL=$ac
- echo $ACLOCAL
- break
- fi
- done
- test -z $ACLOCAL && echo "no"
- fi
- test -z $AUTOMAKE || test -z $ACLOCAL && {
- echo
- echo "You must have automake installed to compile $package."
- echo "Download the appropriate package for your distribution,"
- echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
- exit 1
- }
-fi
-
-echo -n "checking for libtool... "
-for LIBTOOLIZE in libtoolize glibtoolize nope; do
- ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 && break
-done
-if test x$LIBTOOLIZE = xnope; then
- echo "nope."
- LIBTOOLIZE=libtoolize
-else
- echo $LIBTOOLIZE
-fi
-($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "You must have libtool installed to compile $package."
- echo "Download the appropriate package for your system,"
- echo "or get the source from one of the GNU ftp sites"
- echo "listed in http://www.gnu.org/order/ftp.html"
- DIE=1
-}
-
-if test "$DIE" -eq 1; then
- exit 1
-fi
-
-if test -z "$*"; then
- echo "I am going to run ./configure with no arguments - if you wish "
- echo "to pass any to it, please specify them on the $0 command line."
-fi
-
-echo "Generating configuration files for $package, please wait...."
-
-echo " $ACLOCAL $ACLOCAL_FLAGS"
-$ACLOCAL $ACLOCAL_FLAGS || exit 1
-echo " $LIBTOOLIZE --automake"
-$LIBTOOLIZE --automake || exit 1
-echo " autoheader"
-autoheader || exit 1
-echo " $AUTOMAKE --add-missing $AUTOMAKE_FLAGS"
-$AUTOMAKE --add-missing $AUTOMAKE_FLAGS || exit 1
-echo " autoconf"
-autoconf || exit 1
-
-cd $olddir
-$srcdir/configure --enable-gcc-werror "$@" && echo
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/configure
^
|
@@ -1,20828 +0,0 @@
-#! /bin/sh
-# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for libsamplerate 0.1.9.
-#
-# Report bugs to <erikd@mega-nerd.com>.
-#
-#
-# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
-#
-#
-# This configure script is free software; the Free Software Foundation
-# gives unlimited permission to copy, distribute and modify it.
-## -------------------- ##
-## M4sh Initialization. ##
-## -------------------- ##
-
-# Be more Bourne compatible
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '${1+"$@"}'='"$@"'
- setopt NO_GLOB_SUBST
-else
- case `(set -o) 2>/dev/null` in #(
- *posix*) :
- set -o posix ;; #(
- *) :
- ;;
-esac
-fi
-
-
-as_nl='
-'
-export as_nl
-# Printing a long string crashes Solaris 7 /usr/bin/printf.
-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
-# Prefer a ksh shell builtin over an external printf program on Solaris,
-# but without wasting forks for bash or zsh.
-if test -z "$BASH_VERSION$ZSH_VERSION" \
- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='print -r --'
- as_echo_n='print -rn --'
-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='printf %s\n'
- as_echo_n='printf %s'
-else
- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
- as_echo_n='/usr/ucb/echo -n'
- else
- as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
- as_echo_n_body='eval
- arg=$1;
- case $arg in #(
- *"$as_nl"*)
- expr "X$arg" : "X\\(.*\\)$as_nl";
- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
- esac;
- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
- '
- export as_echo_n_body
- as_echo_n='sh -c $as_echo_n_body as_echo'
- fi
- export as_echo_body
- as_echo='sh -c $as_echo_body as_echo'
-fi
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
- PATH_SEPARATOR=:
- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
- PATH_SEPARATOR=';'
- }
-fi
-
-
-# IFS
-# We need space, tab and new line, in precisely that order. Quoting is
-# there to prevent editors from complaining about space-tab.
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word
-# splitting by setting IFS to empty value.)
-IFS=" "" $as_nl"
-
-# Find who we are. Look in the path if we contain no directory separator.
-as_myself=
-case $0 in #((
- *[\\/]* ) as_myself=$0 ;;
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
- done
-IFS=$as_save_IFS
-
- ;;
-esac
-# We did not find ourselves, most probably we were run as `sh COMMAND'
-# in which case we are not to be found in the path.
-if test "x$as_myself" = x; then
- as_myself=$0
-fi
-if test ! -f "$as_myself"; then
- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
- exit 1
-fi
-
-# Unset variables that we do not need and which cause bugs (e.g. in
-# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
-# suppresses any "Segmentation fault" message there. '((' could
-# trigger a bug in pdksh 5.2.14.
-for as_var in BASH_ENV ENV MAIL MAILPATH
-do eval test x\${$as_var+set} = xset \
- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-LC_ALL=C
-export LC_ALL
-LANGUAGE=C
-export LANGUAGE
-
-# CDPATH.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-# Use a proper internal environment variable to ensure we don't fall
- # into an infinite loop, continuously re-executing ourselves.
- if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
- _as_can_reexec=no; export _as_can_reexec;
- # We cannot yet assume a decent shell, so we have to provide a
-# neutralization value for shells without unset; and this also
-# works around shells that cannot unset nonexistent variables.
-# Preserve -v and -x to the replacement shell.
-BASH_ENV=/dev/null
-ENV=/dev/null
-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
-case $- in # ((((
- *v*x* | *x*v* ) as_opts=-vx ;;
- *v* ) as_opts=-v ;;
- *x* ) as_opts=-x ;;
- * ) as_opts= ;;
-esac
-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
-# Admittedly, this is quite paranoid, since all the known shells bail
-# out after a failed `exec'.
-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
-as_fn_exit 255
- fi
- # We don't want this to propagate to other subprocesses.
- { _as_can_reexec=; unset _as_can_reexec;}
-if test "x$CONFIG_SHELL" = x; then
- as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '\${1+\"\$@\"}'='\"\$@\"'
- setopt NO_GLOB_SUBST
-else
- case \`(set -o) 2>/dev/null\` in #(
- *posix*) :
- set -o posix ;; #(
- *) :
- ;;
-esac
-fi
-"
- as_required="as_fn_return () { (exit \$1); }
-as_fn_success () { as_fn_return 0; }
-as_fn_failure () { as_fn_return 1; }
-as_fn_ret_success () { return 0; }
-as_fn_ret_failure () { return 1; }
-
-exitcode=0
-as_fn_success || { exitcode=1; echo as_fn_success failed.; }
-as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
-as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
-as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
-if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
-
-else
- exitcode=1; echo positional parameters were not saved.
-fi
-test x\$exitcode = x0 || exit 1
-test -x / || exit 1"
- as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
- as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
- eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/configure.ac
^
|
@@ -1,358 +0,0 @@
-# Copyright (C) 2002-2011 Erik de Castro Lopo (erikd AT mega-nerd DOT com).
-
-dnl Require autoconf version
-AC_PREREQ(2.57)
-
-AC_INIT([libsamplerate],[0.1.9],[erikd@mega-nerd.com],
- [libsamplerate],[http://www.mega-nerd.com/libsamplerate/])
-
-# Put config stuff in Cfg.
-AC_CONFIG_AUX_DIR(Cfg)
-
-AC_CONFIG_SRCDIR([src/samplerate.c])
-AC_CANONICAL_TARGET([])
-
-AC_CONFIG_MACRO_DIR([M4])
-AC_CONFIG_HEADERS([src/config.h])
-
-AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION)
-AM_SILENT_RULES([yes])
-
-dnl Add parameters for aclocal
-AC_SUBST(ACLOCAL_AMFLAGS, "-I M4")
-
-AC_LANG([C])
-
-AC_PROG_CC
-AM_PROG_CC_C_O
-AC_PROG_CXX
-AC_PROG_SED
-
-# Do not check for F77.
-define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
-
-AM_PROG_LIBTOOL
-LT_PROG_RC
-
-AC_PROG_INSTALL
-AC_PROG_LN_S
-
-#------------------------------------------------------------------------------------
-# Rules for library version information:
-#
-# 1. Start with version information of `0:0:0' for each libtool library.
-# 2. Update the version information only immediately before a public release of
-# your software. More frequent updates are unnecessary, and only guarantee
-# that the current interface number gets larger faster.
-# 3. If the library source code has changed at all since the last update, then
-# increment revision (`c:r:a' becomes `c:r+1:a').
-# 4. If any interfaces have been added, removed, or changed since the last update,
-# increment current, and set revision to 0.
-# 5. If any interfaces have been added since the last public release, then increment
-# age.
-# 6. If any interfaces have been removed since the last public release, then set age
-# to 0.
-
-SHARED_VERSION_INFO="1:8:1"
-
-
-
-
-
-AC_PROG_MAKE_SET
-AC_PROG_LN_S
-AC_PROG_MKDIR_P
-
-if test "x-$build_os-$host_os-$target_os" = x-mingw32-mingw32-mingw32 ; then
- AC_CHECK_PROG(DLLTOOL, dlltool, dlltool)
- AC_CHECK_PROG(DLLWRAP, dllwrap, dllwrap)
- AC_CHECK_PROG(PEXPORTS, pexports, pexports)
- fi
-
-AC_HEADER_STDC
-
-AC_CHECK_HEADERS(stdint.h sys/times.h)
-
-#====================================================================================
-# Couple of initializations here. Fill in real values later.
-
-SHLIB_VERSION_ARG=""
-
-#====================================================================================
-# Finished checking, handle options.
-
-AC_ARG_ENABLE(gcc-werror,
- AC_HELP_STRING([--enable-gcc-werror], [enable -Werror in all Makefiles]),
- ac_arg_gcc_werror=yes, ac_arg_gcc_werror=no)
-
-AC_ARG_ENABLE(gcc-pipe,
- AC_HELP_STRING([--disable-gcc-pipe], [disable gcc -pipe option ]),
- ac_arg_gcc_pipe="N", ac_arg_gcc_pipe="Y")
-
-AC_ARG_ENABLE(gcc-opt,
- AC_HELP_STRING([--disable-gcc-opt], [disable gcc optimisations ]),
- ac_arg_gcc_opt="N", ac_arg_gcc_opt="Y")
-
-AC_ARG_ENABLE(fftw,
- AC_HELP_STRING([--disable-fftw], [disable usage of FFTW ]),
- ac_arg_fftw="N", ac_arg_fftw="Y")
-
-AC_ARG_ENABLE(cpu-clip,
- AC_HELP_STRING([--disable-cpu-clip], [disable tricky cpu specific clipper]),
- ac_arg_cpu_clip="N", ac_arg_cpu_clip="Y")
-
-#====================================================================================
-# Check types and their sizes.
-
-AC_CHECK_SIZEOF(int,0)
-AC_CHECK_SIZEOF(long,0)
-AC_CHECK_SIZEOF(float,4)
-AC_CHECK_SIZEOF(double,8)
-
-#====================================================================================
-# Determine endian-ness of target processor.
-
-AC_C_FIND_ENDIAN
-
-AC_DEFINE_UNQUOTED(CPU_IS_BIG_ENDIAN, ${ac_cv_c_big_endian},
- [Target processor is big endian.])
-AC_DEFINE_UNQUOTED(CPU_IS_LITTLE_ENDIAN, ${ac_cv_c_little_endian},
- [Target processor is little endian.])
-
-#====================================================================================
-# Check for functions.
-
-AC_CHECK_FUNCS(malloc calloc free memcpy memmove alarm signal)
-
-AC_CHECK_LIB([m],floor)
-AC_CHECK_FUNCS(floor ceil fmod)
-
-AC_CHECK_SIGNAL(SIGALRM)
-
-AC_C99_FUNC_LRINT
-AC_C99_FUNC_LRINTF
-# AC_C99_FUNC_LLRINT Don't need this (yet?).
-
-case "x$ac_cv_c99_lrint$ac_cv_c99_lrintf" in
- xyesyes)
- ;;
- *)
- AC_MSG_WARN([[*** Missing C99 standard functions lrint() and lrintf().]])
- AC_MSG_WARN([[*** This may cause benign compiler warnings on some systems (ie Solaris).]])
- ;;
- esac
-
-#====================================================================================
-# Determine if the processor can do clipping on float to int conversions.
-
-if test x$ac_arg_cpu_clip = "xY" ; then
- AC_C_CLIP_MODE
-else
- echo "checking processor clipping capabilities... disabled"
- ac_cv_c_clip_positive=0
- ac_cv_c_clip_negative=0
- fi
-
-AC_DEFINE_UNQUOTED(CPU_CLIPS_POSITIVE, ${ac_cv_c_clip_positive},
- [Target processor clips on positive float to int conversion.])
-AC_DEFINE_UNQUOTED(CPU_CLIPS_NEGATIVE, ${ac_cv_c_clip_negative},
- [Target processor clips on negative float to int conversion.])
-
-#====================================================================================
-# Check for libsndfile which is required for the test and example programs.
-
-AC_ARG_ENABLE(sndfile,
- AC_HELP_STRING([--disable-sndfile], [disable support for sndfile (default=autodetect)]),
- [ enable_sndfile=$enableval ], [ enable_sndfile=yes ])
-
-# Check for pkg-config outside the if statement.
-PKG_PROG_PKG_CONFIG
-
-if test "x$enable_sndfile" = "xyes"; then
- PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.6, ac_cv_sndfile=1, ac_cv_sndfile=0)
-else
- ac_cv_sndfile=0
-fi
-
-AC_DEFINE_UNQUOTED([HAVE_SNDFILE],$ac_cv_sndfile,[Set to 1 if you have libsndfile.])
-
-if test x$ac_cv_sndfile = x1 ; then
- ac_cv_sndfile=yes
- HAVE_SNDFILE=1
-else
- ac_cv_sndfile=no
- HAVE_SNDFILE=0
- fi
-
-#====================================================================================
-# Check for ALSA.
-
-ALSA_LIBS=""
-
-if test x$enable_alsa != xno ; then
- AC_CHECK_HEADERS(alsa/asoundlib.h)
- if test x$ac_cv_header_alsa_asoundlib_h = xyes ; then
- ALSA_LIBS="-lasound"
- enable_alsa=yes
- fi
- fi
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc
^
|
-(directory)
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/ChangeLog
^
|
@@ -1,1102 +0,0 @@
-2011-08-15 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * configure.ac
- Add symbol support for kfreebsd-*-gnu-*.
-
- * configure.ac doc/Makefile.am
- Improve installation of html docs.
-
- * examples/audio_out.c tests/callback_hang_test.c
- Fix compiler warnings.
-
- * NEWS README Win32/config.h doc/*.html
- Updates for 0.1.8 release.
-
- * configure.ac
- Release 0.1.8.
-
-2011-02-22 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * tests/util.[ch]
- Rename function print_cpu_name() to get_cpu_name(). Add code for Mac OSX and
- FreeBSD.
-
- * tests/multichan_throughput_test.c tests/throughput_test.c
- Update to use get_cpu_name().
-
-2010-11-04 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/*.[ch]
- Fix typo in comments.
-
-2010-10-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/fastest_coeffs.h src/high_qual_coeffs.h src/mid_qual_coeffs.h
- Fix typo in comments.
-
- * configure.ac
- Add AM_SILENT_RULES.
-
- * doc/download.html
- Add a GPG signature.
-
-2010-09-27 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/float_cast.h
- Add lrint/lrintf version for Win64. Thanks to Dmitry Baikov.
-
-2010-01-10 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * examples/sndfile-resample.c
- Prevent creation of double length output files when conversion is restarted
- due to clipping of the output when the format is FLAC. This problem arises
- due to libsndfile's in ability to seek in a FLAC file during write.
-
- * src/samplerate.h tests/termination_test.c
- Revert change that moved the src_ratio field to the start of SRC_DATA
- struct. This change does have some merit, but is not worth it considering
- that its an API change. This idea will be reconsidered when the API does
- change.
-
-2009-12-01 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * doc/win32.html
- Update instructions.
-
- * Win32/Makefile.msvc
- Add /Zm200 to CFLAGS.
-
-2009-11-29 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/common.h
- Add macro UNUSED for marking function parameters as unused.
-
-2009-10-07 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * tests/misc_test.c
- Add zero_input_test() from debian bug #506722.
-
- * src/src_linear.c src/src_zoh.c
- Fix for bug in zero_input_test(). Both these converters crashed if the
- input_frames field of SRC_DATA was zero.
-
-2009-09-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * M4/endian.m4
- Fix detection of CPU endian-ness when cross compiling.
-
-2009-08-24 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * tests/termination_test.c
- Add test to detect a particular kind of termination error.
-
- * src/src_sinc.c
- Fix a termination condition bug.
-
-2009-06-25 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/samplerate.h
- Change definition of SRC_STATE to be kinder to some slightly broken
- compilers. Thanks to Rob Brown for suggesting this fix.
-
-2009-04-11 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * M4/check_signal.m4 M4/clip_mode.m4 M4/lrint.m4 M4/lrintf.m4
- New files used instead of acinclude.m4.
-
-2009-04-03 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/samplerate.h
- Move src_ratio field to the start of the SRC_DATA struct to ensure it gets
- aligned correctly when either the library or client code gets compiled with
- -malign-double.
-
- * configure.ac
- Bump version to 1.0.0 due to API change.
-
-2009-02-26 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * Win32/Makefile.msvc
- Add /Zm1000 to the CFLAGS as suggested by Kun Niu.
-
- * doc/api_full.html doc/api_callback.html
- Improve explanation of use of src_set_ratio() function.
-
-2009-02-14 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/common.h src/samplerate.c
- Add new error value SRC_ERR_SINC_PREPARE_DATA_BAD_LEN.
-
- * src/common.h
- Add WARN_UNUSED macro.
-
- * src/src_sinc.c
- Fix a segfault which occurs when memcpy is passed a bad length parameter.
- This bug has zero security implications beyond the ability to cause a
- program hitting this bug to exit immediately with a segfault.
- See : http://www.mega-nerd.com/erikd/Blog/2009/Feb/14/index.html
- Thanks to David Cournapeau and Lev Givon for the bug report.
-
- * 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
- Fix SRC_ERR_BAD_SRC_RATIO error string. Thanks David Cournapeau.
-
-2009-01-30 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/src_sinc.c
- Replace C99 "variable length arrays" with arrays allocated on the heap so
- that libsamplerate can be compiled with crappy compilers like MSVC.
-
-2009-01-27 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * configure.ac NEWS README doc/*.html
- Updates for 0.1.6 release.
-
-2009-01-12 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * tests/termination_test.c
- Fix termination test error on x86_64. Error probably due to difference in
- rounding.
-
-2009-01-11 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * doc/win32.html
- Update win32 compile instructions to explain that this release cannot be
- compiled using the microsoft compiler.
-
- * NEWS README doc/*.html
- Updates for 0.1.5 release.
-
- * Makefile.am configure.ac
- Remove Win32 directory from distributed tarball.
-
-2008-12-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * tests/multi_channel_test.c tests/multichan_throughput_test.c
- Update tests to make sure tests include tests for 10 channels.
-
- * src/src_sinc.c
- Make 6 channel Sinc conversion another special case.
- Use Duff's Device to speed up the multi-channel case.
-
- * tests/multi_channel_test.c
- Only test 1, 2 and 3 channels for ZOH and linear converters.
-
-2008-12-15 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-
- * src/samplerate.c
- Move variable definition out one scope level to avoid warnings from static
- analysis tools. Thanks Erik Hovland.
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/Makefile.am
^
|
@@ -1,7 +0,0 @@
-htmldir = $(htmldocdir)
-html_DATA = SRC.png SRC.css index.html license.html history.html download.html \
- lists.html quality.html win32.html faq.html api.html \
- api_simple.html api_callback.html api_full.html api_misc.html
-
-EXTRA_DIST = $(html_DATA)
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/Makefile.in
^
|
@@ -1,527 +0,0 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-VPATH = @srcdir@
-am__is_gnu_make = { \
- if test -z '$(MAKELEVEL)'; then \
- false; \
- elif test -n '$(MAKE_HOST)'; then \
- true; \
- elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
- true; \
- else \
- false; \
- fi; \
-}
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = doc
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/M4/check_signal.m4 \
- $(top_srcdir)/M4/clip_mode.m4 $(top_srcdir)/M4/endian.m4 \
- $(top_srcdir)/M4/libtool.m4 $(top_srcdir)/M4/lrint.m4 \
- $(top_srcdir)/M4/lrintf.m4 $(top_srcdir)/M4/ltoptions.m4 \
- $(top_srcdir)/M4/ltsugar.m4 $(top_srcdir)/M4/ltversion.m4 \
- $(top_srcdir)/M4/lt~obsolete.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/src/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-SOURCES =
-DIST_SOURCES =
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(htmldir)"
-DATA = $(html_DATA)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-am__DIST_COMMON = $(srcdir)/Makefile.in ChangeLog NEWS
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@
-ALSA_LIBS = @ALSA_LIBS@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-COMPILER_IS_GCC = @COMPILER_IS_GCC@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DLLWRAP = @DLLWRAP@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FFTW3_CFLAGS = @FFTW3_CFLAGS@
-FFTW3_LIBS = @FFTW3_LIBS@
-FGREP = @FGREP@
-GCC_MAJOR_VERSION = @GCC_MAJOR_VERSION@
-GREP = @GREP@
-HAVE_FFTW3 = @HAVE_FFTW3@
-HAVE_SNDFILE = @HAVE_SNDFILE@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/NEWS
^
|
@@ -1,36 +0,0 @@
-Version 0.1.8 (2011-08-15)
- * Minor bug fixes and upates.
-
-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).
-
-Version 0.1.5 (2009-01-11)
- * Optimisation resulting dramatic throughput improvements.
-
-Version 0.1.4 (2008-07-02)
- * Fix bug which causes a segfault with extremely low conversion ratios.
-
-Version 0.1.3 (2008-03-23)
- * Huge improvement to the quality of conversion with the
- SRC_SINC_MEDIUM_QUALITY and SRC_SINC_BEST_QUALITY converters.
- * Minor bug fixes.
-
-Version 0.1.2 (2004-09-12)
- * Fixed where callback based API wasn't being reset properly.
- * Minor bug fixes.
-
-Version 0.1.1 (2004-07-17)
- * Fixed bug in callback based API.
- * Fixed a bug brought to light by aggressive optimisations of gcc-3.4.
- * Minor bug fixes.
-
-Version 0.1.0 (2004-03-14)
- * Added callback based API.
- * Added a pair of functions for doing short to float and float to short
- conversions on an arrays of data.
- * Many minor bug fixes.
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/SRC.css
^
|
@@ -1,84 +0,0 @@
-body {
- background : black ;
- color : white ;
- font-family : arial, helvetica, sans-serif ;
-}
-td {
- font-family : arial, helvetica, sans-serif ;
- background : black ;
- color : white ;
-}
-center {
- font-family : arial, helvetica, sans-serif ;
-}
-div {
- line-height: 1.3;
-}
-p {
- font-family : arial, helvetica, sans-serif ;
- text-align : left ;
- line-height: 1.3;
- margin-left : 3% ;
- margin-right : 3% ;
-}
-.indent_block {
- font-family : arial, helvetica, sans-serif ;
- text-align : left ;
- margin-left : 10% ;
- margin-right : 10% ;
-}
-br {
- font-family : arial, helvetica, sans-serif ;
-}
-form {
- font-family : arial, helvetica, sans-serif ;
-}
-ul {
- font-family : arial, helvetica, sans-serif ;
- text-align : left ;
- line-height: 1.3;
- margin-left : 3% ;
- margin-right : 6% ;
-}
-ol {
- font-family : arial, helvetica, sans-serif ;
- text-align : left ;
- line-height: 1.3;
- margin-left : 3% ;
- margin-right : 6% ;
-}
-dl {
- font-family : arial, helvetica, sans-serif ;
- text-align : left ;
- margin-left : 3% ;
- margin-right : 3% ;
-}
-h1 {
- font-size : xx-large ;
- background : black ;
- color : #FB1465 ;
- text-align : left ;
- margin-left : 3% ;
- margin-right : 3% ;
-}
-h2 {
- font-size : x-large ;
- background : black ;
- color : #FB1465 ;
- text-align : left ;
- margin-left : 3% ;
- margin-right : 3% ;
-}
-h3 {
- font-size : large ;
- background : black ;
- color : #FB1465 ;
- text-align : left ;
- margin-left : 3% ;
- margin-right : 3% ;
-}
-pre {
- font-family : courier, monospace ;
- font-size : medium ;
-}
-
|
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/SRC.png
^
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/api.html
^
|
@@ -1,127 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-
-<HEAD>
- <TITLE>
- 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.8">
- <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">
-</HEAD>
-
-<BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FB1465" VLINK="#FB1465" ALINK="#FB1465">
-<!-- pepper -->
-<CENTER>
- <IMG SRC="SRC.png" HEIGHT=100 WIDTH=760 ALT="SRC.png">
-</CENTER>
-<!-- pepper -->
-<BR>
-<!-- pepper -->
-<TABLE ALIGN="center" WIDTH="98%">
-<TR>
-<TD VALIGN="top">
-<BR>
-<DIV CLASS="nav">
- <BR>
- <A HREF="index.html">Home</A><BR>
- <A HREF="license.html">License</A><BR>
- <A HREF="history.html">History</A><BR>
- <A HREF="download.html">Download</A><BR>
- <A HREF="quality.html">Quality</A><BR>
- <A HREF="api.html">API</A><BR>
- <A HREF="bugs.html">Bug Reporting</A><BR>
- <A HREF="win32.html">On Win32</A><BR>
- <A HREF="faq.html">FAQ</A><BR>
- <A HREF="lists.html">Mailing Lists</A><BR>
- <A HREF="ChangeLog">ChangeLog</A><BR>
-<BR>
-<DIV CLASS="block">
-Author :<BR>Erik de Castro Lopo
-<!-- pepper -->
-<BR><BR>
-<!-- pepper -->
-
-</DIV>
- <IMG SRC=
- "/cgi-bin/Count.cgi?ft=6|frgb=55;55;55|tr=0|md=6|dd=B|st=1|sh=1|df=src_api.dat"
- HEIGHT=30 WIDTH=100 ALT="counter.gif">
-</DIV>
-
-</TD>
-<!-- pepper -->
-<!-- ######################################################################## -->
-<!-- pepper -->
-<TD VALIGN="top">
-<DIV CLASS="block">
-
-<H1><B>Applications Programming Interface</B></H1>
-<P>
-The publically callable functions of libsamplerate are all listed in the
-<B><samplerate.h></B> header file.
-In order to use any of the functionality of libsamplerate, you need to add
-</P>
-<PRE>
- #include <samplerate.h>
-</PRE>
-<P>
-to the top of any function that call any of the following functions.
-You will also need to link you binary with the libsamplerate library.
-</P>
-<P>
-The API allows three methods for accessing the capabilies of the library:
-</P>
-<UL>
- <LI>A <A HREF="api_simple.html">simple interface</A> 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.
- <LI>A <A HREF="api_full.html">more fully featured interface</A> which allows time
- varying sample rate conversion on streaming data (again one or more
- channels).
- <LI>A <A HREF="api_callback.html">callback interface</A> 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
- supplied callback function to obtain its input.
- This interface is particularly well suited to applications where the output
- sample rate is varied with time.
-</UL>
-
-<P>
-<b>NB :</b> All three access methods are able to process multi channel interleaved
-data.
-</P>
-
-<P>
-The parts of the API which are common to all three interfaces are:
-</P>
-<UL>
- <LI> The <A HREF="api_misc.html#ErrorReporting">error reporting</A> mechanisim.
- <LI> The available <A HREF="api_misc.html#Converters">converter</A> types.
- <LI> The <A HREF="api_misc.html#SRC_DATA">SRC_DATA</A> struct.
-</UL>
-<P>
-All three versions of the API are restricted to operating on buffers of ISO C
-Standard <B>float</B> data.
-However, there are two
- <A HREF="api_misc.html#Aux">auxillary functions</A>
-for converting arrays of float data to and from short data.
-</P>
-
-<P>
-<B>Note:</B> The <B>tests/</B> and <B>examples/</B> directories of the source code
-distribution contain numerous example programs showing the use of the library.
-</P>
-
-<!-- pepper -->
-<!-- <A HREF="mailto:aldel0305@mega-nerd.com">For the spam bots</A> -->
-<!-- pepper -->
-
-</DIV>
-</TD></TR>
-</TABLE>
-
-</BODY>
-</HTML>
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/api_callback.html
^
|
@@ -1,176 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-
-<HEAD>
- <TITLE>
- 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.8">
- <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">
-</HEAD>
-
-<BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FB1465" VLINK="#FB1465" ALINK="#FB1465">
-<!-- pepper -->
-<CENTER>
- <IMG SRC="SRC.png" HEIGHT=100 WIDTH=760 ALT="SRC.png">
-</CENTER>
-<!-- pepper -->
-<BR>
-<!-- pepper -->
-<TABLE ALIGN="center" WIDTH="98%">
-<TR>
-<TD VALIGN="top">
-<BR>
-<DIV CLASS="nav">
- <BR>
- <A HREF="index.html">Home</A><BR>
- <BR>
- <A HREF="api_simple.html">Simple API</A><BR>
- <A HREF="api_full.html">Full API</A><BR>
- <A HREF="api_callback.html">Callback API</A><BR>
- <A HREF="api_misc.html">Miscellaneous</A><BR>
- <A HREF="api_misc.html#ErrorReporting">Error Handling</A><BR>
-<BR>
-<DIV CLASS="block">
-Author :<BR>Erik de Castro Lopo
-<!-- pepper -->
-<BR><BR>
-<!-- pepper -->
-
-</DIV>
- <IMG SRC=
- "/cgi-bin/Count.cgi?ft=6|frgb=55;55;55|tr=0|md=6|dd=B|st=1|sh=1|df=src_api.dat"
- HEIGHT=30 WIDTH=100 ALT="counter.gif">
-</DIV>
-
-</TD>
-<!-- pepper -->
-<!-- ######################################################################## -->
-<!-- pepper -->
-<TD VALIGN="top">
-<DIV CLASS="block">
-
-<H1><B>Callback API</B></H1>
-<P>
-The callback API consists of the following functions :
-</P>
-<PRE>
- typedef long (*src_callback_t) (void *cb_data, float **data) ;
-
- SRC_STATE* <A HREF="#Init">src_callback_new</A> (src_callback_t func,
- int converter_type, int channels,
- int *error, void* cb_data) ;
-
- SRC_STATE* <A HREF="api_full.html#CleanUp">src_delete</A> (SRC_STATE *state) ;
-
- long <A HREF="#Read">src_callback_read</A> (SRC_STATE *state, double src_ratio,
- long frames, float *data) ;
-
- int <A HREF="api_full.html#Reset">src_reset</A> (SRC_STATE *state) ;
- int <A HREF="api_full.html#SetRatio">src_set_ratio</A> (SRC_STATE *state, double new_ratio) ;
-</PRE>
-<BR>
-
-<P>
-Like the
- <A HREF="api_simple.html">simple API</a>
-and the
- <A HREF="api_full.html">full API</a>,
-the callback based API is able to operate on interleaved multi channel data.
-</P>
-
-<P>
-An example of the use of the callback based API can be found in the
-<B>varispeed-play</B> program in the <B>examples/</B> directory of the
-source code tarball.
-</P>
-
-<!-- pepper -->
-<A NAME="Init"></A>
-<H3><BR>Initialisation</H3>
-<PRE>
- SRC_STATE* src_callback_new (src_callback_t func,
- int converter_type, int channels,
- int *error, void* cb_data) ;
-</PRE>
-<P>
-The <B>src_callback_new</B> function returns an anonymous pointer to a
-sample rate converter callback object, src_state.
-This is the same type of object as that returned by <A HREF="api_full.html#init">
-src_new</A>, but with different internal state.
-Although these are the same object type, they cannot be used interchangeably.
-If an error occurs the function returns a NULL pointer and fills in the
-error value pointed to by the <B>error</B> pointer supplied by the caller.
-</P>
-<P>
-The caller then passes the SRC_STATE object to the <B>src_callback_read</B>
-function to pull data out of the converter.
-When the caller is finished with the converter they should pass it to the
-clean up function <A HREF="api_full.html#CleanUp">src_delete</A>.
-</P>
-<P>
-The <B>func</B> parameter is a user supplied function which must match the
-<B>src_callback_t</B> type signature while <B>cb_data</B> is a pointer to
-data which be passed as the first parameter to the user supplied callback
-function.
-This function is called by the converter whenever it needs input data as a
-result of being calls to <B>src_callback_read</B>.
-</P>
-<P>
-If the converter was initialised to work with more than one channel, the
-callback function must work with mutiple channels of interleaved data.
-The callback function should return the number of frames it supplying to
-the converter.
-For multi channel files, this return value should be the number of floats
-divided by the number of channels.
-</P>
-<P>
-The converter must be one of the supplied converter types documented
-<A HREF="api_misc.html#Converters">here</A>.
-</P>
-<P>
-The caller then passes the SRC_STATE pointer to the <B>src_callback_read</B>
-function to pull data out of the converter.
-</P>
-
-<!-- pepper -->
-<A NAME="Read"></A>
-<H3><BR>Callback Read</H3>
-<PRE>
- long src_callback_read (SRC_STATE *state, double src_ratio,
- long frames, float *data) ;
-</PRE>
-<P>
-The <B>src_callback_read</B> function is passed the
- <A HREF="api_misc.html#SRC_DATA"><B>SRC_STATE</B></A>
-pointer returned by <B>src_callback_new</B>, the coversion ratio
-(output_sample_rate / input_sample_rate), the maximum number of output frames
-to generate and a pointer to a buffer in which to place the output data.
-For multi channel files, the data int the output buffer is stored in
-interleaved format.
-</P>
-<P>
-The <B>src_callback_read</B> function returns the number of frames generated
-or zero if an error occurs or it runs out of input (ie the user supplied
-callback function returns zero and there is no more data buffered internally).
-If an error has occurred, the function <A HREF="api_misc.html#ErrorReporting">
-src_error</A> will return non-zero.
-</P>
-
-<P>
-See also :
- <A HREF="api_full.html#SetRatio"><B>src_set_ratio</B></A>
-</P>
-
-<!-- pepper -->
-
-</DIV>
-</TD></TR>
-</TABLE>
-
-</BODY>
-</HTML>
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/api_full.html
^
|
@@ -1,199 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-
-<HEAD>
- <TITLE>
- 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.8">
- <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">
-</HEAD>
-
-<BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FB1465" VLINK="#FB1465" ALINK="#FB1465">
-<!-- pepper -->
-<CENTER>
- <IMG SRC="SRC.png" HEIGHT=100 WIDTH=760 ALT="SRC.png">
-</CENTER>
-<!-- pepper -->
-<BR>
-<!-- pepper -->
-<TABLE ALIGN="center" WIDTH="98%">
-<TR>
-<TD VALIGN="top">
-<BR>
-<DIV CLASS="nav">
- <BR>
- <A HREF="index.html">Home</A><BR>
- <BR>
- <A HREF="api_simple.html">Simple API</A><BR>
- <A HREF="api_full.html">Full API</A><BR>
- <A HREF="api_callback.html">Callback API</A><BR>
- <A HREF="api_misc.html">Miscellaneous</A><BR>
- <A HREF="api_misc.html#ErrorReporting">Error Handling</A><BR>
-<BR>
-<DIV CLASS="block">
-Author :<BR>Erik de Castro Lopo
-<!-- pepper -->
-<BR><BR>
-<!-- pepper -->
-
-</DIV>
- <IMG SRC=
- "/cgi-bin/Count.cgi?ft=6|frgb=55;55;55|tr=0|md=6|dd=B|st=1|sh=1|df=src_api.dat"
- HEIGHT=30 WIDTH=100 ALT="counter.gif">
-</DIV>
-
-</TD>
-<!-- pepper -->
-<!-- ######################################################################## -->
-<!-- pepper -->
-<TD VALIGN="top">
-<DIV CLASS="block">
-
-<H1><B>Full API</B></H1>
-<P>
-The full API consists of the following functions :
-</P>
-<PRE>
- SRC_STATE* <A HREF="#Init">src_new</A> (int converter_type, int channels, int *error) ;
- SRC_STATE* <A HREF="#CleanUp">src_delete</A> (SRC_STATE *state) ;
-
- int <A HREF="#Process">src_process</A> (SRC_STATE *state, SRC_DATA *data) ;
- int <A HREF="#Reset">src_reset</A> (SRC_STATE *state) ;
- int <A HREF="#SetRatio">src_set_ratio</A> (SRC_STATE *state, double new_ratio) ;
-</PRE>
-
-<A NAME="Init"></A>
-<H3><BR>Initialisation</H3>
-<PRE>
- SRC_STATE* src_new (int converter_type, int channels, int *error) ;
-</PRE>
-<P>
-The <B>src_new</B> function returns an anonymous pointer to a sample rate
-converter object, src_state.
-If an error occurs the function returns a NULL pointer and fills in the
-error value pointed to by the <B>error</B> pointer supplied by the caller.
-The converter must be one of the supplied converter types documented
-<A HREF="api_misc.html#Converters">here</A>.
-</P>
-
-<A NAME="CleanUp"></A>
-<H3><BR>Cleanup</H3>
-<PRE>
- SRC_STATE* src_delete (SRC_STATE *state) ;
-</PRE>
-<P>
-The <B>src_delete</B> function frees up all memory allocated for the given sample
-rate converter object and returns a NULL pointer.
-The caller is responsible for freeing any memory passed to the sample rate converter
-via the pointer to the <B>SRC_DATA</B> struct.
-</P>
-
-<A NAME="Process"></A>
-<H3><BR>Process</H3>
-<PRE>
- int src_process (SRC_STATE *state, SRC_DATA *data) ;
-</PRE>
-<P>
-The <B>src_process</B> function processes the data provided by the caller
-in an <B>SRC_DATA</B> struct using the sample rate converter object specified
-by the <B>SRC_STATE</B> pointer.
-When operating on streaming data, this function can be called over and over again,
-with each new call providing new input data and returning new output data.
-</P>
-
-<P>
-The <B>SRC_DATA</B> struct passed as the second parameter to the <B>src_process</B>
-function has the following fields:
-</P>
-<PRE>
- typedef struct
- { float *data_in, *data_out ;
-
- long input_frames, output_frames ;
- long input_frames_used, output_frames_gen ;
-
- int end_of_input ;
-
- double src_ratio ;
- } SRC_DATA ;
-</PRE>
-<P>
-The fields of this struct which must be filled in by the caller are:
-</P>
-<PRE>
- data_in : A pointer to the input data samples.
- input_frames : The number of frames of data pointed to by data_in.
- data_out : A pointer to the output data samples.
- output_frames : Maximum number of frames pointer to by data_out.
- src_ratio : Equal to output_sample_rate / input_sample_rate.
- end_of_input : Equal to 0 if more input data is available and 1
- otherwise.
-</PRE>
-<P>
-Note that the data_in and data_out arrays may not overlap. If they do, the
-library will return an error code.
-</P>
-<P>
-When the <B>src_process</B> function returns <B>output_frames_gen</B> will be
-set to the number of output frames generated and <B>input_frames_used</B> will
-be set to the number of input frames consumed to generate the provided number of
-output frames.
-</P>
-
-<P>
-The <B>src_process</B> function returns non-zero if an error occurs.
-The non-zero error return value can be decoded into a text string using the function
-documented <A HREF="api_misc.html#ErrorReporting">here</A>.
-</P>
-
-<A NAME="Reset"></A>
-<H3><BR>Reset</H3>
-<PRE>
- int src_reset (SRC_STATE *state) ;
-</PRE>
-<P>
-The <B>src_reset</B> function resets the internal state of the sample rate
-converter object to the same state it had immediately after its creation using
-<B>src_new</B>.
-This should be called whenever a sample rate converter is to be used on two
-separate, unrelated pieces of audio.
-</P>
-
-<A NAME="SetRatio"></A>
-<H3><BR>Set Ratio</H3>
-<PRE>
- int src_set_ratio (SRC_STATE *state, double new_ratio) ;
-</PRE>
-
-<p>
-When using the <B>src_process</B> or <B>src_callback_process</B> APIs and
-updating the <B>src_ratio</B> field of the <B>SRC_STATE</B> struct, the library
-will try to smoothly transition between the conversion ratio of the last call
-and the conversion ratio of the current call.
-<p/>
-
-<P>
-If the user want to bypass this smooth transition and achieve a step response in
-the conversion ratio, the <B>src_set_ratio</B> function can be used to set the
-starting conversion ratio of the next call to <B>src_process</B> or
-<B>src_callback_process</B>.
-<p/>
-
-<P>
-This function returns non-zero on error and the error return value can be
-decoded into a text string using the function documented
-<A HREF="api_misc.html#ErrorReporting">here</A>.</P>
-
-<!-- <A HREF="mailto:aldel@mega-nerd.com">For the spam bots</A> -->
-
-</DIV>
-</TD></TR>
-</TABLE>
-
-</BODY>
-</HTML>
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/api_misc.html
^
|
@@ -1,226 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-
-<HEAD>
- <TITLE>
- 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.8">
- <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">
-</HEAD>
-
-<BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FB1465" VLINK="#FB1465" ALINK="#FB1465">
-<!-- pepper -->
-<CENTER>
- <IMG SRC="SRC.png" HEIGHT=100 WIDTH=760 ALT="SRC.png">
-</CENTER>
-<!-- pepper -->
-<BR>
-<!-- pepper -->
-<TABLE ALIGN="center" WIDTH="98%">
-<TR>
-<TD VALIGN="top">
-<BR>
-<DIV CLASS="nav">
- <BR>
- <A HREF="index.html">Home</A><BR>
- <BR>
- <A HREF="api_simple.html">Simple API</A><BR>
- <A HREF="api_full.html">Full API</A><BR>
- <A HREF="api_misc.html#ErrorReporting">Error Handling</A><BR>
- <A HREF="api_misc.html">Miscellaneous</A><BR>
-<BR>
-<DIV CLASS="block">
-Author :<BR>Erik de Castro Lopo
-<!-- pepper -->
-<BR><BR>
-<!-- pepper -->
-
-</DIV>
- <IMG SRC=
- "/cgi-bin/Count.cgi?ft=6|frgb=55;55;55|tr=0|md=6|dd=B|st=1|sh=1|df=src_api.dat"
- HEIGHT=30 WIDTH=100 ALT="counter.gif">
-</DIV>
-
-</TD>
-<!-- pepper -->
-<!-- ######################################################################## -->
-<!-- pepper -->
-<TD VALIGN="top">
-<DIV CLASS="block">
-
-<H1><B>Miscellaneous API Documentation</B></H1>
-<A NAME="ErrorReporting"></A>
-<H3><BR>Error Reporting</H3>
-<P>
-Most of the API functions either return an integer error (ie <B>src_simple</B>
-and <B>src_process</B>) or return an integer error value via an int pointer
-parameter (<B>src_new</B>).
-These integer error values can be converted into a human readable text strings by
-calling the function:
-</P>
-<PRE>
- const char* src_strerror (int error) ;
-</PRE>
-<P>
-which will return an error string for valid error numbers, the string "No Error"
-for an error value of zero or a NULL pointer if no error message has been defined
-for that error value.
-</P>
-
-<A NAME="Converters"></A>
-<H3><BR>Converters</H3>
-<P>
-Secret Rabbit Code has a number of different converters which can be selected
-using the <B>converter_type</B> parameter when calling <B>src_simple</B> or
-<b>src_new</B>.
-Currently, the five converters available are:
-</P>
-<PRE>
- enum
- {
- SRC_SINC_BEST_QUALITY = 0,
- SRC_SINC_MEDIUM_QUALITY = 1,
- SRC_SINC_FASTEST = 2,
- SRC_ZERO_ORDER_HOLD = 3,
- SRC_LINEAR = 4
- } ;
-</PRE>
-<P>
-As new converters are added, they will given a number corresponding to the
-next inetger.
-</P>
-
-<P>
-The details of these converters are as follows:
-</P>
-<UL>
- <LI> <B>SRC_SINC_BEST_QUALITY</B> - This is a bandlimited interpolator derived
- from the mathematical <B>sinc</B> function and this is the highest
- quality sinc based converter, providing a worst case Signal-to-Noise
- Ratio (SNR) of 97 decibels (dB) at a bandwidth of 97%.
- All three SRC_SINC_* converters are based on the techniques of
- <A HREF="http://ccrma-www.stanford.edu/~jos/resample/">Julius O. Smith</A>
- although this code was developed independantly.
- <LI> <B>SRC_SINC_MEDIUM_QUALITY</B> - This is another bandlimited interpolator
- much like the previous one. It has an SNR of 97dB and a bandwidth of 90%.
- The speed of the conversion is much faster than the previous one.
- <LI> <B>SRC_SINC_FASTEST</B> - This is the fastest bandlimited interpolator and
- has an SNR of 97dB and a bandwidth of 80%.
- <LI><B>SRC_ZERO_ORDER_HOLD</B> - A Zero Order Hold converter (interpolated value
- is equal to the last value). The quality is poor but the conversion speed is
- blindlingly fast.
- <li><b>SRC_LINEAR</b> - A linear converter. Again the quality is poor, but the
- conversion speed is blindingly fast.
-</UL>
-<P>
-There are two functions that give either a (text string) name or description
-for each converter:
-</P>
-<PRE>
- const char *src_get_name (int converter_type) ;
- const char *src_get_description (int converter_type) ;
-</PRE>
-<P>
-The name will typically be a short string for use in a dialog box, while the
-description string is longer.
-</P>
-<P>
-Both of these functions return a NULL pointer if there is no converter for the
-given <B>converter_type</B> value.
-Since the converters have consecutive <B>converter_type</B> values, the caller
-is easily able to figure out the number of converters at run time.
-This enables a binary dynamically linked against an old version of the library
-to know about converters from later versions of the library as they become
-available.
-</P>
-
-<A NAME="SRC_DATA"></A>
-<H3><BR>SRC_DATA</H3>
-<P>
-Both the simple and the full featured versions of the API use the <B>SRC_DATA</B>
-struct to pass audio and control data into the sample rate converter.
-This struct is defined as:
-</P>
-<PRE>
- typedef struct
- { float *data_in, *data_out ;
-
- long input_frames, output_frames ;
- long input_frames_used, output_frames_gen ;
-
- int end_of_input ;
-
- double src_ratio ;
- } SRC_DATA ;
-</PRE>
-<P>
-The <B>data_in</B> pointer is used to pass audio data into the converter while the
-<B>data_out</B> pointer supplies the converter with an array to hold the converter's
-output.
-For a converter which has been configured for mulitchannel operation, these pointers
-need to point to a single array of interleaved data.
-</P>
-<P>
-The <B>input_frames</B> and <B>output_frames</B> fields supply the converter with
-the lengths of the arrays (in frames) pointed to by the <B>data_in</B> and
-<b>data_out</B> pointers respectively.
-For monophinc data, these values would indicate the length of the arrays while
-for multi channel data these values would be equal to the the length of the array
-divided by the number of channels.
-</P>
-
-<P>
-The <B>end_of_input</B> field is only used when the sample rate converter is used
-by calling the <B>src_process</B> function.
-In this case it should be set to zero if more buffers are to be passed to the
-converter and 1 if the current buffer is the last.
-</P>
-<P>
-Finally, the <B>src_ratio</B> field specifies the conversion ratio defined as
-the input sample rate divided by the output sample rate.
-For a connected set of buffers, this value can be varies on each call to
-<B>src_process</B> resulting in a time varying sample rate conversion
-process.
-For time varying sample rate conversions, the ratio will be linearly
-interpolated between the <B>src_ratio</B> value of the previous call
-to <B>src_process</B> and the value for the current call.
-</P>
-<P>
-The <B>input_frames_used</B> and <B>output_frames_gen</B> fields are set by the
-converter to inform the caller of the number of frames consumed from the
-<B>data_in</B> array and the number of frames generated in the <B>data_out</B>
-array respectively.
-These values are for the current call to <B>src_process</B> only.
-</P>
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/api_simple.html
^
|
@@ -1,146 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-
-<HEAD>
- <TITLE>
- 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.8">
- <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">
-</HEAD>
-
-<BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FB1465" VLINK="#FB1465" ALINK="#FB1465">
-<!-- pepper -->
-<CENTER>
- <IMG SRC="SRC.png" HEIGHT=100 WIDTH=760 ALT="SRC.png">
-</CENTER>
-<!-- pepper -->
-<BR>
-<!-- pepper -->
-<TABLE ALIGN="center" WIDTH="98%">
-<TR>
-<TD VALIGN="top">
-<BR>
-<DIV CLASS="nav">
- <BR>
- <A HREF="index.html">Home</A><BR>
- <BR>
- <A HREF="api_simple.html">Simple API</A><BR>
- <A HREF="api_full.html">Full API</A><BR>
- <A HREF="api_callback.html">Callback API</A><BR>
- <A HREF="api_misc.html">Miscellaneous</A><BR>
- <A HREF="api_misc.html#ErrorReporting">Error Handling</A><BR>
-<BR>
-<DIV CLASS="block">
-Author :<BR>Erik de Castro Lopo
-<!-- pepper -->
-<BR><BR>
-<!-- pepper -->
-
-</DIV>
- <IMG SRC=
- "/cgi-bin/Count.cgi?ft=6|frgb=55;55;55|tr=0|md=6|dd=B|st=1|sh=1|df=src_api.dat"
- HEIGHT=30 WIDTH=100 ALT="counter.gif">
-</DIV>
-
-</TD>
-<!-- pepper -->
-<!-- ######################################################################## -->
-<!-- pepper -->
-<TD VALIGN="top">
-<DIV CLASS="block">
-
-<H1><B>Simple API</B></H1>
-
-<P>
-<B>Important Note:</B>
-The simple API is not designed to work on small chunks of a larger piece of
-audio.
-If you attempt to use it this way you are doing it wrong and will not get the
-results you want.
-For processing audio data in chunks you <b>must</b> use the
- <a href="api_full.html">full api</a>
-or the
- <a href="api_callback.html">callback based api</a>.
-</P>
-
-<br/><br/>
-
-<P>
-The simple API consists of a single function :
-</P>
-<PRE>
- int src_simple (SRC_DATA *data, int converter_type, int channels) ;
-</PRE>
-<P>
-The use of this function rather than the more fully featured API requires the caller
-to know the total length of the input data before hand and that all input and output
-data can be held in the system's memory at once.
-It also assumes that there is a single constant ratio between input and output sample
-rates.
-<!--
-If these conditions cannot be met, the full featured API should be used instead.
-In addition, this documentation is complemented by this
-<A HREF="ex_simple.html">example code</A>. -->
-</P>
-
-<P>
-Dealing with the easy stuff first, the <B>converter_type</B> parameter should be
-one of the values defined in <B>samplerate.h</B> and documented
-<A HREF="api_misc.html#Converters">here</A> while the <b>channels</b> parameter
-specifies the number of interleaved channels that the sample rate converter
-is being asked to process (number of input channels and output channels is always
-equal).
-There is no hard upper limit on the number of channels; it is limited purely
-by the amount of memory available.
-</P>
-
-
-<P>
-The first parameter to <B>src_simple</B> is a pointer to an <B>SRC_DATA</B> struct
-(more info <A HREF="api_misc.html#SRC_DATA">here</A>) defined as follows:
-</P>
-<PRE>
- typedef struct
- { float *data_in, *data_out ;
-
- long input_frames, output_frames ;
- long input_frames_used, output_frames_gen ;
-
- int end_of_input ;
-
- double src_ratio ;
- } SRC_DATA ;
-</PRE>
-<P>
-The fields of this struct which must be filled in by the caller are:
-</P>
-<PRE>
- data_in : A pointer to the input data samples.
- input_frames : The number of frames of data pointed to by data_in.
- data_out : A pointer to the output data samples.
- output_frames : Maximum number of frames pointer to by data_out.
- src_ratio : Equal to output_sample_rate / input_sample_rate.
-</PRE>
-<P>
-When the <B>src_simple</B> function returns <B>output_frames_gen</B> will be
-set to the number of output frames generated and <B>input_frames_used</B> will
-be set to the number of input frames used to generate the provided number of
-output frames.
-</P>
-<P>
-The <B>src_simple</B> function returns a non-zero value when an error occurs.
-See <A HREF="api_misc.html#ErrorReporting">here</A> for how to convert the error value into
-a text string.
-</P>
-
-</DIV>
-</TD></TR>
-</TABLE>
-
-</BODY>
-</HTML>
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/download.html
^
|
@@ -1,90 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-
-<HEAD>
- <TITLE>
- 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.8">
- <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">
-</HEAD>
-
-<BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FB1465" VLINK="#FB1465" ALINK="#FB1465">
-<!-- pepper -->
-<CENTER>
- <IMG SRC="SRC.png" HEIGHT=100 WIDTH=760 ALT="SRC.png">
-</CENTER>
-<!-- pepper -->
-<BR>
-<!-- pepper -->
-<TABLE ALIGN="center" WIDTH="98%">
-<TR>
-<TD VALIGN="top">
-<BR>
-<DIV CLASS="nav">
- <BR>
- <A HREF="index.html">Home</A><BR>
- <A HREF="license.html">License</A><BR>
- <A HREF="history.html">History</A><BR>
- <A HREF="download.html">Download</A><BR>
- <A HREF="quality.html">Quality</A><BR>
- <A HREF="api.html">API</A><BR>
- <A HREF="bugs.html">Bug Reporting</A><BR>
- <A HREF="win32.html">On Win32</A><BR>
- <A HREF="faq.html">FAQ</A><BR>
- <A HREF="lists.html">Mailing Lists</A><BR>
- <A HREF="ChangeLog">ChangeLog</A><BR>
-<BR>
-<DIV CLASS="block">
-Author :<BR>Erik de Castro Lopo
-<!-- pepper -->
-<BR><BR>
-<!-- pepper -->
-
-</DIV>
- <IMG SRC=
- "/cgi-bin/Count.cgi?ft=6|frgb=55;55;55|tr=0|md=6|dd=B|st=1|sh=1|df=src_dl.dat"
- HEIGHT=30 WIDTH=100 ALT="counter.gif">
-</DIV>
-
-</TD>
-<!-- pepper -->
-<!-- ######################################################################## -->
-<!-- pepper -->
-<TD VALIGN="top">
-<DIV CLASS="block">
-
-<H1><B>Download</B></H1>
-<P>
- This is the latest version of Secret Rabbit Code.
-</P>
- <UL>
- <LI>Source code as a .tar.gz :
- <A HREF="libsamplerate-0.1.9.tar.gz">libsamplerate-0.1.9.tar.gz</A>
- and
- <!-- A HREF="libsamplerate-0.1.8.tar.gz.asc">(GPG signature)</A -->
-
- </UL>
-<P>
- Compiling libsamplerate is relatively easy. The INSTALL file in the top
- level directory gives instructions on compiling and installing
- libsamplerate on Unix-like systems (including MacOSX). For Win32 there
- are instructions in the doc/ directory of the tarball.
- These instructions are mirrored
- <A HREF="win32.html">here</A>.
-</P>
-
-<!-- pepper -->
-<!-- <A HREF="mailto:aldel0305@mega-nerd.com">For the spam bots</A> -->
-<!-- pepper -->
-
-</DIV>
-</TD></TR>
-</TABLE>
-
-</BODY>
-</HTML>
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/faq.html
^
|
@@ -1,361 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-
-<HEAD>
- <TITLE>
- 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.8">
- <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">
-</HEAD>
-
-<BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FB1465" VLINK="#FB1465" ALINK="#FB1465">
-<!-- pepper -->
-<CENTER>
- <IMG SRC="SRC.png" HEIGHT=100 WIDTH=760 ALT="SRC.png">
-</CENTER>
-<!-- pepper -->
-<BR>
-<!-- pepper -->
-<TABLE ALIGN="center" WIDTH="98%">
-<TR>
-<TD VALIGN="top">
-<BR>
-<DIV CLASS="nav">
- <BR>
- <A HREF="index.html">Home</A><BR>
- <A HREF="license.html">License</A><BR>
- <A HREF="history.html">History</A><BR>
- <A HREF="download.html">Download</A><BR>
- <A HREF="quality.html">Quality</A><BR>
- <A HREF="api.html">API</A><BR>
- <A HREF="bugs.html">Bug Reporting</A><BR>
- <A HREF="win32.html">On Win32</A><BR>
- <A HREF="faq.html">FAQ</A><BR>
- <A HREF="lists.html">Mailing Lists</A><BR>
- <A HREF="ChangeLog">ChangeLog</A><BR>
-<BR>
-<DIV CLASS="block">
-Author :<BR>Erik de Castro Lopo
-<!-- pepper -->
-<BR><BR>
-<!-- pepper -->
-
-</DIV>
- <IMG SRC=
- "/cgi-bin/Count.cgi?ft=6|frgb=55;55;55|tr=0|md=6|dd=B|st=1|sh=1|df=src_api.dat"
- HEIGHT=30 WIDTH=100 ALT="counter.gif">
-</DIV>
-
-</TD>
-<!-- pepper -->
-<!-- ######################################################################## -->
-<!-- pepper -->
-<TD VALIGN="top">
-<DIV CLASS="block">
-
-<H1><B>Frequently Asked Questions</B></H1>
-<P>
-<A HREF="#Q001">Q1 : Is it normal for the output of libsamplerate to be louder
- than its input?</A><BR><BR>
-<A HREF="#Q002">Q2 : On Unix/Linux/MacOSX, what is the best way of detecting
- the presence and location of libsamplerate and its header file using
- autoconf?</A><BR><BR>
-<A HREF="#Q003">Q3 : If I upsample and downsample to the original rate, for
- example 44.1->96->44.1, do I get an identical signal as the one before the
- up/down resampling?</A><BR><BR>
-<A HREF="#Q004">Q4 : If I ran src_simple (libsamplerate) on small chunks (160
- frames) would that sound bad?</A><BR><BR>
-<A HREF="#Q005">Q5 : I'm using libsamplerate but the high quality settings
- sound worse than the SRC_LINEAR converter. Why?</A><BR><BR>
-<A HREF="#Q006">Q6 : I'm use the SRC_SINC_* converters and up-sampling by a ratio of
- 2. I reset the converter and put in 1000 samples and I expect to get 2000
- samples out, but I'm getting less than that. Why?</A><BR><BR>
-<A HREF="#Q007">Q7 : I have input and output sample rates that are integer
- values, but the API wants me to divide one by the other and put the result
- in a floating point number. Won't this case problems for long running
- conversions?</A><BR><BR>
-</P>
-<HR>
-<!-- ========================================================================= -->
-<A NAME="Q001"></A>
-<H2><BR><B>Q1 : Is it normal for the output of libsamplerate to be louder
- than its input?</B></H2>
-<P>
-The output of libsamplerate will be roughly the same volume as the input.
-However, even if the input is strictly in the range (-1.0, 1.0), it is still
-possible for the output to contain peak values outside this range.
-</P>
-<P>
-Consider four consecutive samples of [0.5 0.999 0.999 0.5].
-If we are up sampling by a factor of two we need to insert samples between
-each of the existing samples.
-Its pretty obvious then, that the sample between the two 0.999 values should
-and will be bigger than 0.999.
-</P>
-<P>
-This means that anyone using libsamplerate should normalize its output before
-doing things like saving the audio to a 16 bit WAV file.
-</P>
-
-<!-- pepper -->
-<!-- ========================================================================= -->
-
-<a NAME="Q002"></a>
-<h2><br><b>Q2 : On Unix/Linux/MacOSX, what is the best way of detecting
- the presence and location of libsamplerate and its header file using
- autoconf?</b></h2>
-
-<p>
-libsamplerate uses the pkg-config (man pkg-config) method of registering itself
-with the host system.
-The best way of detecting its presence is using something like this in configure.ac
-(or configure.in):
-</p>
-
-<pre>
- PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.1.3,
- ac_cv_samplerate=1, ac_cv_samplerate=0)
-
- AC_DEFINE_UNQUOTED([HAVE_SAMPLERATE],${ac_cv_samplerate},
- [Set to 1 if you have libsamplerate.])
-
- AC_SUBST(SAMPLERATE_CFLAGS)
- AC_SUBST(SAMPLERATE_LIBS)
-</pre>
-<p>
-This will automatically set the <b>SAMPLERATE_CFLAGS</b> and <b>SAMPLERATE_LIBS</b>
-variables which can be used in Makefile.am or Makefile.in like this:
-</p>
-<pre>
- SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@
- SAMPLERATE_LIBS = @SAMPLERATE_LIBS@
-</pre>
-
-<p>
-If you install libsamplerate from source, you will probably need to set the
-<b>PKG_CONFIG_PATH</b> environment variable's suggested at the end of the
-libsamplerate configure process. For instance on my system I get this:
-</p>
-<pre>
- -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-
-
- Configuration summary :
-
- Version : ..................... 0.1.3
- Enable debugging : ............ no
-
- Tools :
-
- Compiler is GCC : ............. yes
- GCC major version : ........... 3
-
- Extra tools required for testing and examples :
-
- Have FFTW : ................... yes
- Have libsndfile : ............. yes
- Have libefence : .............. no
-
- Installation directories :
-
- Library directory : ........... /usr/local/lib
- Program directory : ........... /usr/local/bin
- Pkgconfig directory : ......... /usr/local/lib/pkgconfig
-</pre>
-
-
-<!-- pepper -->
-<!-- ========================================================================= -->
-<A NAME="Q003"></A>
-<H2><BR><B>Q3 : If I upsample and downsample to the original rate, for
- example 44.1->96->44.1, do I get an identical signal as the one before the
- up/down resampling?</B></H2>
-<P>
-The short answer is that for the general case, no, you don't.
-The long answer is that for some signals, with some converters, you will
-get very, very close.
-</P>
-<P>
-In order to resample correctly (ie using the <B>SRC_SINC_*</B> converters),
-filtering needs to be applied, regardless of whether its upsampling or
-downsampling.
-This filter needs to attenuate all frequencies above 0.5 times the minimum of
-the source and destination sample rate (call this fshmin).
-Since the filter needed to achieve full attenuation at this point, it has to
-start rolling off a some frequency below this point.
-It is this rolloff of the very highest frequencies which causes some of the
-loss.
-</P>
-<P>
-The other factor is that the filter itself can introduce transient artifacts
-which causes the output to be different to the input.
-</P>
-
-<!-- pepper -->
-<!-- ========================================================================= -->
-<A NAME="Q004"></A>
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/history.html
^
|
@@ -1,101 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-
-<HEAD>
- <TITLE>
- 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.8">
- <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">
-</HEAD>
-
-<BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FB1465" VLINK="#FB1465" ALINK="#FB1465">
-<!-- pepper -->
-<CENTER>
- <IMG SRC="SRC.png" HEIGHT=100 WIDTH=760 ALT="SRC.png">
-</CENTER>
-<!-- pepper -->
-<BR>
-<!-- pepper -->
-<TABLE ALIGN="center" WIDTH="98%">
-<TR>
-<TD VALIGN="top">
-<BR>
-<DIV CLASS="nav">
- <BR>
- <A HREF="index.html">Home</A><BR>
- <A HREF="license.html">License</A><BR>
- <A HREF="history.html">History</A><BR>
- <A HREF="download.html">Download</A><BR>
- <A HREF="quality.html">Quality</A><BR>
- <A HREF="api.html">API</A><BR>
- <A HREF="bugs.html">Bug Reporting</A><BR>
- <A HREF="win32.html">On Win32</A><BR>
- <A HREF="faq.html">FAQ</A><BR>
- <A HREF="lists.html">Mailing Lists</A><BR>
- <A HREF="ChangeLog">ChangeLog</A><BR>
-<BR>
-<DIV CLASS="block">
-Author :<BR>Erik de Castro Lopo
-<!-- pepper -->
-<BR><BR>
-<!-- pepper -->
-
-</DIV>
- <IMG SRC=
- "/cgi-bin/Count.cgi?ft=6|frgb=55;55;55|tr=0|md=6|dd=B|st=1|sh=1|df=src.dat"
- HEIGHT=30 WIDTH=100 ALT="counter.gif">
-</DIV>
-
-</TD>
-<!-- pepper -->
-<!-- ######################################################################## -->
-<!-- pepper -->
-<TD VALIGN="top">
-<DIV CLASS="block">
-
-<H1><B>History</B></H1>
-<UL>
- <LI>Version 0.0.0 (Oct 06 2002) First alpha release (friends and family only).
- <LI>Version 0.0.2 (Oct 10 2002) Second alpha release (fools rush in ....).
- <LI>...
- <LI>Version 0.0.7 (Nov 17 2002) The last mono only version.
- <LI>Version 0.0.9 (Nov 21 2002) Full multi channel support. First pass at
- documentation. Still not ready for release.
- <LI>Version 0.0.11 (Nov 26 2002) Incorporated some suggestions from Conrad
- Parker.
- <LI>Version 0.0.12 (Nov 28 2002) First public release.
- <LI>Version 0.0.13 (Dec 03 2002) Fixes for MacOSX and Solaris.
- <LI>Version 0.0.14 (Jan 13 2003) Now compiles on Win32. Major code speedup.
- Minor bug fixes.
- <LI>Version 0.0.15 (May 02 2003) Minor bug fixes.
- <LI>Version 0.1.0 (Mar 14 2004) Add callback API, functions for short to
- float and float to short conversion. Minor bug fixes.
- <LI>Version 0.1.1 (Jul 17 2004) Callback API bug fix. Bugfix for aggressive
- gcc-3.4 optimisations.
- <LI>Version 0.1.2 (Sep 12 2004) Callback API reset bug fix.
- <LI>Version 0.1.3 (Mar 23 2008) Huge quality improvements to two best SINC
- based converters.
- <LI>Version 0.1.4 (Jul 02 2008) Fix segfault when using extremely low
- conversion ratios.
- <LI>Version 0.1.5 (Jan 11 2009) Optimisation resulting in dramatic throughput
- improvements
- (<a href="http://www.mega-nerd.com/erikd/Blog/CodeHacking/SecretRabbitCode/rel_0_1_5.html">
- 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.
- <LI>Version 0.1.8 (Aug 15 2011) Minor bug fixes and updates.
-</UL>
-
-</DIV>
-</TD></TR>
-</TABLE>
-
-</BODY>
-</HTML>
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/index.html
^
|
@@ -1,129 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-
-<HEAD>
- <TITLE>
- 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.8">
- <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">
-</HEAD>
-
-<BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FB1465" VLINK="#FB1465" ALINK="#FB1465">
-<!-- pepper -->
-<CENTER>
- <IMG SRC="SRC.png" HEIGHT=100 WIDTH=760 ALT="SRC.png">
-</CENTER>
-<!-- pepper -->
-<BR>
-<!-- pepper -->
-<TABLE ALIGN="center" WIDTH="98%">
-<TR>
-<TD VALIGN="top">
-<BR>
-<DIV CLASS="nav">
- <BR>
- <A HREF="index.html">Home</A><BR>
- <A HREF="license.html">License</A><BR>
- <A HREF="history.html">History</A><BR>
- <A HREF="download.html">Download</A><BR>
- <A HREF="quality.html">Quality</A><BR>
- <A HREF="api.html">API</A><BR>
- <A HREF="bugs.html">Bug Reporting</A><BR>
- <A HREF="win32.html">On Win32</A><BR>
- <A HREF="faq.html">FAQ</A><BR>
- <A HREF="lists.html">Mailing Lists</A><BR>
- <A HREF="ChangeLog">ChangeLog</A><BR>
-<BR>
-<DIV CLASS="block">
-Author :<BR>Erik de Castro Lopo
-<!-- pepper -->
-<BR><BR>
-<!-- pepper -->
-
-</DIV>
- <IMG SRC=
- "/cgi-bin/Count.cgi?ft=6|frgb=55;55;55|tr=0|md=6|dd=B|st=1|sh=1|df=src.dat"
- HEIGHT=30 WIDTH=100 ALT="counter.gif">
-</DIV>
-
-</TD>
-<!-- pepper -->
-<!-- ######################################################################## -->
-<!-- pepper -->
-<TD VALIGN="top">
-<DIV CLASS="block">
-<BR>
-
-<TABLE ALIGN="center" WIDTH="80%">
-<TR><TD>
-<P>
- <I>
- "Choosing a sample rate coverter wasn't easy. We ran numerous tests with
- Secret Rabbit Code and other sample rate converters, then compared them all.
- In the end, SRC outperformed the others, including some extremely well known
- and popular software. We had one issue with SRC, but after emailing Erik, he
- got back to us immediately with an answer. Choosing SRC was a no brainer."
- </I><BR>
- Ryan Smith, International Marketing Manager, <BR>
- <A HREF="http://emersys.co.kr/">Emersys Corp.</A>, South Korea.<BR>
- Product : <A HREF="http://maven3d.com">Maven3D</A>
-
-</P>
-</TD></TR>
-</TABLE>
-<P>
- <B>S</B>ecret <B>R</B>abbit <B>C</B>ode (aka libsamplerate) is a
- <B>S</B>ample <B>R</B>ate <B>C</B>onverter for audio.
- One example of where such a thing would be useful is converting audio
- from the CD sample rate of 44.1kHz to the 48kHz sample rate used by
- DAT players.
-</P>
-<!-- pepper -->
-<P>
- <B>SRC</B> is capable of arbitrary and time varying conversions ; from
- downsampling by a factor of 256 to upsampling by the same factor.
- Arbitrary in this case means that the ratio of input and output
- sample rates can be an irrational number.
- The conversion ratio can also vary with time for speeding up and slowing
- down effects.
-</P>
-<!-- pepper -->
-<P>
- <B>SRC</B> provides a small set of converters to allow quality to
- be traded off against computation cost.
- The current best converter provides a signal-to-noise ratio of 145dB
- with -3dB passband extending from DC to 96% of the theoretical
- best bandwidth for a given pair of input and output sample rates.
-</P>
-<!-- pepper -->
-<P>
- Since the library has few dependencies beyond that provided by the
- standard C library, it should compile and work on just about any
- operating system.
- It is known to work on Linux, MacOSX,
- <A HREF="win32.html">Win32</A>
- and Solaris.
- With some relatively minor hacking it should also be relatively easy
- to port it to embedded systems and digital signal processors.
-</P>
-<!-- pepper -->
-<P>
- In addition, the library comes with a comprehensive test suite which
- can validate the performance of the library on new platforms.
-</P>
-
-<!-- pepper -->
-<!-- <A HREF="mailto:aldel0305@mega-nerd.com">For the spam bots</A> -->
-<!-- pepper -->
-
-</DIV>
-</TD></TR>
-</TABLE>
-
-</BODY>
-</HTML>
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/license.html
^
|
@@ -1,80 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-
-<HEAD>
- <TITLE>
- 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.8">
- <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">
-</HEAD>
-
-<BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FB1465" VLINK="#FB1465" ALINK="#FB1465">
-<!-- pepper -->
-<CENTER>
- <IMG SRC="SRC.png" HEIGHT=100 WIDTH=760 ALT="SRC.png">
-</CENTER>
-<!-- pepper -->
-<BR>
-<!-- pepper -->
-<TABLE ALIGN="center" WIDTH="98%">
-<TR>
-<TD VALIGN="top">
-<BR>
-<DIV CLASS="nav">
- <BR>
- <A HREF="index.html">Home</A><BR>
- <A HREF="license.html">License</A><BR>
- <A HREF="history.html">History</A><BR>
- <A HREF="download.html">Download</A><BR>
- <A HREF="quality.html">Quality</A><BR>
- <A HREF="api.html">API</A><BR>
- <A HREF="bugs.html">Bug Reporting</A><BR>
- <A HREF="win32.html">On Win32</A><BR>
- <A HREF="faq.html">FAQ</A><BR>
- <A HREF="lists.html">Mailing Lists</A><BR>
- <A HREF="ChangeLog">ChangeLog</A><BR>
- <BR>
-<DIV CLASS="block">
-Author :<BR>Erik de Castro Lopo
-<!-- pepper -->
-<BR><BR>
-<!-- pepper -->
-
-</DIV>
- <IMG SRC=
- "/cgi-bin/Count.cgi?ft=6|frgb=55;55;55|tr=0|md=6|dd=B|st=1|sh=1|df=src_lic.dat"
- HEIGHT=30 WIDTH=100 ALT="counter.gif">
-</DIV>
-
-</TD>
-<!-- pepper -->
-<!-- ######################################################################## -->
-<!-- pepper -->
-<TD VALIGN="top">
-<DIV CLASS="block">
-
-<H1><B>License</B></H1>
-<!-- pepper -->
-<P>
- From its first release in 2002, Secret Rabbit Code was under a dual
- licensing scheme where people could chose to use it under the terms
- of the GNU General Public License or pay for a commercial use
- license.
-</P>
-<!-- pepper -->
-<P>
- In 2016, thanks to a generous offer from Epic Games International,
- Secret Rabbit Code was relicensed under the 2-clause BSD license.
-</P>
-<!-- pepper -->
-</DIV>
-</TD></TR>
-</TABLE>
-
-</BODY>
-</HTML>
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/lists.html
^
|
@@ -1,91 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-
-<HEAD>
- <TITLE>
- 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.8">
- <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">
-</HEAD>
-
-<BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FB1465" VLINK="#FB1465" ALINK="#FB1465">
-<!-- pepper -->
-<CENTER>
- <IMG SRC="SRC.png" HEIGHT=100 WIDTH=760 ALT="SRC.png">
-</CENTER>
-<!-- pepper -->
-<BR>
-<!-- pepper -->
-<TABLE ALIGN="center" WIDTH="98%">
-<TR>
-<TD VALIGN="top">
-<BR>
-<DIV CLASS="nav">
- <BR>
- <A HREF="index.html">Home</A><BR>
- <A HREF="license.html">License</A><BR>
- <A HREF="history.html">History</A><BR>
- <A HREF="download.html">Download</A><BR>
- <A HREF="quality.html">Quality</A><BR>
- <A HREF="api.html">API</A><BR>
- <A HREF="bugs.html">Bug Reporting</A><BR>
- <A HREF="win32.html">On Win32</A><BR>
- <A HREF="faq.html">FAQ</A><BR>
- <A HREF="lists.html">Mailing Lists</A><BR>
- <A HREF="ChangeLog">ChangeLog</A><BR>
-<BR>
-<DIV CLASS="block">
-Author :<BR>Erik de Castro Lopo
-<!-- pepper -->
-<BR><BR>
-<!-- pepper -->
-
-</DIV>
- <IMG SRC=
- "/cgi-bin/Count.cgi?ft=6|frgb=55;55;55|tr=0|md=6|dd=B|st=1|sh=1|df=src_lists.dat"
- HEIGHT=30 WIDTH=100 ALT="counter.gif">
-</DIV>
-
-</TD>
-<!-- pepper -->
-<!-- ######################################################################## -->
-<!-- pepper -->
-<TD VALIGN="top">
-<DIV CLASS="block">
-
-<H1><B>Mailing Lists</B></H1>
-<P>
-There are currently two mailings lists for Secret Rabbit Code:<!-- pepper -->
-</P>
-<!-- pepper -->
-<UL>
- <LI><B>src-announce@mega-nerd.com</B> <!-- pepper -->
-
- <A HREF="mailto:src-announce-request@mega-nerd.com?subject=subscribe">Subscribe</A>
- <BR>
- A read only announcement list.<!-- pepper -->
- <BR><BR>
- <LI><B>src@mega-nerd.com</B> <!-- pepper -->
- <A HREF="mailto:src-request@mega-nerd.com?subject=subscribe">Subscribe</A>
- <BR>
- A general list which will also carry all the email from the announce list.
- Posting to this list is restricted to subscribers. <!-- pepper -->
-</UL>
-<!-- pepper -->
-<P>
-
-</DIV>
-</TD></TR>
-</TABLE>
-
-<!-- pepper -->
-<!-- pepper -->
-<!-- pepper -->
-
-</BODY>
-</HTML>
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/quality.html
^
|
@@ -1,179 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-
-<HEAD>
- <TITLE>
- 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.8">
- <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">
-</HEAD>
-
-<BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FB1465" VLINK="#FB1465" ALINK="#FB1465">
-<!-- pepper -->
-<CENTER>
- <IMG SRC="SRC.png" HEIGHT=100 WIDTH=760 ALT="SRC.png">
-</CENTER>
-<!-- pepper -->
-<BR>
-<!-- pepper -->
-<TABLE ALIGN="center" WIDTH="98%">
-<TR>
-<TD VALIGN="top">
-<BR>
-<DIV CLASS="nav">
- <BR>
- <A HREF="index.html">Home</A><BR>
- <A HREF="license.html">License</A><BR>
- <A HREF="history.html">History</A><BR>
- <A HREF="download.html">Download</A><BR>
- <A HREF="quality.html">Quality</A><BR>
- <A HREF="api.html">API</A><BR>
- <A HREF="bugs.html">Bug Reporting</A><BR>
- <A HREF="win32.html">On Win32</A><BR>
- <A HREF="faq.html">FAQ</A><BR>
- <A HREF="lists.html">Mailing Lists</A><BR>
- <A HREF="ChangeLog">ChangeLog</A><BR>
-<BR>
-<DIV CLASS="block">
-Author :<BR>Erik de Castro Lopo
-<!-- pepper -->
-<BR><BR>
-<!-- pepper -->
-
-</DIV>
- <IMG SRC=
- "/cgi-bin/Count.cgi?ft=6|frgb=55;55;55|tr=0|md=6|dd=B|st=1|sh=1|df=src_qual.dat"
- HEIGHT=30 WIDTH=100 ALT="counter.gif">
-</DIV>
-
-</TD>
-<!-- pepper -->
-<!-- ######################################################################## -->
-<!-- pepper -->
-<TD VALIGN="top">
-<DIV CLASS="block">
-
-<H1><B>SRC Quality</B></H1>
-<CENTER><P>
- <B>This document not yet complete.</B><BR>
-</P></CENTER>
-<P>
- When measuring the performance of a Sample Rate Converter, there are three
- factors to consider:
-</P>
-<UL>
- <LI><B>Signal-to-Noise Ratio</B> - a measure of how much noise the sample
- rate conversion process adds to the signal.
- This is measured in decibels (dB) and the higher this value the
- better.
- For most sample rate converters, the SNR will vary depending on
- the input signal and the ratio between input and output sample
- rates.
- The only valid comparison of SNR is between the worst case for
- for each converter.
- <LI><B>Bandwidth</B> - most sample rate converters attenuate high
- frequencies as part of their operation.
- Bandwidth can be measured by finding the frequency where the
- attenuation is 3dB and expressing that as a percentage of the full
- bandwidth at that sampling rate.
- <LI><B>Speed</B> - the faster the better <B>:-)</B>.
-</UL>
-
-<P>
- There are a number of sample rate converters available for downloading
- but I will limit the comparison ot Secret Rabbit Code to the following:
-</P>
-<UL>
- <LI><A HREF="http://www.mega-nerd.com/SRC/download.html">sndfile-resample</A>
- which is a program (which uses libsamplerate) from the <B>examples/</B>
- directory of the Secret Rabbit Code source code distribution.
- <LI><A HREF="http://www-ccrma.stanford.edu/~jos/resample/Available_Software.html">
- Resample</A>
- by Julius O Smiths which seems to have been the first high quality converter
- available as source code.
- <LI><A HREF="http://www.tsp.ece.mcgill.ca/MMSP/Documents/Software/AFsp/ResampAudio.html">ResampAudio</A>
- which is part of
- <A HREF="http://www.tsp.ece.mcgill.ca/MMSP/Documents/Software/AFsp/AFsp.html">
- Audio File Programs and Routines</A>
- by Peter Kabal.
- <LI><A HREF="http://home.sprynet.com/~cbagwell/sox.html">SoX</A> which is maintained
- by Chris Bagwell.
- SoX is also able to perform some low quality sample rate conversions but these
- will not be investigated.
- <LI><A HREF="http://shibatch.sourceforge.net/">Shibatch</A> which seems to be a
- frequency domain sample rate converter.
- Unfortunately, this converter does not handle arbitrary conversion ratios and
- hence could not be properly compared to the other converters.
- <LI><A HREF="http://sr-convert.sourceforge.net/">sr-convert</A> is another
- converter which does not handle arbitrary conversion ratios.
-</UL>
-
-<P>
-It should be noted that the first three converters above are based on the algorithm
-by <A HREF="http://www-ccrma.stanford.edu/~jos/resample/"> Julius O. Smith</A>
-which emulates the conversion of the digital signal to an analogue one and then
-sampling the analogue signal at the new sample rate.
-</P>
-
-<!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
-
-<H3><B>Methodology</B></H3>
-<P>
- Measuring the SNR of a converter is relatively straight forward.
- Generate an input signal consisting of a windowed sine wave, sample rate
- convert it and measure the signal-to-noise ratio of the output signal.
- A typical length for the original file is 30000 samples.
-</P>
-<P>
- The bandwidth of a sample rate converter is a little more difficult to measure.
- Currently this is done by generating two short files containing a windowed
- sine wave.
- The frequencies of the sine waves are 0.35 and 0.495 of the sample rate.
- These file are then upsampled by a factor of 2 using the converter under test.
- If the attenutaion of the lower frquency is less than 3dB and higher frequency is
- more than 3dB, it is then possible to iteratively increase the lower frequency
- and decrease the upper frequency keeping the -3dB point bracketed.
- When the distance between the upper and lower frequency is sufficiently small,
- it is possible to obtain a very accurate estimate of the -3dB frequency.
-</P>
-<P>
- The speed of a sample rate converter is easy to measure; simply perform a
- conversion on a large file or a number of smaller files and time the conversion
- process.
-</P>
-
-<P>
- The above measurement techniques are built into a test program which is delivered
- with the Secret Rabbit Code source code distibution.
- This program is able to test the first four of the above converters.
-</P>
-<!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
-
-<H3><B>SoX</B></H3>
-<P>
- SoX provides three methods of resampling; a linear interpolator, a polyphase
- resampler and the Julius O. Smith simulated analogue filter method.
-</P>
-
-<H3><B>Shibatch</B></H3>
-<P>
- Shibach
-</P>
-
-<P>
- <B>More Coming Soon.</B>
-</P>
-
-<!-- <A HREF="mailto:aldel@mega-nerd.com">For the spam bots</A> -->
-
-</DIV>
-</TD></TR>
-</TABLE>
-
-</BODY>
-</HTML>
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/doc/win32.html
^
|
@@ -1,156 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-
-<HEAD>
- <TITLE>
- 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.8">
- <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">
-</HEAD>
-
-<BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FB1465" VLINK="#FB1465" ALINK="#FB1465">
-<!-- pepper -->
-<CENTER>
- <IMG SRC="SRC.png" HEIGHT=100 WIDTH=760 ALT="SRC.png">
-</CENTER>
-<!-- pepper -->
-<BR>
-<!-- pepper -->
-<TABLE ALIGN="center" WIDTH="98%">
-<TR>
-<TD VALIGN="top">
-<BR>
-<DIV CLASS="nav">
- <BR>
- <A HREF="index.html">Home</A><BR>
- <A HREF="license.html">License</A><BR>
- <A HREF="history.html">History</A><BR>
- <A HREF="download.html">Download</A><BR>
- <A HREF="quality.html">Quality</A><BR>
- <A HREF="api.html">API</A><BR>
- <A HREF="bugs.html">Bug Reporting</A><BR>
- <A HREF="win32.html">On Win32</A><BR>
- <A HREF="faq.html">FAQ</A><BR>
- <A HREF="lists.html">Mailing Lists</A><BR>
- <A HREF="ChangeLog">ChangeLog</A><BR>
-<BR>
-<DIV CLASS="block">
-Author :<BR>Erik de Castro Lopo
-<!-- pepper -->
-<BR><BR>
-<!-- pepper -->
-
-</DIV>
- <IMG SRC=
- "/cgi-bin/Count.cgi?ft=6|frgb=55;55;55|tr=0|md=6|dd=B|st=1|sh=1|df=src_win32.dat"
- HEIGHT=30 WIDTH=100 ALT="counter.gif">
-</DIV>
-
-</TD>
-<!-- pepper -->
-<!-- ######################################################################## -->
-<!-- pepper -->
-<TD VALIGN="top">
-<DIV CLASS="block">
-
-<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 the precompiled
-win32 or win64
- <A HREF="http://www.mega-nerd.com/libsndfile/#Download">libsndfile</A>
-binary and install them.
-
-</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-1.dll</B>, <B>libsndfile-1.lib</B> and
- <B>libsndfile-1.def</B> from the directory libsndfile was installed in
- to the the directory containing libsamplerate.
- <LI> Copy the header file <B>include/sndfile.h</B> from where libsndfile was
- installed to the <B>Win32</B> directory under the libsamplerate
- directory.
- <LI> Open a Command Shell 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>
-
-<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>
-
-<P>
-If you are using some other method to compile the libsamplerate DLL you are
-probably on your own.
-</P>
-<BR>
-
-<!--
-
-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> -->
-
-</DIV>
-</TD></TR>
-</TABLE>
-
-</BODY>
-</HTML>
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/examples
^
|
-(directory)
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/examples/Makefile.am
^
|
@@ -1,26 +0,0 @@
-# This file was automatically generated
-# DO NOT EDIT!
-
-bin_PROGRAMS = sndfile-resample
-
-noinst_PROGRAMS = varispeed-play timewarp-file
-
-SAMPLERATEDIR =../src
-INCLUDES = -I$(srcdir)/$(SAMPLERATEDIR) @OS_SPECIFIC_INCLUDES@
-
-OS_SPECIFIC_LINKS = @OS_SPECIFIC_LINKS@
-
-SNDFILE_LIBS = @SNDFILE_LIBS@ @ALSA_LIBS@
-AM_CFLAGS = @SNDFILE_CFLAGS@
-
-#===============================================================================
-
-sndfile_resample_SOURCES = sndfile-resample.c
-sndfile_resample_LDADD = $(SAMPLERATEDIR)/libsamplerate.la $(SNDFILE_LIBS)
-
-varispeed_play_SOURCES = varispeed-play.c audio_out.c audio_out.h
-varispeed_play_LDADD = $(SAMPLERATEDIR)/libsamplerate.la $(SNDFILE_LIBS) $(OS_SPECIFIC_LINKS)
-
-timewarp_file_SOURCES = timewarp-file.c
-timewarp_file_LDADD = $(SAMPLERATEDIR)/libsamplerate.la $(SNDFILE_LIBS)
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/examples/Makefile.in
^
|
@@ -1,707 +0,0 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# This file was automatically generated
-# DO NOT EDIT!
-
-VPATH = @srcdir@
-am__is_gnu_make = { \
- if test -z '$(MAKELEVEL)'; then \
- false; \
- elif test -n '$(MAKE_HOST)'; then \
- true; \
- elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
- true; \
- else \
- false; \
- fi; \
-}
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-bin_PROGRAMS = sndfile-resample$(EXEEXT)
-noinst_PROGRAMS = varispeed-play$(EXEEXT) timewarp-file$(EXEEXT)
-subdir = examples
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/M4/check_signal.m4 \
- $(top_srcdir)/M4/clip_mode.m4 $(top_srcdir)/M4/endian.m4 \
- $(top_srcdir)/M4/libtool.m4 $(top_srcdir)/M4/lrint.m4 \
- $(top_srcdir)/M4/lrintf.m4 $(top_srcdir)/M4/ltoptions.m4 \
- $(top_srcdir)/M4/ltsugar.m4 $(top_srcdir)/M4/ltversion.m4 \
- $(top_srcdir)/M4/lt~obsolete.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/src/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__installdirs = "$(DESTDIR)$(bindir)"
-PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
-am_sndfile_resample_OBJECTS = sndfile-resample.$(OBJEXT)
-sndfile_resample_OBJECTS = $(am_sndfile_resample_OBJECTS)
-am__DEPENDENCIES_1 =
-sndfile_resample_DEPENDENCIES = $(SAMPLERATEDIR)/libsamplerate.la \
- $(am__DEPENDENCIES_1)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 =
-am_timewarp_file_OBJECTS = timewarp-file.$(OBJEXT)
-timewarp_file_OBJECTS = $(am_timewarp_file_OBJECTS)
-timewarp_file_DEPENDENCIES = $(SAMPLERATEDIR)/libsamplerate.la \
- $(am__DEPENDENCIES_1)
-am_varispeed_play_OBJECTS = varispeed-play.$(OBJEXT) \
- audio_out.$(OBJEXT)
-varispeed_play_OBJECTS = $(am_varispeed_play_OBJECTS)
-varispeed_play_DEPENDENCIES = $(SAMPLERATEDIR)/libsamplerate.la \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src
-depcomp = $(SHELL) $(top_srcdir)/Cfg/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(sndfile_resample_SOURCES) $(timewarp_file_SOURCES) \
- $(varispeed_play_SOURCES)
-DIST_SOURCES = $(sndfile_resample_SOURCES) $(timewarp_file_SOURCES) \
- $(varispeed_play_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/Cfg/depcomp
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@
-ALSA_LIBS = @ALSA_LIBS@
-AMTAR = @AMTAR@
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/examples/audio_out.c
^
|
@@ -1,1097 +0,0 @@
-/*
-** Copyright (c) 1999-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#include <config.h>
-
-#include "audio_out.h"
-
-#if HAVE_ALSA_ASOUNDLIB_H
- #define ALSA_PCM_NEW_HW_PARAMS_API
- #define ALSA_PCM_NEW_SW_PARAMS_API
- #include <alsa/asoundlib.h>
- #include <sys/time.h>
-#endif
-
-#if (HAVE_SNDFILE)
-
-#include <float_cast.h>
-
-#include <sndfile.h>
-
-#define BUFFER_LEN (2048)
-
-#define MAKE_MAGIC(a,b,c,d,e,f,g,h) \
- ((a) + ((b) << 1) + ((c) << 2) + ((d) << 3) + ((e) << 4) + ((f) << 5) + ((g) << 6) + ((h) << 7))
-
-typedef struct AUDIO_OUT_s
-{ int magic ;
-} AUDIO_OUT ;
-
-
-/*------------------------------------------------------------------------------
-** Linux (ALSA and OSS) functions for playing a sound.
-*/
-
-#if defined (__linux__)
-
-#if HAVE_ALSA_ASOUNDLIB_H
-
-#define ALSA_MAGIC MAKE_MAGIC ('L', 'n', 'x', '-', 'A', 'L', 'S', 'A')
-
-typedef struct
-{ int magic ;
- snd_pcm_t * dev ;
- int channels ;
-} ALSA_AUDIO_OUT ;
-
-static int alsa_write_float (snd_pcm_t *alsa_dev, float *data, int frames, int channels) ;
-
-static AUDIO_OUT *
-alsa_open (int channels, unsigned samplerate)
-{ ALSA_AUDIO_OUT *alsa_out ;
- const char * device = "default" ;
- snd_pcm_hw_params_t *hw_params ;
- snd_pcm_uframes_t buffer_size ;
- snd_pcm_uframes_t alsa_period_size, alsa_buffer_frames ;
- snd_pcm_sw_params_t *sw_params ;
-
- int err ;
-
- alsa_period_size = 1024 ;
- alsa_buffer_frames = 4 * alsa_period_size ;
-
- if ((alsa_out = calloc (1, sizeof (ALSA_AUDIO_OUT))) == NULL)
- { perror ("alsa_open : malloc ") ;
- exit (1) ;
- } ;
-
- alsa_out->magic = ALSA_MAGIC ;
- alsa_out->channels = channels ;
-
- if ((err = snd_pcm_open (&alsa_out->dev, device, SND_PCM_STREAM_PLAYBACK, 0)) < 0)
- { fprintf (stderr, "cannot open audio device \"%s\" (%s)\n", device, snd_strerror (err)) ;
- goto catch_error ;
- } ;
-
- snd_pcm_nonblock (alsa_out->dev, 0) ;
-
- if ((err = snd_pcm_hw_params_malloc (&hw_params)) < 0)
- { fprintf (stderr, "cannot allocate hardware parameter structure (%s)\n", snd_strerror (err)) ;
- goto catch_error ;
- } ;
-
- if ((err = snd_pcm_hw_params_any (alsa_out->dev, hw_params)) < 0)
- { fprintf (stderr, "cannot initialize hardware parameter structure (%s)\n", snd_strerror (err)) ;
- goto catch_error ;
- } ;
-
- if ((err = snd_pcm_hw_params_set_access (alsa_out->dev, hw_params, SND_PCM_ACCESS_RW_INTERLEAVED)) < 0)
- { fprintf (stderr, "cannot set access type (%s)\n", snd_strerror (err)) ;
- goto catch_error ;
- } ;
-
- if ((err = snd_pcm_hw_params_set_format (alsa_out->dev, hw_params, SND_PCM_FORMAT_FLOAT)) < 0)
- { fprintf (stderr, "cannot set sample format (%s)\n", snd_strerror (err)) ;
- goto catch_error ;
- } ;
-
- if ((err = snd_pcm_hw_params_set_rate_near (alsa_out->dev, hw_params, &samplerate, 0)) < 0)
- { fprintf (stderr, "cannot set sample rate (%s)\n", snd_strerror (err)) ;
- goto catch_error ;
- } ;
-
- if ((err = snd_pcm_hw_params_set_channels (alsa_out->dev, hw_params, channels)) < 0)
- { fprintf (stderr, "cannot set channel count (%s)\n", snd_strerror (err)) ;
- goto catch_error ;
- } ;
-
- if ((err = snd_pcm_hw_params_set_buffer_size_near (alsa_out->dev, hw_params, &alsa_buffer_frames)) < 0)
- { fprintf (stderr, "cannot set buffer size (%s)\n", snd_strerror (err)) ;
- goto catch_error ;
- } ;
-
- if ((err = snd_pcm_hw_params_set_period_size_near (alsa_out->dev, hw_params, &alsa_period_size, 0)) < 0)
- { fprintf (stderr, "cannot set period size (%s)\n", snd_strerror (err)) ;
- goto catch_error ;
- } ;
-
- if ((err = snd_pcm_hw_params (alsa_out->dev, hw_params)) < 0)
- { fprintf (stderr, "cannot set parameters (%s)\n", snd_strerror (err)) ;
- goto catch_error ;
- } ;
-
- /* extra check: if we have only one period, this code won't work */
- snd_pcm_hw_params_get_period_size (hw_params, &alsa_period_size, 0) ;
- snd_pcm_hw_params_get_buffer_size (hw_params, &buffer_size) ;
- if (alsa_period_size == buffer_size)
- { fprintf (stderr, "Can't use period equal to buffer size (%lu == %lu)", alsa_period_size, buffer_size) ;
- goto catch_error ;
- } ;
-
- snd_pcm_hw_params_free (hw_params) ;
-
- if ((err = snd_pcm_sw_params_malloc (&sw_params)) != 0)
- { fprintf (stderr, "%s: snd_pcm_sw_params_malloc: %s", __func__, snd_strerror (err)) ;
- goto catch_error ;
- } ;
-
- if ((err = snd_pcm_sw_params_current (alsa_out->dev, sw_params)) != 0)
- { fprintf (stderr, "%s: snd_pcm_sw_params_current: %s", __func__, snd_strerror (err)) ;
- goto catch_error ;
- } ;
-
- /* note: set start threshold to delay start until the ring buffer is full */
- snd_pcm_sw_params_current (alsa_out->dev, sw_params) ;
-
- if ((err = snd_pcm_sw_params_set_start_threshold (alsa_out->dev, sw_params, buffer_size)) < 0)
- { fprintf (stderr, "cannot set start threshold (%s)\n", snd_strerror (err)) ;
- goto catch_error ;
- } ;
-
- if ((err = snd_pcm_sw_params (alsa_out->dev, sw_params)) != 0)
- { fprintf (stderr, "%s: snd_pcm_sw_params: %s", __func__, snd_strerror (err)) ;
- goto catch_error ;
- } ;
-
- snd_pcm_sw_params_free (sw_params) ;
-
- snd_pcm_reset (alsa_out->dev) ;
-
-catch_error :
-
- if (err < 0 && alsa_out->dev != NULL)
- { snd_pcm_close (alsa_out->dev) ;
- return NULL ;
- } ;
-
- return (AUDIO_OUT *) alsa_out ;
-} /* alsa_open */
-
-static void
-alsa_play (get_audio_callback_t callback, AUDIO_OUT *audio_out, void *callback_data)
-{ static float buffer [BUFFER_LEN] ;
- ALSA_AUDIO_OUT *alsa_out ;
- int read_frames ;
-
- if ((alsa_out = (ALSA_AUDIO_OUT*) audio_out) == NULL)
- { printf ("alsa_close : AUDIO_OUT is NULL.\n") ;
- return ;
- } ;
-
- if (alsa_out->magic != ALSA_MAGIC)
- { printf ("alsa_close : Bad magic number.\n") ;
- return ;
- } ;
-
- while ((read_frames = callback (callback_data, buffer, BUFFER_LEN / alsa_out->channels)))
- alsa_write_float (alsa_out->dev, buffer, read_frames, alsa_out->channels) ;
-
- return ;
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/examples/audio_out.h
^
|
@@ -1,25 +0,0 @@
-/*
-** Copyright (c) 1999-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-typedef struct AUDIO_OUT_s AUDIO_OUT ;
-
-typedef int (*get_audio_callback_t) (void *callback_data, float *samples, int frames) ;
-
-/* A general audio output function (Linux/ALSA, Linux/OSS, Win32, MacOSX,
-** Solaris) which retrieves data using the callback function in the above
-** struct.
-**
-** audio_open - opens the device and returns an anonymous pointer to its
-** own private data.
-*/
-
-AUDIO_OUT *audio_open (int channels, int samplerate) ;
-
-void audio_play (get_audio_callback_t callback, AUDIO_OUT *audio_out, void *callback_data) ;
-
-void audio_close (AUDIO_OUT *audio_data) ;
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/examples/sndfile-resample.c
^
|
@@ -1,328 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include "config.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-#include <math.h>
-
-#if (HAVE_SNDFILE)
-
-#include <samplerate.h>
-#include <sndfile.h>
-
-#define DEFAULT_CONVERTER SRC_SINC_MEDIUM_QUALITY
-
-#define BUFFER_LEN 4096 /*-(1<<16)-*/
-
-static void usage_exit (const char *progname) ;
-static sf_count_t sample_rate_convert (SNDFILE *infile, SNDFILE *outfile, int converter, double src_ratio, int channels, double * gain, int normalize) ;
-static double apply_gain (float * data, long frames, int channels, double max, double gain) ;
-
-int
-main (int argc, char *argv [])
-{ SNDFILE *infile, *outfile = NULL ;
- SF_INFO sfinfo ;
-
- int normalize = 1 ;
- sf_count_t count ;
- double src_ratio = -1.0, gain = 1.0 ;
- int new_sample_rate = -1, k, converter, max_speed = SF_FALSE ;
-
- if (argc == 2 && strcmp (argv [1], "--version") == 0)
- { char buffer [64], *cptr ;
-
- if ((cptr = strrchr (argv [0], '/')) != NULL)
- argv [0] = cptr + 1 ;
- if ((cptr = strrchr (argv [0], '\\')) != NULL)
- argv [0] = cptr + 1 ;
-
- sf_command (NULL, SFC_GET_LIB_VERSION, buffer, sizeof (buffer)) ;
-
- printf ("%s (%s,%s)\n", argv [0], src_get_version (), buffer) ;
- exit (0) ;
- } ;
-
- if (argc != 5 && argc != 7 && argc != 8)
- usage_exit (argv [0]) ;
-
- /* Set default converter. */
- converter = DEFAULT_CONVERTER ;
-
- for (k = 1 ; k < argc - 2 ; k++)
- { if (strcmp (argv [k], "--max-speed") == 0)
- max_speed = SF_TRUE ;
- else if (strcmp (argv [k], "--no-normalize") == 0)
- normalize = 0 ;
- else if (strcmp (argv [k], "-to") == 0)
- { k ++ ;
- new_sample_rate = atoi (argv [k]) ;
- }
- else if (strcmp (argv [k], "-by") == 0)
- { k ++ ;
- src_ratio = atof (argv [k]) ;
- }
- else if (strcmp (argv [k], "-c") == 0)
- { k ++ ;
- converter = atoi (argv [k]) ;
- }
- else
- usage_exit (argv [0]) ;
- } ;
-
- if (new_sample_rate <= 0 && src_ratio <= 0.0)
- usage_exit (argv [0]) ;
-
- if (src_get_name (converter) == NULL)
- { printf ("Error : bad converter number.\n") ;
- usage_exit (argv [0]) ;
- } ;
-
- if (strcmp (argv [argc - 2], argv [argc - 1]) == 0)
- { printf ("Error : input and output file names are the same.\n") ;
- exit (1) ;
- } ;
-
- if ((infile = sf_open (argv [argc - 2], SFM_READ, &sfinfo)) == NULL)
- { printf ("Error : Not able to open input file '%s'\n", argv [argc - 2]) ;
- exit (1) ;
- } ;
-
- printf ("Input File : %s\n", argv [argc - 2]) ;
- printf ("Sample Rate : %d\n", sfinfo.samplerate) ;
- printf ("Input Frames : %ld\n\n", (long) sfinfo.frames) ;
-
- if (new_sample_rate > 0)
- { src_ratio = (1.0 * new_sample_rate) / sfinfo.samplerate ;
- sfinfo.samplerate = new_sample_rate ;
- }
- else if (src_is_valid_ratio (src_ratio))
- sfinfo.samplerate = (int) floor (sfinfo.samplerate * src_ratio) ;
- else
- { printf ("Not able to determine new sample rate. Exiting.\n") ;
- sf_close (infile) ;
- exit (1) ;
- } ;
-
- if (fabs (src_ratio - 1.0) < 1e-20)
- { printf ("Target samplerate and input samplerate are the same. Exiting.\n") ;
- sf_close (infile) ;
- exit (0) ;
- } ;
-
- printf ("SRC Ratio : %f\n", src_ratio) ;
- printf ("Converter : %s\n\n", src_get_name (converter)) ;
-
- if (src_is_valid_ratio (src_ratio) == 0)
- { printf ("Error : Sample rate change out of valid range.\n") ;
- sf_close (infile) ;
- exit (1) ;
- } ;
-
- /* Delete the output file length to zero if already exists. */
- remove (argv [argc - 1]) ;
-
- printf ("Output file : %s\n", argv [argc - 1]) ;
- printf ("Sample Rate : %d\n", sfinfo.samplerate) ;
-
- do
- { sf_close (outfile) ;
-
- if ((outfile = sf_open (argv [argc - 1], SFM_WRITE, &sfinfo)) == NULL)
- { printf ("Error : Not able to open output file '%s'\n", argv [argc - 1]) ;
- sf_close (infile) ;
- exit (1) ;
- } ;
-
- if (max_speed)
- { /* This is mainly for the comparison program tests/src-evaluate.c */
- sf_command (outfile, SFC_SET_ADD_PEAK_CHUNK, NULL, SF_FALSE) ;
- }
- else
- { /* Update the file header after every write. */
- sf_command (outfile, SFC_SET_UPDATE_HEADER_AUTO, NULL, SF_TRUE) ;
- } ;
-
- sf_command (outfile, SFC_SET_CLIPPING, NULL, SF_TRUE) ;
-
- count = sample_rate_convert (infile, outfile, converter, src_ratio, sfinfo.channels, &gain, normalize) ;
- }
- while (count < 0) ;
-
- printf ("Output Frames : %ld\n\n", (long) count) ;
-
- sf_close (infile) ;
- sf_close (outfile) ;
-
- return 0 ;
-} /* main */
-
-/*==============================================================================
-*/
-
-static sf_count_t
-sample_rate_convert (SNDFILE *infile, SNDFILE *outfile, int converter, double src_ratio, int channels, double * gain, int normalize)
-{ static float input [BUFFER_LEN] ;
- static float output [BUFFER_LEN] ;
-
- SRC_STATE *src_state ;
- SRC_DATA src_data ;
- int error ;
- double max = 0.0 ;
- sf_count_t output_count = 0 ;
-
- sf_seek (infile, 0, SEEK_SET) ;
- sf_seek (outfile, 0, SEEK_SET) ;
-
- /* Initialize the sample rate converter. */
- if ((src_state = src_new (converter, channels, &error)) == NULL)
- { printf ("\n\nError : src_new() failed : %s.\n\n", src_strerror (error)) ;
- exit (1) ;
- } ;
-
- src_data.end_of_input = 0 ; /* Set this later. */
-
- /* Start with zero to force load in while loop. */
- src_data.input_frames = 0 ;
- src_data.data_in = input ;
-
- src_data.src_ratio = src_ratio ;
-
- src_data.data_out = output ;
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/examples/timewarp-file.c
^
|
@@ -1,230 +0,0 @@
-/*
-** Copyright (c) 2005-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include "config.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-#include <math.h>
-
-#if (HAVE_SNDFILE)
-
-#include <samplerate.h>
-#include <sndfile.h>
-
-#define ARRAY_LEN(x) ((int) (sizeof (x) / sizeof ((x) [0])))
-
-#define DEFAULT_CONVERTER SRC_SINC_MEDIUM_QUALITY
-
-#define BUFFER_LEN 1024
-#define INPUT_STEP_SIZE 8
-
-typedef struct
-{ sf_count_t index ;
- double ratio ;
-} TIMEWARP_FACTOR ;
-
-static void usage_exit (const char *progname) ;
-static sf_count_t timewarp_convert (SNDFILE *infile, SNDFILE *outfile, int converter, int channels) ;
-
-int
-main (int argc, char *argv [])
-{ SNDFILE *infile, *outfile ;
- SF_INFO sfinfo ;
- sf_count_t count ;
-
- if (argc != 3)
- usage_exit (argv [0]) ;
-
- putchar ('\n') ;
- printf ("Input File : %s\n", argv [argc - 2]) ;
- if ((infile = sf_open (argv [argc - 2], SFM_READ, &sfinfo)) == NULL)
- { printf ("Error : Not able to open input file '%s'\n", argv [argc - 2]) ;
- exit (1) ;
- } ;
-
- if (INPUT_STEP_SIZE * sfinfo.channels > BUFFER_LEN)
- { printf ("\n\nError : INPUT_STEP_SIZE * sfinfo.channels > BUFFER_LEN\n\n") ;
- exit (1) ;
- } ;
-
-
- /* Delete the output file length to zero if already exists. */
- remove (argv [argc - 1]) ;
-
- if ((outfile = sf_open (argv [argc - 1], SFM_WRITE, &sfinfo)) == NULL)
- { printf ("Error : Not able to open output file '%s'\n", argv [argc - 1]) ;
- sf_close (infile) ;
- exit (1) ;
- } ;
-
- sf_command (outfile, SFC_SET_CLIPPING, NULL, SF_TRUE) ;
-
- printf ("Output file : %s\n", argv [argc - 1]) ;
- printf ("Converter : %s\n", src_get_name (DEFAULT_CONVERTER)) ;
-
- count = timewarp_convert (infile, outfile, DEFAULT_CONVERTER, sfinfo.channels) ;
-
- printf ("Output Frames : %ld\n\n", (long) count) ;
-
- sf_close (infile) ;
- sf_close (outfile) ;
-
- return 0 ;
-} /* main */
-
-/*==============================================================================
-*/
-
-static TIMEWARP_FACTOR warp [] =
-{ { 0 , 1.00000001 },
- { 20000 , 1.01000000 },
- { 20200 , 1.00000001 },
- { 40000 , 1.20000000 },
- { 40300 , 1.00000001 },
- { 60000 , 1.10000000 },
- { 60400 , 1.00000001 },
- { 80000 , 1.50000000 },
- { 81000 , 1.00000001 },
-} ;
-
-static sf_count_t
-timewarp_convert (SNDFILE *infile, SNDFILE *outfile, int converter, int channels)
-{ static float input [BUFFER_LEN] ;
- static float output [BUFFER_LEN] ;
-
- SRC_STATE *src_state ;
- SRC_DATA src_data ;
- int error, warp_index = 0 ;
- sf_count_t input_count = 0, output_count = 0 ;
-
- sf_seek (infile, 0, SEEK_SET) ;
- sf_seek (outfile, 0, SEEK_SET) ;
-
- /* Initialize the sample rate converter. */
- if ((src_state = src_new (converter, channels, &error)) == NULL)
- { printf ("\n\nError : src_new() failed : %s.\n\n", src_strerror (error)) ;
- exit (1) ;
- } ;
-
- src_data.end_of_input = 0 ; /* Set this later. */
-
- /* Start with zero to force load in while loop. */
- src_data.input_frames = 0 ;
- src_data.data_in = input ;
-
- if (warp [0].index > 0)
- src_data.src_ratio = 1.0 ;
- else
- { src_data.src_ratio = warp [0].ratio ;
- warp_index ++ ;
- } ;
-
- src_data.data_out = output ;
- src_data.output_frames = BUFFER_LEN /channels ;
-
- while (1)
- {
- if (warp_index < ARRAY_LEN (warp) - 1 && input_count >= warp [warp_index].index)
- { src_data.src_ratio = warp [warp_index].ratio ;
- warp_index ++ ;
- } ;
-
- /* If the input buffer is empty, refill it. */
- if (src_data.input_frames == 0)
- { src_data.input_frames = sf_readf_float (infile, input, INPUT_STEP_SIZE) ;
- input_count += src_data.input_frames ;
- src_data.data_in = input ;
-
- /* The last read will not be a full buffer, so snd_of_input. */
- if (src_data.input_frames < INPUT_STEP_SIZE)
- src_data.end_of_input = SF_TRUE ;
- } ;
-
- /* Process current block. */
- if ((error = src_process (src_state, &src_data)))
- { printf ("\nError : %s\n", src_strerror (error)) ;
- exit (1) ;
- } ;
-
- /* Terminate if done. */
- if (src_data.end_of_input && src_data.output_frames_gen == 0)
- break ;
-
- /* Write output. */
- sf_writef_float (outfile, output, src_data.output_frames_gen) ;
- output_count += src_data.output_frames_gen ;
-
- src_data.data_in += src_data.input_frames_used * channels ;
- src_data.input_frames -= src_data.input_frames_used ;
- } ;
-
- src_delete (src_state) ;
-
- return output_count ;
-} /* timewarp_convert */
-
-/*------------------------------------------------------------------------------
-*/
-
-static void
-usage_exit (const char *progname)
-{ const char *cptr ;
-
- if ((cptr = strrchr (progname, '/')) != NULL)
- progname = cptr + 1 ;
-
- if ((cptr = strrchr (progname, '\\')) != NULL)
- progname = cptr + 1 ;
-
- printf ("\n"
- " A program demonstrating the time warping capabilities of libsamplerate."
- " It uses libsndfile for file I/O and Secret Rabbit Code (aka libsamplerate)"
- " for performing the warping.\n"
- " It works on any file format supported by libsndfile with any \n"
- " number of channels (limited only by host memory).\n"
- "\n"
- " The warping is dependant on a table hard code into the source code.\n"
- "\n"
- " libsamplerate version : %s\n"
- "\n"
- " Usage : \n"
- " %s <input file> <output file>\n"
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/examples/varispeed-play.c
^
|
@@ -1,244 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-
-#include "config.h"
-
-#include <float_cast.h>
-
-#if (HAVE_SNDFILE)
-
-#include <samplerate.h>
-#include <sndfile.h>
-
-#include "audio_out.h"
-
-#define ARRAY_LEN(x) ((int) (sizeof (x) / sizeof ((x) [0])))
-
-#define BUFFER_LEN 4096
-#define VARISPEED_BLOCK_LEN 64
-
-#define MIN(a,b) ((a) < (b) ? (a) : (b))
-
-#define SRC_MAGIC ((int) ('S' << 16) + ('R' << 8) + ('C'))
-#define SNDFILE_MAGIC ((int) ('s' << 24) + ('n' << 20) + ('d' << 16) + ('f' << 12) + ('i' << 8) + ('l' << 4) + 'e')
-
-#ifndef M_PI
-#define M_PI 3.14159265358979323846264338
-#endif
-
-
-typedef struct
-{ int magic ;
- SNDFILE *sndfile ;
- SF_INFO sfinfo ;
-
- float buffer [BUFFER_LEN] ;
-} SNDFILE_CB_DATA ;
-
-typedef struct
-{ int magic ;
-
- SNDFILE_CB_DATA sf ;
-
- int freq_point ;
-
- SRC_STATE *src_state ;
-
-} SRC_CB_DATA ;
-
-static int varispeed_get_data (SRC_CB_DATA *data, float *samples, int frames) ;
-static void varispeed_play (const char *filename, int converter) ;
-
-static long src_input_callback (void *cb_data, float **data) ;
-
-int
-main (int argc, char *argv [])
-{ const char *cptr, *progname, *filename ;
- int k, converter ;
-
- converter = SRC_SINC_FASTEST ;
-
- progname = argv [0] ;
-
- if ((cptr = strrchr (progname, '/')) != NULL)
- progname = cptr + 1 ;
-
- if ((cptr = strrchr (progname, '\\')) != NULL)
- progname = cptr + 1 ;
-
- printf ("\n"
- " %s\n"
- "\n"
- " This is a demo program which plays the given file at a slowly \n"
- " varying speed. Lots of fun with drum loops and full mixes.\n"
- "\n"
- " It uses Secret Rabbit Code (aka libsamplerate) to perform the \n"
- " vari-speeding and libsndfile for file I/O.\n"
- "\n", progname) ;
-
- if (argc == 2)
- filename = argv [1] ;
- else if (argc == 4 && strcmp (argv [1], "-c") == 0)
- { filename = argv [3] ;
- converter = atoi (argv [2]) ;
- }
- else
- { printf (" Usage :\n\n %s [-c <number>] <input file>\n\n", progname) ;
- puts (
- " The optional -c argument allows the converter type to be chosen from\n"
- " the following list :"
- "\n"
- ) ;
-
- for (k = 0 ; (cptr = src_get_name (k)) != NULL ; k++)
- printf (" %d : %s\n", k, cptr) ;
-
- puts ("") ;
- exit (1) ;
- } ;
-
- varispeed_play (filename, converter) ;
-
- return 0 ;
-} /* main */
-
-/*==============================================================================
-*/
-
-static void
-varispeed_play (const char *filename, int converter)
-{ SRC_CB_DATA data ;
- AUDIO_OUT *audio_out ;
- int error ;
-
- memset (&data, 0, sizeof (data)) ;
-
- data.magic = SRC_MAGIC ;
- data.sf.magic = SNDFILE_MAGIC ;
-
- if ((data.sf.sndfile = sf_open (filename, SFM_READ, &data.sf.sfinfo)) == NULL)
- { puts (sf_strerror (NULL)) ;
- exit (1) ;
- } ;
-
- /* Initialize the sample rate converter. */
- if ((data.src_state = src_callback_new (src_input_callback, converter, data.sf.sfinfo.channels, &error, &data.sf)) == NULL)
- { printf ("\n\nError : src_new() failed : %s.\n\n", src_strerror (error)) ;
- exit (1) ;
- } ;
-
- printf (
-
- " Playing : %s\n"
- " Converter : %s\n"
- "\n"
- " Press <control-c> to exit.\n"
- "\n",
- filename, src_get_name (converter)) ;
-
- if ((audio_out = audio_open (data.sf.sfinfo.channels, data.sf.sfinfo.samplerate)) == NULL)
- { printf ("\n\nError : audio_open () failed.\n") ;
- exit (1) ;
- } ;
-
- /* Pass the data and the callbacl function to audio_play */
- audio_play ((get_audio_callback_t) varispeed_get_data, audio_out, &data) ;
-
- /* Cleanup */
- audio_close (audio_out) ;
- sf_close (data.sf.sndfile) ;
- src_delete (data.src_state) ;
-
-} /* varispeed_play */
-
-static long
-src_input_callback (void *cb_data, float **audio)
-{ SNDFILE_CB_DATA * data = (SNDFILE_CB_DATA *) cb_data ;
- const int input_frames = ARRAY_LEN (data->buffer) / data->sfinfo.channels ;
- int read_frames ;
-
- if (data->magic != SNDFILE_MAGIC)
- { printf ("\n\n%s:%d Eeeek, something really bad happened!\n", __FILE__, __LINE__) ;
- exit (1) ;
- } ;
-
- for (read_frames = 0 ; read_frames < input_frames ; )
- { sf_count_t position ;
-
- read_frames += sf_readf_float (data->sndfile, data->buffer + read_frames * data->sfinfo.channels, input_frames - read_frames) ;
-
- position = sf_seek (data->sndfile, 0, SEEK_CUR) ;
-
- if (position < 0 || position == data->sfinfo.frames)
- sf_seek (data->sndfile, 0, SEEK_SET) ;
- } ;
-
- *audio = & (data->buffer [0]) ;
-
- return input_frames ;
-} /* src_input_callback */
-
-
-/*==============================================================================
-*/
-
-static int
-varispeed_get_data (SRC_CB_DATA *data, float *samples, int out_frames)
-{ float *output ;
- int rc, out_frame_count ;
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/libsamplerate.spec.in
^
|
@@ -1,58 +0,0 @@
-
-%define name @PACKAGE@
-%define version @VERSION@
-%define release 1
-%define prefix /usr
-
-Summary: A library to do sample rate conversion for audio.
-Name: %{name}
-Version: %{version}
-Release: %{release}
-Prefix: %{prefix}
-Copyright: LGPL
-Group: Libraries/Sound
-Source: http://www.mega-nerd.com/SRC/libsamplerate-%{version}.tar.gz
-URL: http://www.mega-nerd.com/SRC/
-BuildRoot: /var/tmp/%{name}-%{version}
-
-%description
-libsamplerate is a C library capable of arbitrary and time varying
-conversions; from downsampling by a factor of 12 to upsampling by the
-same factor. The conversion ratio can also vary with time for speeding
-up and slowing down effects.
-
-%package devel
-Summary: Libraries, includes, etc to develop libsamplerate applications
-Group: Libraries
-
-%description devel
-Libraries, include files, etc you can use to develop libsamplerate applications.
-
-%prep
-%setup
-
-%build
-./configure --prefix=%{prefix}
-make
-
-%install
-if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
-mkdir -p $RPM_BUILD_ROOT
-make prefix=$RPM_BUILD_ROOT%{prefix} install
-
-%clean
-if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
-
-%files
-%defattr(-,root,root)
-%doc AUTHORS COPYING ChangeLog INSTALL NEWS README doc
-%prefix/lib/libsamplerate.so.*
-
-%files devel
-%defattr(-,root,root)
-%{prefix}/lib/libsamplerate.a
-%{prefix}/lib/libsamplerate.la
-%{prefix}/lib/libsamplerate.so
-%{prefix}/include/samplerate.h
-%{prefix}/lib/pkgconfig/samplerate.pc
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/samplerate.pc.in
^
|
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: samplerate
-Description: An audio Sample Rate Conversion library
-Requires:
-Version: @VERSION@
-Libs: -L${libdir} -lsamplerate
-Cflags: -I${includedir}
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/src
^
|
-(directory)
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/src/Makefile.am
^
|
@@ -1,39 +0,0 @@
-# This file was automatically generated from the Makefile.am
-# DO NOT EDIT!
-
-lib_LTLIBRARIES = libsamplerate.la
-include_HEADERS = samplerate.h
-
-EXTRA_DIST = config.h.in Version_script.in check_asm.sh
-CLEANFILES = src_sinc.s
-
-COEFF_HDRS = fastest_coeffs.h mid_qual_coeffs.h high_qual_coeffs.h
-
-
-noinst_HEADERS = common.h float_cast.h $(COEFF_HDRS)
-
-SRC_SOURCES = samplerate.c src_sinc.c $(COEFF_HDRS) src_zoh.c src_linear.c
-
-# MinGW requires -no-undefined if a DLL is to be built.
-libsamplerate_la_LDFLAGS = -no-undefined -version-info @SHARED_VERSION_INFO@ @SHLIB_VERSION_ARG@
-libsamplerate_la_SOURCES = $(SRC_SOURCES) $(noinst_HEADERS)
-libsamplerate_la_LIBADD = -lm
-
-#-------------------------------------------------------------------------------
-# An extra check for bad asm.
-
-check-asm : check_asm.sh src_sinc.s src_linear.s src_zoh.s
- @echo
- @echo
- $(srcdir)/check_asm.sh src_sinc.s
- $(srcdir)/check_asm.sh src_linear.s
- $(srcdir)/check_asm.sh src_zoh.s
- @echo
- @echo
-
-%.s : $(srcdir)/%.c
- $(CC) -S $(CFLAGS) $(DEFAULT_INCLUDES) $(srcdir)/$+ -o $@
-
-# Disable autoheader.
-AUTOHEADER=echo
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/src/Makefile.in
^
|
@@ -1,759 +0,0 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# This file was automatically generated from the Makefile.am
-# DO NOT EDIT!
-
-
-VPATH = @srcdir@
-am__is_gnu_make = { \
- if test -z '$(MAKELEVEL)'; then \
- false; \
- elif test -n '$(MAKE_HOST)'; then \
- true; \
- elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
- true; \
- else \
- false; \
- fi; \
-}
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = src
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/M4/check_signal.m4 \
- $(top_srcdir)/M4/clip_mode.m4 $(top_srcdir)/M4/endian.m4 \
- $(top_srcdir)/M4/libtool.m4 $(top_srcdir)/M4/lrint.m4 \
- $(top_srcdir)/M4/lrintf.m4 $(top_srcdir)/M4/ltoptions.m4 \
- $(top_srcdir)/M4/ltsugar.m4 $(top_srcdir)/M4/ltversion.m4 \
- $(top_srcdir)/M4/lt~obsolete.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am $(include_HEADERS) \
- $(noinst_HEADERS) $(am__DIST_COMMON)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = config.h
-CONFIG_CLEAN_FILES = Version_script
-CONFIG_CLEAN_VPATH_FILES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
-LTLIBRARIES = $(lib_LTLIBRARIES)
-libsamplerate_la_DEPENDENCIES =
-am__objects_1 =
-am__objects_2 = samplerate.lo src_sinc.lo $(am__objects_1) src_zoh.lo \
- src_linear.lo
-am__objects_3 = $(am__objects_1)
-am_libsamplerate_la_OBJECTS = $(am__objects_2) $(am__objects_3)
-libsamplerate_la_OBJECTS = $(am_libsamplerate_la_OBJECTS)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 =
-libsamplerate_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
- $(AM_CFLAGS) $(CFLAGS) $(libsamplerate_la_LDFLAGS) $(LDFLAGS) \
- -o $@
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@
-depcomp = $(SHELL) $(top_srcdir)/Cfg/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libsamplerate_la_SOURCES)
-DIST_SOURCES = $(libsamplerate_la_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-HEADERS = $(include_HEADERS) $(noinst_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
- $(LISP)config.h.in
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/src/Version_script.in
^
|
@@ -1,39 +0,0 @@
-#
-# Export file for libsamplerate
-#
-# Only the symbols listed in the global section will be callable from
-# applications linking to libsamplerate.
-#
-
-@PACKAGE@.so.0.0
-{
- global:
- src_new ;
- src_delete ;
- src_get_name ;
- src_get_description ;
- src_get_version ;
- src_process ;
- src_reset ;
- src_error ;
- src_strerror ;
- src_simple ;
- src_is_valid_ratio ;
- src_set_ratio ;
-
- local:
- *;
-};
-
-@PACKAGE@.so.0.1
-{
- global:
- src_callback_new ;
- src_callback_read ;
-
- src_short_to_float_array ;
- src_float_to_short_array ;
- src_int_to_float_array ;
- src_float_to_int_array ;
- src_get_channels ;
-} @PACKAGE@.so.0.0;
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/src/check_asm.sh
^
|
@@ -1,47 +0,0 @@
-#!/bin/sh
-
-# Copyright (C) 2004-2011 Erik de Castro Lopo <erikd@mega-nerd.com>
-#
-# This program 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 program 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 program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
-
-#=======================================================================
-# This short test script compiles the file src_sinc.c into assembler
-# output and the greps the assembler output for the fldcw (FPU Load
-# Control Word) instruction which is very detrimental to the perfromance
-# of floating point code.
-
-echo -n " Checking assembler output for bad code : "
-
-if [ $# -ne 1 ]; then
- echo "Error : Need the name of the input file."
- exit 1
- fi
-
-filename=$1
-
-if [ ! -f $filename ];then
- echo "Error : Can't find file $filename."
- exit 1
- fi
-
-count=`grep fldcw $filename | wc -l`
-
-if [ $count -gt 0 ]; then
- echo -e "\n\nError : found $count bad instructions.\n\n"
- exit 1
- fi
-
-echo "ok"
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/src/common.h
^
|
@@ -1,160 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#ifndef COMMON_H_INCLUDED
-#define COMMON_H_INCLUDED
-
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#elif (SIZEOF_INT == 4)
-typedef int int32_t ;
-#elif (SIZEOF_LONG == 4)
-typedef long int32_t ;
-#endif
-
-#define SRC_MAX_RATIO 256
-#define SRC_MAX_RATIO_STR "256"
-
-#define SRC_MIN_RATIO_DIFF (1e-20)
-
-#define MAX(a,b) (((a) > (b)) ? (a) : (b))
-#define MIN(a,b) (((a) < (b)) ? (a) : (b))
-
-#define ARRAY_LEN(x) ((int) (sizeof (x) / sizeof ((x) [0])))
-#define OFFSETOF(type,member) ((int) (&((type*) 0)->member))
-
-#define MAKE_MAGIC(a,b,c,d,e,f) ((a) + ((b) << 4) + ((c) << 8) + ((d) << 12) + ((e) << 16) + ((f) << 20))
-
-/*
-** Inspiration : http://sourcefrog.net/weblog/software/languages/C/unused.html
-*/
-#ifdef UNUSED
-#elif defined (__GNUC__)
-# define UNUSED(x) UNUSED_ ## x __attribute__ ((unused))
-#elif defined (__LCLINT__)
-# define UNUSED(x) /*@unused@*/ x
-#else
-# define UNUSED(x) x
-#endif
-
-#ifdef __GNUC__
-# define WARN_UNUSED __attribute__ ((warn_unused_result))
-#else
-# define WARN_UNUSED
-#endif
-
-
-#include "samplerate.h"
-
-enum
-{ SRC_FALSE = 0,
- SRC_TRUE = 1,
-
- SRC_MODE_PROCESS = 555,
- SRC_MODE_CALLBACK = 556
-} ;
-
-enum
-{ SRC_ERR_NO_ERROR = 0,
-
- SRC_ERR_MALLOC_FAILED,
- SRC_ERR_BAD_STATE,
- SRC_ERR_BAD_DATA,
- SRC_ERR_BAD_DATA_PTR,
- SRC_ERR_NO_PRIVATE,
- SRC_ERR_BAD_SRC_RATIO,
- SRC_ERR_BAD_PROC_PTR,
- SRC_ERR_SHIFT_BITS,
- SRC_ERR_FILTER_LEN,
- SRC_ERR_BAD_CONVERTER,
- SRC_ERR_BAD_CHANNEL_COUNT,
- SRC_ERR_SINC_BAD_BUFFER_LEN,
- SRC_ERR_SIZE_INCOMPATIBILITY,
- SRC_ERR_BAD_PRIV_PTR,
- SRC_ERR_BAD_SINC_STATE,
- SRC_ERR_DATA_OVERLAP,
- SRC_ERR_BAD_CALLBACK,
- SRC_ERR_BAD_MODE,
- SRC_ERR_NULL_CALLBACK,
- SRC_ERR_NO_VARIABLE_RATIO,
- SRC_ERR_SINC_PREPARE_DATA_BAD_LEN,
- SRC_ERR_BAD_INTERNAL_STATE,
-
- /* This must be the last error number. */
- SRC_ERR_MAX_ERROR
-} ;
-
-typedef struct SRC_PRIVATE_tag
-{ double last_ratio, last_position ;
-
- int error ;
- int channels ;
-
- /* SRC_MODE_PROCESS or SRC_MODE_CALLBACK */
- int mode ;
-
- /* Pointer to data to converter specific data. */
- void *private_data ;
-
- /* Varispeed process function. */
- int (*vari_process) (struct SRC_PRIVATE_tag *psrc, SRC_DATA *data) ;
-
- /* Constant speed process function. */
- int (*const_process) (struct SRC_PRIVATE_tag *psrc, SRC_DATA *data) ;
-
- /* State reset. */
- void (*reset) (struct SRC_PRIVATE_tag *psrc) ;
-
- /* Data specific to SRC_MODE_CALLBACK. */
- src_callback_t callback_func ;
- void *user_callback_data ;
- long saved_frames ;
- const float *saved_data ;
-} SRC_PRIVATE ;
-
-/* In src_sinc.c */
-const char* sinc_get_name (int src_enum) ;
-const char* sinc_get_description (int src_enum) ;
-
-int sinc_set_converter (SRC_PRIVATE *psrc, int src_enum) ;
-
-/* In src_linear.c */
-const char* linear_get_name (int src_enum) ;
-const char* linear_get_description (int src_enum) ;
-
-int linear_set_converter (SRC_PRIVATE *psrc, int src_enum) ;
-
-/* In src_zoh.c */
-const char* zoh_get_name (int src_enum) ;
-const char* zoh_get_description (int src_enum) ;
-
-int zoh_set_converter (SRC_PRIVATE *psrc, int src_enum) ;
-
-/*----------------------------------------------------------
-** Common static inline functions.
-*/
-
-static inline double
-fmod_one (double x)
-{ double res ;
-
- res = x - lrint (x) ;
- if (res < 0.0)
- return res + 1.0 ;
-
- return res ;
-} /* fmod_one */
-
-static inline int
-is_bad_src_ratio (double ratio)
-{ return (ratio < (1.0 / SRC_MAX_RATIO) || ratio > (1.0 * SRC_MAX_RATIO)) ;
-} /* is_bad_src_ratio */
-
-
-#endif /* COMMON_H_INCLUDED */
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/src/config.h.in
^
|
@@ -1,148 +0,0 @@
-/* src/config.h.in. Generated from configure.ac by autoheader. */
-
-/* Set to 1 if the compile is GNU GCC. */
-#undef COMPILER_IS_GCC
-
-/* Target processor clips on negative float to int conversion. */
-#undef CPU_CLIPS_NEGATIVE
-
-/* Target processor clips on positive float to int conversion. */
-#undef CPU_CLIPS_POSITIVE
-
-/* Target processor is big endian. */
-#undef CPU_IS_BIG_ENDIAN
-
-/* Target processor is little endian. */
-#undef CPU_IS_LITTLE_ENDIAN
-
-/* Major version of GCC or 3 otherwise. */
-#undef GCC_MAJOR_VERSION
-
-/* Define to 1 if you have the `alarm' function. */
-#undef HAVE_ALARM
-
-/* Define to 1 if you have the <alsa/asoundlib.h> header file. */
-#undef HAVE_ALSA_ASOUNDLIB_H
-
-/* Define to 1 if you have the `calloc' function. */
-#undef HAVE_CALLOC
-
-/* Define to 1 if you have the `ceil' function. */
-#undef HAVE_CEIL
-
-/* Define to 1 if you have the <dlfcn.h> header file. */
-#undef HAVE_DLFCN_H
-
-/* Set to 1 if you have libfftw3. */
-#undef HAVE_FFTW3
-
-/* Define to 1 if you have the `floor' function. */
-#undef HAVE_FLOOR
-
-/* Define to 1 if you have the `fmod' function. */
-#undef HAVE_FMOD
-
-/* Define to 1 if you have the `free' function. */
-#undef HAVE_FREE
-
-/* Define to 1 if you have the <inttypes.h> header file. */
-#undef HAVE_INTTYPES_H
-
-/* Define to 1 if you have the `m' library (-lm). */
-#undef HAVE_LIBM
-
-/* Define if you have C99's lrint function. */
-#undef HAVE_LRINT
-
-/* Define if you have C99's lrintf function. */
-#undef HAVE_LRINTF
-
-/* Define to 1 if you have the `malloc' function. */
-#undef HAVE_MALLOC
-
-/* Define to 1 if you have the `memcpy' function. */
-#undef HAVE_MEMCPY
-
-/* Define to 1 if you have the `memmove' function. */
-#undef HAVE_MEMMOVE
-
-/* Define to 1 if you have the <memory.h> header file. */
-#undef HAVE_MEMORY_H
-
-/* Define if you have signal SIGALRM. */
-#undef HAVE_SIGALRM
-
-/* Define to 1 if you have the `signal' function. */
-#undef HAVE_SIGNAL
-
-/* Set to 1 if you have libsndfile. */
-#undef HAVE_SNDFILE
-
-/* Define to 1 if you have the <stdint.h> header file. */
-#undef HAVE_STDINT_H
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#undef HAVE_STDLIB_H
-
-/* Define to 1 if you have the <strings.h> header file. */
-#undef HAVE_STRINGS_H
-
-/* Define to 1 if you have the <string.h> header file. */
-#undef HAVE_STRING_H
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#undef HAVE_SYS_STAT_H
-
-/* Define to 1 if you have the <sys/times.h> header file. */
-#undef HAVE_SYS_TIMES_H
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#undef HAVE_SYS_TYPES_H
-
-/* Define to 1 if you have the <unistd.h> header file. */
-#undef HAVE_UNISTD_H
-
-/* Define to the sub-directory where libtool stores uninstalled libraries. */
-#undef LT_OBJDIR
-
-/* Set to 1 if compiling for Win32 */
-#undef OS_IS_WIN32
-
-/* Name of package */
-#undef PACKAGE
-
-/* Define to the address where bug reports for this package should be sent. */
-#undef PACKAGE_BUGREPORT
-
-/* Define to the full name of this package. */
-#undef PACKAGE_NAME
-
-/* Define to the full name and version of this package. */
-#undef PACKAGE_STRING
-
-/* Define to the one symbol short name of this package. */
-#undef PACKAGE_TARNAME
-
-/* Define to the home page for this package. */
-#undef PACKAGE_URL
-
-/* Define to the version of this package. */
-#undef PACKAGE_VERSION
-
-/* The size of `double', as computed by sizeof. */
-#undef SIZEOF_DOUBLE
-
-/* The size of `float', as computed by sizeof. */
-#undef SIZEOF_FLOAT
-
-/* The size of `int', as computed by sizeof. */
-#undef SIZEOF_INT
-
-/* The size of `long', as computed by sizeof. */
-#undef SIZEOF_LONG
-
-/* Define to 1 if you have the ANSI C header files. */
-#undef STDC_HEADERS
-
-/* Version number of package */
-#undef VERSION
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/src/fastest_coeffs.h
^
|
@@ -1,2489 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-/*
-** f = make_filter (8, 128, 100.3) ;
-** Pass band width : 0.0039062 (should be 0.0039062)
-** Stop band atten. : 100.71 dB
-** -3dB band width : 0.484
-** half length : 2463
-** increment : 128
-*/
-
-static const struct fastest_coeffs_s
-{ int increment ;
- coeff_t coeffs [2464] ;
-} fastest_coeffs =
-{ 128,
-{
- 8.31472372954840555082e-01,
- 8.31414005540308198583e-01,
- 8.31238918266223869580e-01,
- 8.30947156036480505392e-01,
- 8.30538793675450581766e-01,
- 8.30013935904800659316e-01,
- 8.29372717311066987023e-01,
- 8.28615302303967515840e-01,
- 8.27741885065490623496e-01,
- 8.26752689489751890761e-01,
- 8.25647969113678215081e-01,
- 8.24428007038499943704e-01,
- 8.23093115842108757896e-01,
- 8.21643637482293187624e-01,
- 8.20079943190897053817e-01,
- 8.18402433358933589780e-01,
- 8.16611537412689103554e-01,
- 8.14707713680854150873e-01,
- 8.12691449252757824873e-01,
- 8.10563259827706050764e-01,
- 8.08323689555523805517e-01,
- 8.05973310868314363198e-01,
- 8.03512724303517833491e-01,
- 8.00942558318331943035e-01,
- 7.98263469095534694553e-01,
- 7.95476140340800830231e-01,
- 7.92581283071560838138e-01,
- 7.89579635397499868255e-01,
- 7.86471962292734527722e-01,
- 7.83259055359786127148e-01,
- 7.79941732585400893107e-01,
- 7.76520838088307852054e-01,
- 7.72997241859018080490e-01,
- 7.69371839491718167992e-01,
- 7.65645551908390675777e-01,
- 7.61819325075220210586e-01,
- 7.57894129711408459649e-01,
- 7.53870960990470018181e-01,
- 7.49750838234153449413e-01,
- 7.45534804599028211314e-01,
- 7.41223926755909090502e-01,
- 7.36819294562192195208e-01,
- 7.32322020727209643809e-01,
- 7.27733240470738174110e-01,
- 7.23054111174766811487e-01,
- 7.18285812028632841830e-01,
- 7.13429543667664534112e-01,
- 7.08486527805442301009e-01,
- 7.03458006859804640953e-01,
- 6.98345243572719653891e-01,
- 6.93149520624175785599e-01,
- 6.87872140240182283755e-01,
- 6.82514423795047564525e-01,
- 6.77077711408058502407e-01,
- 6.71563361534684655219e-01,
- 6.65972750552474845875e-01,
- 6.60307272341742135247e-01,
- 6.54568337861228477514e-01,
- 6.48757374718860524432e-01,
- 6.42875826737744904271e-01,
- 6.36925153517562181449e-01,
- 6.30906829991492501541e-01,
- 6.24822345978837789815e-01,
- 6.18673205733470954470e-01,
- 6.12460927488293727095e-01,
- 6.06187042995817604307e-01,
- 5.99853097065060292259e-01,
- 5.93460647094893878339e-01,
- 5.87011262603992944875e-01,
- 5.80506524757569142281e-01,
- 5.73948025891025337408e-01,
- 5.67337369030688098981e-01,
- 5.60676167411809700525e-01,
- 5.53966043993961543279e-01,
- 5.47208630974010734604e-01,
- 5.40405569296826038261e-01,
- 5.33558508163880174102e-01,
- 5.26669104539922661168e-01,
- 5.19739022657876970079e-01,
- 5.12769933522119303326e-01,
- 5.05763514410336290084e-01,
- 4.98721448374081555155e-01,
- 4.91645423738241937883e-01,
- 4.84537133599546865348e-01,
- 4.77398275324308896117e-01,
- 4.70230550045545592219e-01,
- 4.63035662159660077464e-01,
- 4.55815318822846149427e-01,
- 4.48571229447379538069e-01,
- 4.41305105197960123586e-01,
- 4.34018658488283970431e-01,
- 4.26713602477997000495e-01,
- 4.19391650570203500248e-01,
- 4.12054515909689722530e-01,
- 4.04703910882034223473e-01,
- 3.97341546613763640927e-01,
- 3.89969132473721613596e-01,
- 3.82588375575806771689e-01,
- 3.75200980283257823356e-01,
- 3.67808647714624070701e-01,
- 3.60413075251609871241e-01,
- 3.53015956048925771960e-01,
- 3.45618978546330835044e-01,
- 3.38223825983006376461e-01,
- 3.30832175914426429575e-01,
- 3.23445699731881031180e-01,
- 3.16066062184803764357e-01,
- 3.08694920906066150312e-01,
- 3.01333925940378832831e-01,
- 2.93984719275965256102e-01,
- 2.86648934379644393378e-01,
- 2.79328195735489559492e-01,
- 2.72024118387182545220e-01,
- 2.64738307484245039003e-01,
- 2.57472357832259801658e-01,
- 2.50227853447243409057e-01,
- 2.43006367114305704691e-01,
- 2.35809459950733935063e-01,
- 2.28638680973647728800e-01,
- 2.21495566672345989279e-01,
- 2.14381640585498134399e-01,
- 2.07298412883298144305e-01,
- 2.00247379954717363848e-01,
- 1.93230023999986955108e-01,
- 1.86247812628430653437e-01,
- 1.79302198461779749294e-01,
- 1.72394618743085786816e-01,
- 1.65526494951356295537e-01,
- 1.58699232422028796430e-01,
- 1.51914219973401071195e-01,
- 1.45172829539132269838e-01,
- 1.38476415806921215879e-01,
- 1.31826315863480453272e-01,
- 1.25223848845901208904e-01,
- 1.18670315599523901184e-01,
- 1.12166998342411894374e-01,
- 1.05715160336527447260e-01,
- 9.93160455657086521652e-02,
- 9.29708784205405536216e-02,
- 8.66808633902153846673e-02,
- 8.04471847614677826321e-02,
- 7.42710063246745516574e-02,
- 6.81534710872001986415e-02,
- 6.20957009940759641076e-02,
- 5.60987966560835549235e-02,
- 5.01638370853247708703e-02,
- 4.42918794383505357026e-02,
- 3.84839587669171534490e-02,
- 3.27410877764400740086e-02,
- 2.70642565922108620236e-02,
- 2.14544325334371267788e-02,
- 1.59125598951669576520e-02,
- 1.04395597381551803740e-02,
- 5.03632968672305773861e-03,
--2.96256265336385191805e-04,
--5.55734794075828358179e-03,
--1.07461191566687631893e-02,
--1.58617678942645466689e-02,
--2.09035164602743607498e-02,
--2.58706116401622790435e-02,
--3.07623248430414844568e-02,
--3.55779522382659724178e-02,
--4.03168148836769782428e-02,
--4.49782588454727128013e-02,
--4.95616553096875425699e-02,
--5.40664006852556791594e-02,
--5.84919166986474642345e-02,
--6.28376504800633867154e-02,
--6.71030746411782619276e-02,
--7.12876873444269476554e-02,
--7.53910123638282386738e-02,
--7.94125991373483691715e-02,
--8.33520228108008270906e-02,
--8.72088842732959695914e-02,
--9.09828101842390379872e-02,
--9.46734529918955292072e-02,
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/src/float_cast.h
^
|
@@ -1,271 +0,0 @@
-/*
-** Copyright (c) 2001-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-/* Version 1.5 */
-
-#ifndef FLOAT_CAST_HEADER
-#define FLOAT_CAST_HEADER
-
-/*============================================================================
-** On Intel Pentium processors (especially PIII and probably P4), converting
-** from float to int is very slow. To meet the C specs, the code produced by
-** most C compilers targeting Pentium needs to change the FPU rounding mode
-** before the float to int conversion is performed.
-**
-** Changing the FPU rounding mode causes the FPU pipeline to be flushed. It
-** is this flushing of the pipeline which is so slow.
-**
-** Fortunately the ISO C99 specifications define the functions lrint, lrintf,
-** llrint and llrintf which fix this problem as a side effect.
-**
-** On Unix-like systems, the configure process should have detected the
-** presence of these functions. If they weren't found we have to replace them
-** here with a standard C cast.
-*/
-
-/*
-** The C99 prototypes for lrint and lrintf are as follows:
-**
-** long int lrintf (float x) ;
-** long int lrint (double x) ;
-*/
-
-#include "config.h"
-
-/*
-** The presence of the required functions are detected during the configure
-** process and the values HAVE_LRINT and HAVE_LRINTF are set accordingly in
-** the config.h file.
-*/
-
-#define HAVE_LRINT_REPLACEMENT 0
-
-#if (HAVE_LRINT && HAVE_LRINTF)
-
- /*
- ** These defines enable functionality introduced with the 1999 ISO C
- ** standard. They must be defined before the inclusion of math.h to
- ** engage them. If optimisation is enabled, these functions will be
- ** inlined. With optimisation switched off, you have to link in the
- ** maths library using -lm.
- */
-
- #define _ISOC9X_SOURCE 1
- #define _ISOC99_SOURCE 1
-
- #define __USE_ISOC9X 1
- #define __USE_ISOC99 1
-
- #include <math.h>
-
-#elif (defined (__CYGWIN__))
-
- #include <math.h>
-
- #undef HAVE_LRINT_REPLACEMENT
- #define HAVE_LRINT_REPLACEMENT 1
-
- #undef lrint
- #undef lrintf
-
- #define lrint double2int
- #define lrintf float2int
-
- /*
- ** The native CYGWIN lrint and lrintf functions are buggy:
- ** http://sourceware.org/ml/cygwin/2005-06/msg00153.html
- ** http://sourceware.org/ml/cygwin/2005-09/msg00047.html
- ** and slow.
- ** These functions (pulled from the Public Domain MinGW math.h header)
- ** replace the native versions.
- */
-
- static inline long double2int (double in)
- { long retval ;
-
- __asm__ __volatile__
- ( "fistpl %0"
- : "=m" (retval)
- : "t" (in)
- : "st"
- ) ;
-
- return retval ;
- } /* double2int */
-
- static inline long float2int (float in)
- { long retval ;
-
- __asm__ __volatile__
- ( "fistpl %0"
- : "=m" (retval)
- : "t" (in)
- : "st"
- ) ;
-
- return retval ;
- } /* float2int */
-
-#elif (defined (WIN64) || defined(_WIN64))
-
- /* Win64 section should be places before Win32 one, because
- ** most likely both WIN32 and WIN64 will be defined in 64-bit case.
- */
-
- #include <math.h>
-
- /* Win64 doesn't seem to have these functions, nor inline assembly.
- ** Therefore implement inline versions of these functions here.
- */
- #include <emmintrin.h>
- #include <mmintrin.h>
-
- __inline long int
- lrint(double flt)
- {
- return _mm_cvtsd_si32(_mm_load_sd(&flt));
- }
-
- __inline long int
- lrintf(float flt)
- {
- return _mm_cvtss_si32(_mm_load_ss(&flt));
- }
-
-#elif (defined (WIN32) || defined (_WIN32))
-
- #undef HAVE_LRINT_REPLACEMENT
- #define HAVE_LRINT_REPLACEMENT 1
-
- #include <math.h>
-
- /*
- ** Win32 doesn't seem to have these functions.
- ** Therefore implement inline versions of these functions here.
- */
-
- __inline long int
- lrint (double flt)
- { int intgr ;
-
- _asm
- { fld flt
- fistp intgr
- } ;
-
- return intgr ;
- }
-
- __inline long int
- lrintf (float flt)
- { int intgr ;
-
- _asm
- { fld flt
- fistp intgr
- } ;
-
- return intgr ;
- }
-
-#elif (defined (__MWERKS__) && defined (macintosh))
-
- /* This MacOS 9 solution was provided by Stephane Letz */
-
- #undef HAVE_LRINT_REPLACEMENT
- #define HAVE_LRINT_REPLACEMENT 1
- #include <math.h>
-
- #undef lrint
- #undef lrintf
-
- #define lrint double2int
- #define lrintf float2int
-
- inline int
- float2int (register float in)
- { long res [2] ;
-
- asm
- { fctiw in, in
- stfd in, res
- }
- return res [1] ;
- } /* float2int */
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/src/high_qual_coeffs.h
^
|
@@ -1,340265 +0,0 @@
-/*
-** Copyright (c) 2007-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-/*
-** f = make_src_filter (cycles = 69, incr = 2381, atten = 160.000000)
-**
-** Stop band atten. : 154.67 dB
-** -3dB band width : 1.922
-** half length : 340238
-** increment : 2381
-*/
-
-static const struct slow_high_qual_coeffs_s
-{ int increment ;
- coeff_t coeffs [340239] ;
-} slow_high_qual_coeffs =
-{ 2381,
-{
- 9.657284235393746030e-01,
- 9.657281621412726613e-01,
- 9.657273779472256292e-01,
- 9.657260709579943425e-01,
- 9.657242411748556687e-01,
- 9.657218885995935143e-01,
- 9.657190132344973810e-01,
- 9.657156150823710261e-01,
- 9.657116941465326843e-01,
- 9.657072504307945282e-01,
- 9.657022839394945324e-01,
- 9.656967946774737133e-01,
- 9.656907826500827907e-01,
- 9.656842478631756377e-01,
- 9.656771903231314846e-01,
- 9.656696100368233893e-01,
- 9.656615070116398858e-01,
- 9.656528812554828756e-01,
- 9.656437327767599665e-01,
- 9.656340615843858055e-01,
- 9.656238676877905158e-01,
- 9.656131510969064857e-01,
- 9.656019118221832453e-01,
- 9.655901498745762535e-01,
- 9.655778652655470085e-01,
- 9.655650580070698208e-01,
- 9.655517281116315909e-01,
- 9.655378755922249256e-01,
- 9.655235004623492490e-01,
- 9.655086027360166856e-01,
- 9.654931824277518393e-01,
- 9.654772395525847983e-01,
- 9.654607741260518017e-01,
- 9.654437861642095609e-01,
- 9.654262756836061721e-01,
- 9.654082427013159773e-01,
- 9.653896872349128078e-01,
- 9.653706093024861934e-01,
- 9.653510089226313706e-01,
- 9.653308861144500597e-01,
- 9.653102408975589022e-01,
- 9.652890732920780259e-01,
- 9.652673833186427022e-01,
- 9.652451709983904671e-01,
- 9.652224363529754436e-01,
- 9.651991794045572393e-01,
- 9.651754001757993917e-01,
- 9.651510986898800271e-01,
- 9.651262749704926369e-01,
- 9.651009290418218756e-01,
- 9.650750609285785320e-01,
- 9.650486706559762151e-01,
- 9.650217582497327973e-01,
- 9.649943237360825155e-01,
- 9.649663671417652022e-01,
- 9.649378884940221779e-01,
- 9.649088878206207864e-01,
- 9.648793651498198676e-01,
- 9.648493205103967352e-01,
- 9.648187539316318562e-01,
- 9.647876654433195087e-01,
- 9.647560550757575681e-01,
- 9.647239228597564997e-01,
- 9.646912688266315872e-01,
- 9.646580930082109262e-01,
- 9.646243954368293183e-01,
- 9.645901761453221646e-01,
- 9.645554351670501125e-01,
- 9.645201725358665268e-01,
- 9.644843882861413586e-01,
- 9.644480824527474905e-01,
- 9.644112550710675080e-01,
- 9.643739061770016940e-01,
- 9.643360358069392735e-01,
- 9.642976439977980485e-01,
- 9.642587307869880942e-01,
- 9.642192962124369604e-01,
- 9.641793403125725748e-01,
- 9.641388631263365649e-01,
- 9.640978646931779306e-01,
- 9.640563450530537093e-01,
- 9.640143042464200951e-01,
- 9.639717423142621922e-01,
- 9.639286592980441659e-01,
- 9.638850552397599802e-01,
- 9.638409301818994246e-01,
- 9.637962841674682091e-01,
- 9.637511172399710890e-01,
- 9.637054294434274082e-01,
- 9.636592208223616618e-01,
- 9.636124914218008319e-01,
- 9.635652412872870443e-01,
- 9.635174704648616917e-01,
- 9.634691790010806445e-01,
- 9.634203669430008166e-01,
- 9.633710343381919339e-01,
- 9.633211812347238778e-01,
- 9.632708076811813402e-01,
- 9.632199137266507227e-01,
- 9.631684994207244666e-01,
- 9.631165648135027180e-01,
- 9.630641099555957707e-01,
- 9.630111348981192920e-01,
- 9.629576396926903259e-01,
- 9.629036243914399495e-01,
- 9.628490890469985075e-01,
- 9.627940337125093784e-01,
- 9.627384584416203150e-01,
- 9.626823632884765614e-01,
- 9.626257483077473864e-01,
- 9.625686135545918898e-01,
- 9.625109590846846475e-01,
- 9.624527849542000579e-01,
- 9.623940912198210018e-01,
- 9.623348779387403962e-01,
- 9.622751451686527568e-01,
- 9.622148929677565299e-01,
- 9.621541213947606419e-01,
- 9.620928305088780608e-01,
- 9.620310203698192453e-01,
- 9.619686910378176803e-01,
- 9.619058425735953488e-01,
- 9.618424750383863797e-01,
- 9.617785884939332730e-01,
- 9.617141830024799054e-01,
- 9.616492586267730847e-01,
- 9.615838154300708762e-01,
- 9.615178534761319451e-01,
- 9.614513728292150008e-01,
- 9.613843735540962276e-01,
- 9.613168557160521877e-01,
- 9.612488193808526038e-01,
- 9.611802646147833418e-01,
- 9.611111914846396376e-01,
- 9.610416000577068907e-01,
- 9.609714904017852000e-01,
- 9.609008625851720442e-01,
- 9.608297166766762709e-01,
- 9.607580527456042185e-01,
- 9.606858708617690423e-01,
- 9.606131710954939340e-01,
- 9.605399535175953574e-01,
- 9.604662181993973702e-01,
- 9.603919652127322903e-01,
- 9.603171946299289274e-01,
- 9.602419065238272378e-01,
- 9.601661009677665559e-01,
- 9.600897780355864830e-01,
- 9.600129378016331039e-01,
- 9.599355803407596532e-01,
- 9.598577057283178560e-01,
- 9.597793140401642553e-01,
- 9.597004053526501099e-01,
- 9.596209797426437094e-01,
- 9.595410372875099458e-01,
- 9.594605780651147553e-01,
- 9.593796021538247842e-01,
- 9.592981096325121637e-01,
- 9.592161005805541762e-01,
- 9.591335750778278157e-01,
- 9.590505332047059017e-01,
- 9.589669750420790617e-01,
- 9.588829006713240899e-01,
- 9.587983101743289271e-01,
- 9.587132036334775620e-01,
- 9.586275811316626871e-01,
- 9.585414427522702674e-01,
- 9.584547885791959709e-01,
- 9.583676186968306254e-01,
- 9.582799331900714312e-01,
- 9.581917321443151891e-01,
- 9.581030156454554136e-01,
- 9.580137837798901046e-01,
- 9.579240366345228574e-01,
- 9.578337742967500956e-01,
- 9.577429968544788341e-01,
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/src/mid_qual_coeffs.h
^
|
@@ -1,22464 +0,0 @@
-/*
-** Copyright (c) 2007-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-/*
-** f = make_src_filter (cycles = 21, incr = 491, atten = 122.000000)
-**
-** Stop band atten. : 120.61 dB
-** -3dB band width : 1.811
-** half length : 22437
-** increment : 491
-*/
-
-static const struct slow_mid_qual_coeffs_s
-{ int increment ;
- coeff_t coeffs [22438] ;
-} slow_mid_qual_coeffs =
-{ 491,
-{
- 9.190632349861385109e-01,
- 9.190579273831620544e-01,
- 9.190420046848706281e-01,
- 9.190154672231939381e-01,
- 9.189783155513205903e-01,
- 9.189305504437105254e-01,
- 9.188721728960548285e-01,
- 9.188031841252660703e-01,
- 9.187235855694375619e-01,
- 9.186333788878118245e-01,
- 9.185325659607400661e-01,
- 9.184211488896345532e-01,
- 9.182991299969165411e-01,
- 9.181665118259576541e-01,
- 9.180232971410120513e-01,
- 9.178694889271632462e-01,
- 9.177050903902308487e-01,
- 9.175301049567006206e-01,
- 9.173445362736407649e-01,
- 9.171483882086021167e-01,
- 9.169416648495360977e-01,
- 9.167243705046783653e-01,
- 9.164965097024515561e-01,
- 9.162580871913481584e-01,
- 9.160091079398144931e-01,
- 9.157495771361238157e-01,
- 9.154795001882498617e-01,
- 9.151988827237356183e-01,
- 9.149077305895451095e-01,
- 9.146060498519228421e-01,
- 9.142938467962469229e-01,
- 9.139711279268634136e-01,
- 9.136378999669314549e-01,
- 9.132941698582575096e-01,
- 9.129399447611106222e-01,
- 9.125752320540596596e-01,
- 9.122000393337836854e-01,
- 9.118143744148777818e-01,
- 9.114182453296666431e-01,
- 9.110116603280005165e-01,
- 9.105946278770478131e-01,
- 9.101671566610971542e-01,
- 9.097292555813195625e-01,
- 9.092809337555683991e-01,
- 9.088222005181412211e-01,
- 9.083530654195477450e-01,
- 9.078735382262775877e-01,
- 9.073836289205553518e-01,
- 9.068833477000901588e-01,
- 9.063727049778221856e-01,
- 9.058517113816679789e-01,
- 9.053203777542537800e-01,
- 9.047787151526440752e-01,
- 9.042267348480692579e-01,
- 9.036644483256435212e-01,
- 9.030918672840801964e-01,
- 9.025090036354035394e-01,
- 9.019158695046503027e-01,
- 9.013124772295638687e-01,
- 9.006988393602999299e-01,
- 9.000749686590990839e-01,
- 8.994408780999827435e-01,
- 8.987965808684226232e-01,
- 8.981420903610175532e-01,
- 8.974774201851590805e-01,
- 8.968025841586921842e-01,
- 8.961175963095725505e-01,
- 8.954224708755219586e-01,
- 8.947172223036650163e-01,
- 8.940018652501846574e-01,
- 8.932764145799431121e-01,
- 8.925408853661255248e-01,
- 8.917952928898525977e-01,
- 8.910396526398144390e-01,
- 8.902739803118754347e-01,
- 8.894982918086901114e-01,
- 8.887126032393080077e-01,
- 8.879169309187701087e-01,
- 8.871112913677079437e-01,
- 8.862957013119301397e-01,
- 8.854701776820081971e-01,
- 8.846347376128601558e-01,
- 8.837893984433177197e-01,
- 8.829341777157024840e-01,
- 8.820690931753858433e-01,
- 8.811941627703521185e-01,
- 8.803094046507521364e-01,
- 8.794148371684512577e-01,
- 8.785104788765752959e-01,
- 8.775963485290545485e-01,
- 8.766724650801458463e-01,
- 8.757388476839771396e-01,
- 8.747955156940626642e-01,
- 8.738424886628276544e-01,
- 8.728797863411223990e-01,
- 8.719074286777279692e-01,
- 8.709254358188718292e-01,
- 8.699338281077153567e-01,
- 8.689326260838612370e-01,
- 8.679218504828314362e-01,
- 8.669015222355691552e-01,
- 8.658716624679085871e-01,
- 8.648322925000503369e-01,
- 8.637834338460406158e-01,
- 8.627251082132331161e-01,
- 8.616573375017505532e-01,
- 8.605801438039482054e-01,
- 8.594935494038545842e-01,
- 8.583975767766348630e-01,
- 8.572922485880160037e-01,
- 8.561775876937460783e-01,
- 8.550536171390092921e-01,
- 8.539203601578667646e-01,
- 8.527778401726748836e-01,
- 8.516260807935129851e-01,
- 8.504651058175859424e-01,
- 8.492949392286508470e-01,
- 8.481156051964116038e-01,
- 8.469271280759230747e-01,
- 8.457295324069898923e-01,
- 8.445228429135611670e-01,
- 8.433070845031135354e-01,
- 8.420822822660410933e-01,
- 8.408484614750260100e-01,
- 8.396056475844214662e-01,
- 8.383538662296191601e-01,
- 8.370931432264129279e-01,
- 8.358235045703655830e-01,
- 8.345449764361591027e-01,
- 8.332575851769530306e-01,
- 8.319613573237311099e-01,
- 8.306563195846453640e-01,
- 8.293424988443554025e-01,
- 8.280199221633630646e-01,
- 8.266886167773459526e-01,
- 8.253486100964876337e-01,
- 8.239999297047861937e-01,
- 8.226426033593938758e-01,
- 8.212766589899133107e-01,
- 8.199021246977172828e-01,
- 8.185190287552487343e-01,
- 8.171273996053307620e-01,
- 8.157272658604564075e-01,
- 8.143186563020841096e-01,
- 8.129015998799332676e-01,
- 8.114761257112590442e-01,
- 8.100422630801440427e-01,
- 8.086000414367682243e-01,
- 8.071494903966890400e-01,
- 8.056906397400991349e-01,
- 8.042235194111070351e-01,
- 8.027481595169910777e-01,
- 8.012645903274501213e-01,
- 7.997728422738685783e-01,
- 7.982729459485642387e-01,
- 7.967649321040266575e-01,
- 7.952488316521624245e-01,
- 7.937246756635402134e-01,
- 7.921924953666147351e-01,
- 7.906523221469667906e-01,
- 7.891041875465214517e-01,
- 7.875481232627762340e-01,
- 7.859841611480169465e-01,
- 7.844123332085419786e-01,
- 7.828326716038601640e-01,
- 7.812452086459110712e-01,
- 7.796499767982624229e-01,
- 7.780470086753159542e-01,
- 7.764363370415053867e-01,
- 7.748179948104801928e-01,
- 7.731920150443076789e-01,
- 7.715584309526551943e-01,
- 7.699172758919735626e-01,
- 7.682685833646747398e-01,
- 7.666123870183109146e-01,
- 7.649487206447473930e-01,
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/src/samplerate.c
^
|
@@ -1,540 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "config.h"
-
-#include "samplerate.h"
-#include "float_cast.h"
-#include "common.h"
-
-static int psrc_set_converter (SRC_PRIVATE *psrc, int converter_type) ;
-
-
-SRC_STATE *
-src_new (int converter_type, int channels, int *error)
-{ SRC_PRIVATE *psrc ;
-
- if (error)
- *error = SRC_ERR_NO_ERROR ;
-
- if (channels < 1)
- { if (error)
- *error = SRC_ERR_BAD_CHANNEL_COUNT ;
- return NULL ;
- } ;
-
- if ((psrc = calloc (1, sizeof (*psrc))) == NULL)
- { if (error)
- *error = SRC_ERR_MALLOC_FAILED ;
- return NULL ;
- } ;
-
- psrc->channels = channels ;
- psrc->mode = SRC_MODE_PROCESS ;
-
- if (psrc_set_converter (psrc, converter_type) != SRC_ERR_NO_ERROR)
- { if (error)
- *error = SRC_ERR_BAD_CONVERTER ;
- free (psrc) ;
- psrc = NULL ;
- } ;
-
- src_reset ((SRC_STATE*) psrc) ;
-
- return (SRC_STATE*) psrc ;
-} /* src_new */
-
-SRC_STATE*
-src_callback_new (src_callback_t func, int converter_type, int channels, int *error, void* cb_data)
-{ SRC_STATE *src_state ;
-
- if (func == NULL)
- { if (error)
- *error = SRC_ERR_BAD_CALLBACK ;
- return NULL ;
- } ;
-
- if (error != NULL)
- *error = 0 ;
-
- if ((src_state = src_new (converter_type, channels, error)) == NULL)
- return NULL ;
-
- src_reset (src_state) ;
-
- ((SRC_PRIVATE*) src_state)->mode = SRC_MODE_CALLBACK ;
- ((SRC_PRIVATE*) src_state)->callback_func = func ;
- ((SRC_PRIVATE*) src_state)->user_callback_data = cb_data ;
-
- return src_state ;
-} /* src_callback_new */
-
-SRC_STATE *
-src_delete (SRC_STATE *state)
-{ SRC_PRIVATE *psrc ;
-
- psrc = (SRC_PRIVATE*) state ;
- if (psrc)
- { if (psrc->private_data)
- free (psrc->private_data) ;
- memset (psrc, 0, sizeof (SRC_PRIVATE)) ;
- free (psrc) ;
- } ;
-
- return NULL ;
-} /* src_state */
-
-int
-src_process (SRC_STATE *state, SRC_DATA *data)
-{ SRC_PRIVATE *psrc ;
- int error ;
-
- psrc = (SRC_PRIVATE*) state ;
-
- if (psrc == NULL)
- return SRC_ERR_BAD_STATE ;
- if (psrc->vari_process == NULL || psrc->const_process == NULL)
- return SRC_ERR_BAD_PROC_PTR ;
-
- if (psrc->mode != SRC_MODE_PROCESS)
- return SRC_ERR_BAD_MODE ;
-
- /* Check for valid SRC_DATA first. */
- if (data == NULL)
- return SRC_ERR_BAD_DATA ;
-
- /* And that data_in and data_out are valid. */
- if (data->data_in == NULL || data->data_out == NULL)
- return SRC_ERR_BAD_DATA_PTR ;
-
- /* Check src_ratio is in range. */
- if (is_bad_src_ratio (data->src_ratio))
- return SRC_ERR_BAD_SRC_RATIO ;
-
- if (data->input_frames < 0)
- data->input_frames = 0 ;
- if (data->output_frames < 0)
- data->output_frames = 0 ;
-
- if (data->data_in < data->data_out)
- { if (data->data_in + data->input_frames * psrc->channels > data->data_out)
- { /*-printf ("\n\ndata_in: %p data_out: %p\n",
- (void*) (data->data_in + data->input_frames * psrc->channels), (void*) data->data_out) ;-*/
- return SRC_ERR_DATA_OVERLAP ;
- } ;
- }
- else if (data->data_out + data->output_frames * psrc->channels > data->data_in)
- { /*-printf ("\n\ndata_in : %p ouput frames: %ld data_out: %p\n", (void*) data->data_in, data->output_frames, (void*) data->data_out) ;
-
- printf ("data_out: %p (%p) data_in: %p\n", (void*) data->data_out,
- (void*) (data->data_out + data->input_frames * psrc->channels), (void*) data->data_in) ;-*/
- return SRC_ERR_DATA_OVERLAP ;
- } ;
-
- /* Set the input and output counts to zero. */
- data->input_frames_used = 0 ;
- data->output_frames_gen = 0 ;
-
- /* Special case for when last_ratio has not been set. */
- if (psrc->last_ratio < (1.0 / SRC_MAX_RATIO))
- psrc->last_ratio = data->src_ratio ;
-
- /* Now process. */
- if (fabs (psrc->last_ratio - data->src_ratio) < 1e-15)
- error = psrc->const_process (psrc, data) ;
- else
- error = psrc->vari_process (psrc, data) ;
-
- return error ;
-} /* src_process */
-
-long
-src_callback_read (SRC_STATE *state, double src_ratio, long frames, float *data)
-{ SRC_PRIVATE *psrc ;
- SRC_DATA src_data ;
-
- long output_frames_gen ;
- int error = 0 ;
-
- if (state == NULL)
- return 0 ;
-
- if (frames <= 0)
- return 0 ;
-
- psrc = (SRC_PRIVATE*) state ;
-
- if (psrc->mode != SRC_MODE_CALLBACK)
- { psrc->error = SRC_ERR_BAD_MODE ;
- return 0 ;
- } ;
-
- if (psrc->callback_func == NULL)
- { psrc->error = SRC_ERR_NULL_CALLBACK ;
- return 0 ;
- } ;
-
- memset (&src_data, 0, sizeof (src_data)) ;
-
- /* Check src_ratio is in range. */
- if (is_bad_src_ratio (src_ratio))
- { psrc->error = SRC_ERR_BAD_SRC_RATIO ;
- return 0 ;
- } ;
-
- /* Switch modes temporarily. */
- src_data.src_ratio = src_ratio ;
- src_data.data_out = data ;
- src_data.output_frames = frames ;
-
- src_data.data_in = psrc->saved_data ;
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/src/samplerate.h
^
|
@@ -1,183 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-/*
-** API documentation is available here:
-** http://www.mega-nerd.com/SRC/api.html
-*/
-
-#ifndef SAMPLERATE_H
-#define SAMPLERATE_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-
-/* Opaque data type SRC_STATE. */
-typedef struct SRC_STATE_tag SRC_STATE ;
-
-/* SRC_DATA is used to pass data to src_simple() and src_process(). */
-typedef struct
-{ const float *data_in ;
- float *data_out ;
-
- long input_frames, output_frames ;
- long input_frames_used, output_frames_gen ;
-
- int end_of_input ;
-
- double src_ratio ;
-} SRC_DATA ;
-
-/*
-** User supplied callback function type for use with src_callback_new()
-** and src_callback_read(). First parameter is the same pointer that was
-** passed into src_callback_new(). Second parameter is pointer to a
-** pointer. The user supplied callback function must modify *data to
-** point to the start of the user supplied float array. The user supplied
-** function must return the number of frames that **data points to.
-*/
-
-typedef long (*src_callback_t) (void *cb_data, float **data) ;
-
-/*
-** Standard initialisation function : return an anonymous pointer to the
-** internal state of the converter. Choose a converter from the enums below.
-** Error returned in *error.
-*/
-
-SRC_STATE* src_new (int converter_type, int channels, int *error) ;
-
-/*
-** Initilisation for callback based API : return an anonymous pointer to the
-** internal state of the converter. Choose a converter from the enums below.
-** The cb_data pointer can point to any data or be set to NULL. Whatever the
-** value, when processing, user supplied function "func" gets called with
-** cb_data as first parameter.
-*/
-
-SRC_STATE* src_callback_new (src_callback_t func, int converter_type, int channels,
- int *error, void* cb_data) ;
-
-/*
-** Cleanup all internal allocations.
-** Always returns NULL.
-*/
-
-SRC_STATE* src_delete (SRC_STATE *state) ;
-
-/*
-** Standard processing function.
-** Returns non zero on error.
-*/
-
-int src_process (SRC_STATE *state, SRC_DATA *data) ;
-
-/*
-** Callback based processing function. Read up to frames worth of data from
-** the converter int *data and return frames read or -1 on error.
-*/
-long src_callback_read (SRC_STATE *state, double src_ratio, long frames, float *data) ;
-
-/*
-** Simple interface for performing a single conversion from input buffer to
-** output buffer at a fixed conversion ratio.
-** Simple interface does not require initialisation as it can only operate on
-** a single buffer worth of audio.
-*/
-
-int src_simple (SRC_DATA *data, int converter_type, int channels) ;
-
-/*
-** This library contains a number of different sample rate converters,
-** numbered 0 through N.
-**
-** Return a string giving either a name or a more full description of each
-** sample rate converter or NULL if no sample rate converter exists for
-** the given value. The converters are sequentially numbered from 0 to N.
-*/
-
-const char *src_get_name (int converter_type) ;
-const char *src_get_description (int converter_type) ;
-const char *src_get_version (void) ;
-
-/*
-** Set a new SRC ratio. This allows step responses
-** in the conversion ratio.
-** Returns non zero on error.
-*/
-
-int src_set_ratio (SRC_STATE *state, double new_ratio) ;
-
-/*
-** Get the current channel count.
-** Returns negative on error, positive channel count otherwise
-*/
-
-int src_get_channels (SRC_STATE *state) ;
-
-/*
-** Reset the internal SRC state.
-** Does not modify the quality settings.
-** Does not free any memory allocations.
-** Returns non zero on error.
-*/
-
-int src_reset (SRC_STATE *state) ;
-
-/*
-** Return TRUE if ratio is a valid conversion ratio, FALSE
-** otherwise.
-*/
-
-int src_is_valid_ratio (double ratio) ;
-
-/*
-** Return an error number.
-*/
-
-int src_error (SRC_STATE *state) ;
-
-/*
-** Convert the error number into a string.
-*/
-const char* src_strerror (int error) ;
-
-/*
-** The following enums can be used to set the interpolator type
-** using the function src_set_converter().
-*/
-
-enum
-{
- SRC_SINC_BEST_QUALITY = 0,
- SRC_SINC_MEDIUM_QUALITY = 1,
- SRC_SINC_FASTEST = 2,
- SRC_ZERO_ORDER_HOLD = 3,
- SRC_LINEAR = 4,
-} ;
-
-/*
-** Extra helper functions for converting from short to float and
-** back again.
-*/
-
-void src_short_to_float_array (const short *in, float *out, int len) ;
-void src_float_to_short_array (const float *in, short *out, int len) ;
-
-void src_int_to_float_array (const int *in, float *out, int len) ;
-void src_float_to_int_array (const float *in, int *out, int len) ;
-
-
-#ifdef __cplusplus
-} /* extern "C" */
-#endif /* __cplusplus */
-
-#endif /* SAMPLERATE_H */
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/src/src_linear.c
^
|
@@ -1,209 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "config.h"
-#include "float_cast.h"
-#include "common.h"
-
-static int linear_vari_process (SRC_PRIVATE *psrc, SRC_DATA *data) ;
-static void linear_reset (SRC_PRIVATE *psrc) ;
-
-/*========================================================================================
-*/
-
-#define LINEAR_MAGIC_MARKER MAKE_MAGIC ('l', 'i', 'n', 'e', 'a', 'r')
-
-#define SRC_DEBUG 0
-
-typedef struct
-{ int linear_magic_marker ;
- int channels ;
- int reset ;
- long in_count, in_used ;
- long out_count, out_gen ;
- float last_value [1] ;
-} LINEAR_DATA ;
-
-/*----------------------------------------------------------------------------------------
-*/
-
-static int
-linear_vari_process (SRC_PRIVATE *psrc, SRC_DATA *data)
-{ LINEAR_DATA *priv ;
- double src_ratio, input_index, rem ;
- int ch ;
-
- if (data->input_frames <= 0)
- return SRC_ERR_NO_ERROR ;
-
- if (psrc->private_data == NULL)
- return SRC_ERR_NO_PRIVATE ;
-
- priv = (LINEAR_DATA*) psrc->private_data ;
-
- if (priv->reset)
- { /* If we have just been reset, set the last_value data. */
- for (ch = 0 ; ch < priv->channels ; ch++)
- priv->last_value [ch] = data->data_in [ch] ;
- priv->reset = 0 ;
- } ;
-
- priv->in_count = data->input_frames * priv->channels ;
- priv->out_count = data->output_frames * priv->channels ;
- priv->in_used = priv->out_gen = 0 ;
-
- src_ratio = psrc->last_ratio ;
-
- if (is_bad_src_ratio (src_ratio))
- return SRC_ERR_BAD_INTERNAL_STATE ;
-
- input_index = psrc->last_position ;
-
- /* Calculate samples before first sample in input array. */
- while (input_index < 1.0 && priv->out_gen < priv->out_count)
- {
- if (priv->in_used + priv->channels * (1.0 + input_index) >= priv->in_count)
- break ;
-
- if (priv->out_count > 0 && fabs (psrc->last_ratio - data->src_ratio) > SRC_MIN_RATIO_DIFF)
- src_ratio = psrc->last_ratio + priv->out_gen * (data->src_ratio - psrc->last_ratio) / priv->out_count ;
-
- for (ch = 0 ; ch < priv->channels ; ch++)
- { data->data_out [priv->out_gen] = (float) (priv->last_value [ch] + input_index *
- (data->data_in [ch] - priv->last_value [ch])) ;
- priv->out_gen ++ ;
- } ;
-
- /* Figure out the next index. */
- input_index += 1.0 / src_ratio ;
- } ;
-
- rem = fmod_one (input_index) ;
- priv->in_used += priv->channels * lrint (input_index - rem) ;
- input_index = rem ;
-
- /* Main processing loop. */
- while (priv->out_gen < priv->out_count && priv->in_used + priv->channels * input_index < priv->in_count)
- {
- if (priv->out_count > 0 && fabs (psrc->last_ratio - data->src_ratio) > SRC_MIN_RATIO_DIFF)
- src_ratio = psrc->last_ratio + priv->out_gen * (data->src_ratio - psrc->last_ratio) / priv->out_count ;
-
- if (SRC_DEBUG && priv->in_used < priv->channels && input_index < 1.0)
- { printf ("Whoops!!!! in_used : %ld channels : %d input_index : %f\n", priv->in_used, priv->channels, input_index) ;
- exit (1) ;
- } ;
-
- for (ch = 0 ; ch < priv->channels ; ch++)
- { data->data_out [priv->out_gen] = (float) (data->data_in [priv->in_used - priv->channels + ch] + input_index *
- (data->data_in [priv->in_used + ch] - data->data_in [priv->in_used - priv->channels + ch])) ;
- priv->out_gen ++ ;
- } ;
-
- /* Figure out the next index. */
- input_index += 1.0 / src_ratio ;
- rem = fmod_one (input_index) ;
-
- priv->in_used += priv->channels * lrint (input_index - rem) ;
- input_index = rem ;
- } ;
-
- if (priv->in_used > priv->in_count)
- { input_index += (priv->in_used - priv->in_count) / priv->channels ;
- priv->in_used = priv->in_count ;
- } ;
-
- psrc->last_position = input_index ;
-
- if (priv->in_used > 0)
- for (ch = 0 ; ch < priv->channels ; ch++)
- priv->last_value [ch] = data->data_in [priv->in_used - priv->channels + ch] ;
-
- /* Save current ratio rather then target ratio. */
- psrc->last_ratio = src_ratio ;
-
- data->input_frames_used = priv->in_used / priv->channels ;
- data->output_frames_gen = priv->out_gen / priv->channels ;
-
- return SRC_ERR_NO_ERROR ;
-} /* linear_vari_process */
-
-/*------------------------------------------------------------------------------
-*/
-
-const char*
-linear_get_name (int src_enum)
-{
- if (src_enum == SRC_LINEAR)
- return "Linear Interpolator" ;
-
- return NULL ;
-} /* linear_get_name */
-
-const char*
-linear_get_description (int src_enum)
-{
- if (src_enum == SRC_LINEAR)
- return "Linear interpolator, very fast, poor quality." ;
-
- return NULL ;
-} /* linear_get_descrition */
-
-int
-linear_set_converter (SRC_PRIVATE *psrc, int src_enum)
-{ LINEAR_DATA *priv = NULL ;
-
- if (src_enum != SRC_LINEAR)
- return SRC_ERR_BAD_CONVERTER ;
-
- if (psrc->private_data != NULL)
- { free (psrc->private_data) ;
- psrc->private_data = NULL ;
- } ;
-
- if (psrc->private_data == NULL)
- { priv = calloc (1, sizeof (*priv) + psrc->channels * sizeof (float)) ;
- psrc->private_data = priv ;
- } ;
-
- if (priv == NULL)
- return SRC_ERR_MALLOC_FAILED ;
-
- priv->linear_magic_marker = LINEAR_MAGIC_MARKER ;
- priv->channels = psrc->channels ;
-
- psrc->const_process = linear_vari_process ;
- psrc->vari_process = linear_vari_process ;
- psrc->reset = linear_reset ;
-
- linear_reset (psrc) ;
-
- return SRC_ERR_NO_ERROR ;
-} /* linear_set_converter */
-
-/*===================================================================================
-*/
-
-static void
-linear_reset (SRC_PRIVATE *psrc)
-{ LINEAR_DATA *priv = NULL ;
-
- priv = (LINEAR_DATA*) psrc->private_data ;
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/src/src_sinc.c
^
|
@@ -1,1191 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "config.h"
-#include "float_cast.h"
-#include "common.h"
-
-#define SINC_MAGIC_MARKER MAKE_MAGIC (' ', 's', 'i', 'n', 'c', ' ')
-
-/*========================================================================================
-*/
-
-#define MAKE_INCREMENT_T(x) ((increment_t) (x))
-
-#define SHIFT_BITS 12
-#define FP_ONE ((double) (((increment_t) 1) << SHIFT_BITS))
-#define INV_FP_ONE (1.0 / FP_ONE)
-
-/*========================================================================================
-*/
-
-typedef int32_t increment_t ;
-typedef float coeff_t ;
-
-#include "fastest_coeffs.h"
-#include "mid_qual_coeffs.h"
-#include "high_qual_coeffs.h"
-
-typedef struct
-{ int sinc_magic_marker ;
-
- int channels ;
- long in_count, in_used ;
- long out_count, out_gen ;
-
- int coeff_half_len, index_inc ;
-
- double src_ratio, input_index ;
-
- coeff_t const *coeffs ;
-
- int b_current, b_end, b_real_end, b_len ;
-
- /* Sure hope noone does more than 128 channels at once. */
- double left_calc [128], right_calc [128] ;
-
- /* C99 struct flexible array. */
- float buffer [] ;
-} SINC_FILTER ;
-
-static int sinc_multichan_vari_process (SRC_PRIVATE *psrc, SRC_DATA *data) ;
-static int sinc_hex_vari_process (SRC_PRIVATE *psrc, SRC_DATA *data) ;
-static int sinc_quad_vari_process (SRC_PRIVATE *psrc, SRC_DATA *data) ;
-static int sinc_stereo_vari_process (SRC_PRIVATE *psrc, SRC_DATA *data) ;
-static int sinc_mono_vari_process (SRC_PRIVATE *psrc, SRC_DATA *data) ;
-
-static int prepare_data (SINC_FILTER *filter, SRC_DATA *data, int half_filter_chan_len) WARN_UNUSED ;
-
-static void sinc_reset (SRC_PRIVATE *psrc) ;
-
-static inline increment_t
-double_to_fp (double x)
-{ return (lrint ((x) * FP_ONE)) ;
-} /* double_to_fp */
-
-static inline increment_t
-int_to_fp (int x)
-{ return (((increment_t) (x)) << SHIFT_BITS) ;
-} /* int_to_fp */
-
-static inline int
-fp_to_int (increment_t x)
-{ return (((x) >> SHIFT_BITS)) ;
-} /* fp_to_int */
-
-static inline increment_t
-fp_fraction_part (increment_t x)
-{ return ((x) & ((((increment_t) 1) << SHIFT_BITS) - 1)) ;
-} /* fp_fraction_part */
-
-static inline double
-fp_to_double (increment_t x)
-{ return fp_fraction_part (x) * INV_FP_ONE ;
-} /* fp_to_double */
-
-
-/*----------------------------------------------------------------------------------------
-*/
-
-const char*
-sinc_get_name (int src_enum)
-{
- switch (src_enum)
- { case SRC_SINC_BEST_QUALITY :
- return "Best Sinc Interpolator" ;
-
- case SRC_SINC_MEDIUM_QUALITY :
- return "Medium Sinc Interpolator" ;
-
- case SRC_SINC_FASTEST :
- return "Fastest Sinc Interpolator" ;
-
- default: break ;
- } ;
-
- return NULL ;
-} /* sinc_get_descrition */
-
-const char*
-sinc_get_description (int src_enum)
-{
- switch (src_enum)
- { case SRC_SINC_FASTEST :
- return "Band limited sinc interpolation, fastest, 97dB SNR, 80% BW." ;
-
- case SRC_SINC_MEDIUM_QUALITY :
- return "Band limited sinc interpolation, medium quality, 121dB SNR, 90% BW." ;
-
- case SRC_SINC_BEST_QUALITY :
- return "Band limited sinc interpolation, best quality, 144dB SNR, 96% BW." ;
-
- default :
- break ;
- } ;
-
- return NULL ;
-} /* sinc_get_descrition */
-
-int
-sinc_set_converter (SRC_PRIVATE *psrc, int src_enum)
-{ SINC_FILTER *filter, temp_filter ;
- increment_t count ;
- int bits ;
-
- /* Quick sanity check. */
- if (SHIFT_BITS >= sizeof (increment_t) * 8 - 1)
- return SRC_ERR_SHIFT_BITS ;
-
- if (psrc->private_data != NULL)
- { free (psrc->private_data) ;
- psrc->private_data = NULL ;
- } ;
-
- memset (&temp_filter, 0, sizeof (temp_filter)) ;
-
- temp_filter.sinc_magic_marker = SINC_MAGIC_MARKER ;
- temp_filter.channels = psrc->channels ;
-
- if (psrc->channels > ARRAY_LEN (temp_filter.left_calc))
- return SRC_ERR_BAD_CHANNEL_COUNT ;
- else if (psrc->channels == 1)
- { psrc->const_process = sinc_mono_vari_process ;
- psrc->vari_process = sinc_mono_vari_process ;
- }
- else
- if (psrc->channels == 2)
- { psrc->const_process = sinc_stereo_vari_process ;
- psrc->vari_process = sinc_stereo_vari_process ;
- }
- else
- if (psrc->channels == 4)
- { psrc->const_process = sinc_quad_vari_process ;
- psrc->vari_process = sinc_quad_vari_process ;
- }
- else
- if (psrc->channels == 6)
- { psrc->const_process = sinc_hex_vari_process ;
- psrc->vari_process = sinc_hex_vari_process ;
- }
- else
- { psrc->const_process = sinc_multichan_vari_process ;
- psrc->vari_process = sinc_multichan_vari_process ;
- } ;
- psrc->reset = sinc_reset ;
-
- switch (src_enum)
- { case SRC_SINC_FASTEST :
- temp_filter.coeffs = fastest_coeffs.coeffs ;
- temp_filter.coeff_half_len = ARRAY_LEN (fastest_coeffs.coeffs) - 2 ;
- temp_filter.index_inc = fastest_coeffs.increment ;
- break ;
-
- case SRC_SINC_MEDIUM_QUALITY :
- temp_filter.coeffs = slow_mid_qual_coeffs.coeffs ;
- temp_filter.coeff_half_len = ARRAY_LEN (slow_mid_qual_coeffs.coeffs) - 2 ;
- temp_filter.index_inc = slow_mid_qual_coeffs.increment ;
- break ;
-
- case SRC_SINC_BEST_QUALITY :
- temp_filter.coeffs = slow_high_qual_coeffs.coeffs ;
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/src/src_zoh.c
^
|
@@ -1,200 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "config.h"
-#include "float_cast.h"
-#include "common.h"
-
-static int zoh_vari_process (SRC_PRIVATE *psrc, SRC_DATA *data) ;
-static void zoh_reset (SRC_PRIVATE *psrc) ;
-
-/*========================================================================================
-*/
-
-#define ZOH_MAGIC_MARKER MAKE_MAGIC ('s', 'r', 'c', 'z', 'o', 'h')
-
-typedef struct
-{ int zoh_magic_marker ;
- int channels ;
- int reset ;
- long in_count, in_used ;
- long out_count, out_gen ;
- float last_value [1] ;
-} ZOH_DATA ;
-
-/*----------------------------------------------------------------------------------------
-*/
-
-static int
-zoh_vari_process (SRC_PRIVATE *psrc, SRC_DATA *data)
-{ ZOH_DATA *priv ;
- double src_ratio, input_index, rem ;
- int ch ;
-
- if (data->input_frames <= 0)
- return SRC_ERR_NO_ERROR ;
-
- if (psrc->private_data == NULL)
- return SRC_ERR_NO_PRIVATE ;
-
- priv = (ZOH_DATA*) psrc->private_data ;
-
- if (priv->reset)
- { /* If we have just been reset, set the last_value data. */
- for (ch = 0 ; ch < priv->channels ; ch++)
- priv->last_value [ch] = data->data_in [ch] ;
- priv->reset = 0 ;
- } ;
-
- priv->in_count = data->input_frames * priv->channels ;
- priv->out_count = data->output_frames * priv->channels ;
- priv->in_used = priv->out_gen = 0 ;
-
- src_ratio = psrc->last_ratio ;
-
- if (is_bad_src_ratio (src_ratio))
- return SRC_ERR_BAD_INTERNAL_STATE ;
-
- input_index = psrc->last_position ;
-
- /* Calculate samples before first sample in input array. */
- while (input_index < 1.0 && priv->out_gen < priv->out_count)
- {
- if (priv->in_used + priv->channels * input_index >= priv->in_count)
- break ;
-
- if (priv->out_count > 0 && fabs (psrc->last_ratio - data->src_ratio) > SRC_MIN_RATIO_DIFF)
- src_ratio = psrc->last_ratio + priv->out_gen * (data->src_ratio - psrc->last_ratio) / priv->out_count ;
-
- for (ch = 0 ; ch < priv->channels ; ch++)
- { data->data_out [priv->out_gen] = priv->last_value [ch] ;
- priv->out_gen ++ ;
- } ;
-
- /* Figure out the next index. */
- input_index += 1.0 / src_ratio ;
- } ;
-
- rem = fmod_one (input_index) ;
- priv->in_used += priv->channels * lrint (input_index - rem) ;
- input_index = rem ;
-
- /* Main processing loop. */
- while (priv->out_gen < priv->out_count && priv->in_used + priv->channels * input_index <= priv->in_count)
- {
- if (priv->out_count > 0 && fabs (psrc->last_ratio - data->src_ratio) > SRC_MIN_RATIO_DIFF)
- src_ratio = psrc->last_ratio + priv->out_gen * (data->src_ratio - psrc->last_ratio) / priv->out_count ;
-
- for (ch = 0 ; ch < priv->channels ; ch++)
- { data->data_out [priv->out_gen] = data->data_in [priv->in_used - priv->channels + ch] ;
- priv->out_gen ++ ;
- } ;
-
- /* Figure out the next index. */
- input_index += 1.0 / src_ratio ;
- rem = fmod_one (input_index) ;
-
- priv->in_used += priv->channels * lrint (input_index - rem) ;
- input_index = rem ;
- } ;
-
- if (priv->in_used > priv->in_count)
- { input_index += (priv->in_used - priv->in_count) / priv->channels ;
- priv->in_used = priv->in_count ;
- } ;
-
- psrc->last_position = input_index ;
-
- if (priv->in_used > 0)
- for (ch = 0 ; ch < priv->channels ; ch++)
- priv->last_value [ch] = data->data_in [priv->in_used - priv->channels + ch] ;
-
- /* Save current ratio rather then target ratio. */
- psrc->last_ratio = src_ratio ;
-
- data->input_frames_used = priv->in_used / priv->channels ;
- data->output_frames_gen = priv->out_gen / priv->channels ;
-
- return SRC_ERR_NO_ERROR ;
-} /* zoh_vari_process */
-
-/*------------------------------------------------------------------------------
-*/
-
-const char*
-zoh_get_name (int src_enum)
-{
- if (src_enum == SRC_ZERO_ORDER_HOLD)
- return "ZOH Interpolator" ;
-
- return NULL ;
-} /* zoh_get_name */
-
-const char*
-zoh_get_description (int src_enum)
-{
- if (src_enum == SRC_ZERO_ORDER_HOLD)
- return "Zero order hold interpolator, very fast, poor quality." ;
-
- return NULL ;
-} /* zoh_get_descrition */
-
-int
-zoh_set_converter (SRC_PRIVATE *psrc, int src_enum)
-{ ZOH_DATA *priv = NULL ;
-
- if (src_enum != SRC_ZERO_ORDER_HOLD)
- return SRC_ERR_BAD_CONVERTER ;
-
- if (psrc->private_data != NULL)
- { free (psrc->private_data) ;
- psrc->private_data = NULL ;
- } ;
-
- if (psrc->private_data == NULL)
- { priv = calloc (1, sizeof (*priv) + psrc->channels * sizeof (float)) ;
- psrc->private_data = priv ;
- } ;
-
- if (priv == NULL)
- return SRC_ERR_MALLOC_FAILED ;
-
- priv->zoh_magic_marker = ZOH_MAGIC_MARKER ;
- priv->channels = psrc->channels ;
-
- psrc->const_process = zoh_vari_process ;
- psrc->vari_process = zoh_vari_process ;
- psrc->reset = zoh_reset ;
-
- zoh_reset (psrc) ;
-
- return SRC_ERR_NO_ERROR ;
-} /* zoh_set_converter */
-
-/*===================================================================================
-*/
-
-static void
-zoh_reset (SRC_PRIVATE *psrc)
-{ ZOH_DATA *priv ;
-
- priv = (ZOH_DATA*) psrc->private_data ;
- if (priv == NULL)
- return ;
-
- priv->channels = psrc->channels ;
- priv->reset = 1 ;
- memset (priv->last_value, 0, sizeof (priv->last_value [0]) * priv->channels) ;
-
- return ;
-} /* zoh_reset */
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests
^
|
-(directory)
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/Makefile.am
^
|
@@ -1,84 +0,0 @@
-noinst_PROGRAMS = misc_test termination_test simple_test callback_test \
- reset_test multi_channel_test snr_bw_test \
- float_short_test varispeed_test callback_hang_test \
- src-evaluate throughput_test multichan_throughput_test \
- downsample_test
-
-SAMPLRATEDIR =../src
-INCLUDES = -I$(srcdir)/$(SAMPLRATEDIR)
-noinst_HEADERS = util.h
-
-#===============================================================================
-
-misc_test_SOURCES = misc_test.c util.c util.h
-misc_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la
-
-termination_test_SOURCES = termination_test.c util.c util.h
-termination_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la
-
-callback_hang_test_SOURCES = callback_hang_test.c util.c util.h
-callback_hang_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la
-
-simple_test_SOURCES = simple_test.c util.c util.h
-simple_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la
-
-reset_test_SOURCES = reset_test.c util.c util.h
-reset_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la
-
-multi_channel_test_SOURCES = multi_channel_test.c util.c calc_snr.c
-multi_channel_test_CFLAGS = @FFTW3_CFLAGS@
-multi_channel_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la $(FFTW3_LIBS)
-
-snr_bw_test_SOURCES = snr_bw_test.c calc_snr.c util.c util.h
-snr_bw_test_CFLAGS = @FFTW3_CFLAGS@
-snr_bw_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la $(FFTW3_LIBS)
-
-callback_test_SOURCES = callback_test.c util.c util.h
-callback_test_CFLAGS = @FFTW3_CFLAGS@
-callback_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la
-
-float_short_test_SOURCES = float_short_test.c util.c util.h
-float_short_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la
-
-downsample_test_SOURCES = downsample_test.c util.c util.h
-downsample_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la
-
-varispeed_test_SOURCES = varispeed_test.c util.c util.h calc_snr.c
-varispeed_test_CFLAGS = @FFTW3_CFLAGS@
-varispeed_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la $(FFTW3_LIBS)
-
-# This program is for evaluating other sample rate converters.
-
-throughput_test_CFLAGS = $(AM_CFLAGS) @FFTW3_CFLAGS@
-throughput_test_SOURCES = throughput_test.c util.c calc_snr.c
-throughput_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la $(FFTW3_LIBS)
-
-multichan_throughput_test_CFLAGS = $(AM_CFLAGS) @FFTW3_CFLAGS@
-multichan_throughput_test_SOURCES = multichan_throughput_test.c util.c calc_snr.c
-multichan_throughput_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la $(FFTW3_LIBS)
-
-src_evaluate_SOURCES = src-evaluate.c calc_snr.c util.c
-src_evaluate_CFLAGS = @SNDFILE_CFLAGS@ @FFTW3_CFLAGS@
-src_evaluate_LDADD = $(SNDFILE_LIBS) $(FFTW3_LIBS)
-
-#===============================================================================
-
-check: $(noinst_PROGRAMS)
- date
- uname -a
- ./misc_test
- ./termination_test
- ./callback_hang_test
- ./downsample_test
- ./simple_test
- ./callback_test
- ./reset_test
- ./multi_channel_test
- ./varispeed_test
- ./float_short_test
- ./snr_bw_test
- ./throughput_test
- @echo "-----------------------------------------------------------------"
- @echo " ${PACKAGE}-${VERSION} passed all tests."
- @echo "-----------------------------------------------------------------"
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/Makefile.in
^
|
@@ -1,1146 +0,0 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-
-VPATH = @srcdir@
-am__is_gnu_make = { \
- if test -z '$(MAKELEVEL)'; then \
- false; \
- elif test -n '$(MAKE_HOST)'; then \
- true; \
- elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
- true; \
- else \
- false; \
- fi; \
-}
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-noinst_PROGRAMS = misc_test$(EXEEXT) termination_test$(EXEEXT) \
- simple_test$(EXEEXT) callback_test$(EXEEXT) \
- reset_test$(EXEEXT) multi_channel_test$(EXEEXT) \
- snr_bw_test$(EXEEXT) float_short_test$(EXEEXT) \
- varispeed_test$(EXEEXT) callback_hang_test$(EXEEXT) \
- src-evaluate$(EXEEXT) throughput_test$(EXEEXT) \
- multichan_throughput_test$(EXEEXT) downsample_test$(EXEEXT)
-subdir = tests
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/M4/check_signal.m4 \
- $(top_srcdir)/M4/clip_mode.m4 $(top_srcdir)/M4/endian.m4 \
- $(top_srcdir)/M4/libtool.m4 $(top_srcdir)/M4/lrint.m4 \
- $(top_srcdir)/M4/lrintf.m4 $(top_srcdir)/M4/ltoptions.m4 \
- $(top_srcdir)/M4/ltsugar.m4 $(top_srcdir)/M4/ltversion.m4 \
- $(top_srcdir)/M4/lt~obsolete.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am $(noinst_HEADERS) \
- $(am__DIST_COMMON)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/src/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-PROGRAMS = $(noinst_PROGRAMS)
-am_callback_hang_test_OBJECTS = callback_hang_test.$(OBJEXT) \
- util.$(OBJEXT)
-callback_hang_test_OBJECTS = $(am_callback_hang_test_OBJECTS)
-callback_hang_test_DEPENDENCIES = $(SAMPLRATEDIR)/libsamplerate.la
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 =
-am_callback_test_OBJECTS = callback_test-callback_test.$(OBJEXT) \
- callback_test-util.$(OBJEXT)
-callback_test_OBJECTS = $(am_callback_test_OBJECTS)
-callback_test_DEPENDENCIES = $(SAMPLRATEDIR)/libsamplerate.la
-callback_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(callback_test_CFLAGS) \
- $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-am_downsample_test_OBJECTS = downsample_test.$(OBJEXT) util.$(OBJEXT)
-downsample_test_OBJECTS = $(am_downsample_test_OBJECTS)
-downsample_test_DEPENDENCIES = $(SAMPLRATEDIR)/libsamplerate.la
-am_float_short_test_OBJECTS = float_short_test.$(OBJEXT) \
- util.$(OBJEXT)
-float_short_test_OBJECTS = $(am_float_short_test_OBJECTS)
-float_short_test_DEPENDENCIES = $(SAMPLRATEDIR)/libsamplerate.la
-am_misc_test_OBJECTS = misc_test.$(OBJEXT) util.$(OBJEXT)
-misc_test_OBJECTS = $(am_misc_test_OBJECTS)
-misc_test_DEPENDENCIES = $(SAMPLRATEDIR)/libsamplerate.la
-am_multi_channel_test_OBJECTS = \
- multi_channel_test-multi_channel_test.$(OBJEXT) \
- multi_channel_test-util.$(OBJEXT) \
- multi_channel_test-calc_snr.$(OBJEXT)
-multi_channel_test_OBJECTS = $(am_multi_channel_test_OBJECTS)
-am__DEPENDENCIES_1 =
-multi_channel_test_DEPENDENCIES = $(SAMPLRATEDIR)/libsamplerate.la \
- $(am__DEPENDENCIES_1)
-multi_channel_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
- $(multi_channel_test_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
- $(LDFLAGS) -o $@
-am_multichan_throughput_test_OBJECTS = \
- multichan_throughput_test-multichan_throughput_test.$(OBJEXT) \
- multichan_throughput_test-util.$(OBJEXT) \
- multichan_throughput_test-calc_snr.$(OBJEXT)
-multichan_throughput_test_OBJECTS = \
- $(am_multichan_throughput_test_OBJECTS)
-multichan_throughput_test_DEPENDENCIES = \
- $(SAMPLRATEDIR)/libsamplerate.la $(am__DEPENDENCIES_1)
-multichan_throughput_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
- $(multichan_throughput_test_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
- $(LDFLAGS) -o $@
-am_reset_test_OBJECTS = reset_test.$(OBJEXT) util.$(OBJEXT)
-reset_test_OBJECTS = $(am_reset_test_OBJECTS)
-reset_test_DEPENDENCIES = $(SAMPLRATEDIR)/libsamplerate.la
-am_simple_test_OBJECTS = simple_test.$(OBJEXT) util.$(OBJEXT)
-simple_test_OBJECTS = $(am_simple_test_OBJECTS)
-simple_test_DEPENDENCIES = $(SAMPLRATEDIR)/libsamplerate.la
-am_snr_bw_test_OBJECTS = snr_bw_test-snr_bw_test.$(OBJEXT) \
- snr_bw_test-calc_snr.$(OBJEXT) snr_bw_test-util.$(OBJEXT)
-snr_bw_test_OBJECTS = $(am_snr_bw_test_OBJECTS)
-snr_bw_test_DEPENDENCIES = $(SAMPLRATEDIR)/libsamplerate.la \
- $(am__DEPENDENCIES_1)
-snr_bw_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(snr_bw_test_CFLAGS) \
- $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-am_src_evaluate_OBJECTS = src_evaluate-src-evaluate.$(OBJEXT) \
- src_evaluate-calc_snr.$(OBJEXT) src_evaluate-util.$(OBJEXT)
-src_evaluate_OBJECTS = $(am_src_evaluate_OBJECTS)
-src_evaluate_DEPENDENCIES = $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1)
-src_evaluate_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(src_evaluate_CFLAGS) \
- $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-am_termination_test_OBJECTS = termination_test.$(OBJEXT) \
- util.$(OBJEXT)
-termination_test_OBJECTS = $(am_termination_test_OBJECTS)
-termination_test_DEPENDENCIES = $(SAMPLRATEDIR)/libsamplerate.la
-am_throughput_test_OBJECTS = \
- throughput_test-throughput_test.$(OBJEXT) \
- throughput_test-util.$(OBJEXT) \
- throughput_test-calc_snr.$(OBJEXT)
-throughput_test_OBJECTS = $(am_throughput_test_OBJECTS)
-throughput_test_DEPENDENCIES = $(SAMPLRATEDIR)/libsamplerate.la \
- $(am__DEPENDENCIES_1)
-throughput_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/calc_snr.c
^
|
@@ -1,241 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include "config.h"
-
-#include "util.h"
-
-#if (HAVE_FFTW3 == 1)
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
-
-#include <fftw3.h>
-
-#define MAX_SPEC_LEN (1<<18)
-#define MAX_PEAKS 10
-
-static void log_mag_spectrum (double *input, int len, double *magnitude) ;
-static void smooth_mag_spectrum (double *magnitude, int len) ;
-static double find_snr (const double *magnitude, int len, int expected_peaks) ;
-
-typedef struct
-{ double peak ;
- int index ;
-} PEAK_DATA ;
-
-double
-calculate_snr (float *data, int len, int expected_peaks)
-{ static double magnitude [MAX_SPEC_LEN] ;
- static double datacopy [MAX_SPEC_LEN] ;
-
- double snr = 200.0 ;
- int k ;
-
- if (len > MAX_SPEC_LEN)
- { printf ("%s : line %d : data length too large.\n", __FILE__, __LINE__) ;
- exit (1) ;
- } ;
-
- for (k = 0 ; k < len ; k++)
- datacopy [k] = data [k] ;
-
- /* Pad the data just a little to speed up the FFT. */
- while ((len & 0x1F) && len < MAX_SPEC_LEN)
- { datacopy [len] = 0.0 ;
- len ++ ;
- } ;
-
- log_mag_spectrum (datacopy, len, magnitude) ;
- smooth_mag_spectrum (magnitude, len / 2) ;
-
- snr = find_snr (magnitude, len, expected_peaks) ;
-
- return snr ;
-} /* calculate_snr */
-
-/*==============================================================================
-** There is a slight problem with trying to measure SNR with the method used
-** here; the side lobes of the windowed FFT can look like a noise/aliasing peak.
-** The solution is to smooth the magnitude spectrum by wiping out troughs
-** between adjacent peaks as done here.
-** This removes side lobe peaks without affecting noise/aliasing peaks.
-*/
-
-static void linear_smooth (double *mag, PEAK_DATA *larger, PEAK_DATA *smaller) ;
-
-static void
-smooth_mag_spectrum (double *mag, int len)
-{ PEAK_DATA peaks [2] ;
-
- int k ;
-
- memset (peaks, 0, sizeof (peaks)) ;
-
- /* Find first peak. */
- for (k = 1 ; k < len - 1 ; k++)
- { if (mag [k - 1] < mag [k] && mag [k] >= mag [k + 1])
- { peaks [0].peak = mag [k] ;
- peaks [0].index = k ;
- break ;
- } ;
- } ;
-
- /* Find subsequent peaks ans smooth between peaks. */
- for (k = peaks [0].index + 1 ; k < len - 1 ; k++)
- { if (mag [k - 1] < mag [k] && mag [k] >= mag [k + 1])
- { peaks [1].peak = mag [k] ;
- peaks [1].index = k ;
-
- if (peaks [1].peak > peaks [0].peak)
- linear_smooth (mag, &peaks [1], &peaks [0]) ;
- else
- linear_smooth (mag, &peaks [0], &peaks [1]) ;
- peaks [0] = peaks [1] ;
- } ;
- } ;
-
-} /* smooth_mag_spectrum */
-
-static void
-linear_smooth (double *mag, PEAK_DATA *larger, PEAK_DATA *smaller)
-{ int k ;
-
- if (smaller->index < larger->index)
- { for (k = smaller->index + 1 ; k < larger->index ; k++)
- mag [k] = (mag [k] < mag [k - 1]) ? 0.999 * mag [k - 1] : mag [k] ;
- }
- else
- { for (k = smaller->index - 1 ; k >= larger->index ; k--)
- mag [k] = (mag [k] < mag [k + 1]) ? 0.999 * mag [k + 1] : mag [k] ;
- } ;
-
-} /* linear_smooth */
-
-/*==============================================================================
-*/
-
-static int
-peak_compare (const void *vp1, const void *vp2)
-{ const PEAK_DATA *peak1, *peak2 ;
-
- peak1 = (const PEAK_DATA*) vp1 ;
- peak2 = (const PEAK_DATA*) vp2 ;
-
- return (peak1->peak < peak2->peak) ? 1 : -1 ;
-} /* peak_compare */
-
-static double
-find_snr (const double *magnitude, int len, int expected_peaks)
-{ PEAK_DATA peaks [MAX_PEAKS] ;
-
- int k, peak_count = 0 ;
- double snr ;
-
- memset (peaks, 0, sizeof (peaks)) ;
-
- /* Find the MAX_PEAKS largest peaks. */
- for (k = 1 ; k < len - 1 ; k++)
- { if (magnitude [k - 1] < magnitude [k] && magnitude [k] >= magnitude [k + 1])
- { if (peak_count < MAX_PEAKS)
- { peaks [peak_count].peak = magnitude [k] ;
- peaks [peak_count].index = k ;
- peak_count ++ ;
- qsort (peaks, peak_count, sizeof (PEAK_DATA), peak_compare) ;
- }
- else if (magnitude [k] > peaks [MAX_PEAKS - 1].peak)
- { peaks [MAX_PEAKS - 1].peak = magnitude [k] ;
- peaks [MAX_PEAKS - 1].index = k ;
- qsort (peaks, MAX_PEAKS, sizeof (PEAK_DATA), peak_compare) ;
- } ;
- } ;
- } ;
-
- if (peak_count < expected_peaks)
- { printf ("\n%s : line %d : bad peak_count (%d), expected %d.\n\n", __FILE__, __LINE__, peak_count, expected_peaks) ;
- return -1.0 ;
- } ;
-
- /* Sort the peaks. */
- qsort (peaks, peak_count, sizeof (PEAK_DATA), peak_compare) ;
-
- snr = peaks [0].peak ;
- for (k = 1 ; k < peak_count ; k++)
- if (fabs (snr - peaks [k].peak) > 10.0)
- return fabs (peaks [k].peak) ;
-
- return snr ;
-} /* find_snr */
-
-static void
-log_mag_spectrum (double *input, int len, double *magnitude)
-{ fftw_plan plan = NULL ;
-
- double maxval ;
- int k ;
-
- if (input == NULL || magnitude == NULL)
- return ;
-
- plan = fftw_plan_r2r_1d (len, input, magnitude, FFTW_R2HC, FFTW_ESTIMATE | FFTW_PRESERVE_INPUT) ;
- if (plan == NULL)
- { printf ("%s : line %d : create plan failed.\n", __FILE__, __LINE__) ;
- exit (1) ;
- } ;
-
- fftw_execute (plan) ;
-
- fftw_destroy_plan (plan) ;
-
- maxval = 0.0 ;
- for (k = 1 ; k < len / 2 ; k++)
- { /*
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/callback_hang_test.c
^
|
@@ -1,121 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include "config.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <math.h>
-
-#if HAVE_ALARM && HAVE_SIGNAL && HAVE_SIGALRM
-
-#include <signal.h>
-
-#include <samplerate.h>
-
-#include "util.h"
-
-#define SHORT_BUFFER_LEN 512
-#define LONG_BUFFER_LEN (1 << 14)
-
-typedef struct
-{ double ratio ;
- int count ;
-} SRC_PAIR ;
-
-static void callback_hang_test (int converter) ;
-
-static void alarm_handler (int number) ;
-static long input_callback (void *cb_data, float **data) ;
-
-
-int
-main (void)
-{
- /* Set up SIGALRM handler. */
- signal (SIGALRM, alarm_handler) ;
-
- puts ("") ;
- callback_hang_test (SRC_ZERO_ORDER_HOLD) ;
- callback_hang_test (SRC_LINEAR) ;
- callback_hang_test (SRC_SINC_FASTEST) ;
- puts ("") ;
-
- return 0 ;
-} /* main */
-
-
-static void
-callback_hang_test (int converter)
-{ static float output [LONG_BUFFER_LEN] ;
- static SRC_PAIR pairs [] =
- {
- { 1.2, 5 }, { 1.1, 1 }, { 1.0, 1 }, { 3.0, 1 }, { 2.0, 1 }, { 0.3, 1 },
- { 1.2, 0 }, { 1.1, 10 }, { 1.0, 1 }
- } ;
-
-
- SRC_STATE *src_state ;
-
- double src_ratio = 1.0 ;
- int k, error ;
-
- printf ("\tcallback_hang_test (%-28s) ....... ", src_get_name (converter)) ;
- fflush (stdout) ;
-
- /* Perform sample rate conversion. */
- src_state = src_callback_new (input_callback, converter, 1, &error, NULL) ;
- if (src_state == NULL)
- { printf ("\n\nLine %d : src_callback_new () failed : %s\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- for (k = 0 ; k < ARRAY_LEN (pairs) ; k++)
- { alarm (1) ;
- src_ratio = pairs [k].ratio ;
- src_callback_read (src_state, src_ratio, pairs [k].count, output) ;
- } ;
-
- src_state = src_delete (src_state) ;
-
- alarm (0) ;
- puts ("ok") ;
-
- return ;
-} /* callback_hang_test */
-
-static void
-alarm_handler (int number)
-{
- (void) number ;
- printf ("\n\n Error : Hang inside src_callback_read() detected. Exiting!\n\n") ;
- exit (1) ;
-} /* alarm_handler */
-
-static long
-input_callback (void *cb_data, float **data)
-{
- static float buffer [20] ;
-
- (void) cb_data ;
- *data = buffer ;
-
- return ARRAY_LEN (buffer) ;
-} /* input_callback */
-
-#else
-
-int
-main (void)
-{
- puts ("\tCan't run this test on this platform.") ;
- return 0 ;
-} /* main */
-
-#endif
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/callback_test.c
^
|
@@ -1,233 +0,0 @@
-/*
-** Copyright (c) 2003-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
-
-#include <samplerate.h>
-
-#include "util.h"
-
-#define BUFFER_LEN 10000
-#define CB_READ_LEN 256
-
-static void callback_test (int converter, double ratio) ;
-static void end_of_stream_test (int converter) ;
-
-int
-main (void)
-{ static double src_ratios [] =
- { 1.0, 0.099, 0.1, 0.33333333, 0.789, 1.0001, 1.9, 3.1, 9.9
- } ;
-
- int k ;
-
- puts ("") ;
-
- puts (" Zero Order Hold interpolator :") ;
- for (k = 0 ; k < ARRAY_LEN (src_ratios) ; k++)
- callback_test (SRC_ZERO_ORDER_HOLD, src_ratios [k]) ;
-
- puts (" Linear interpolator :") ;
- for (k = 0 ; k < ARRAY_LEN (src_ratios) ; k++)
- callback_test (SRC_LINEAR, src_ratios [k]) ;
-
- puts (" Sinc interpolator :") ;
- for (k = 0 ; k < ARRAY_LEN (src_ratios) ; k++)
- callback_test (SRC_SINC_FASTEST, src_ratios [k]) ;
-
- puts ("") ;
-
- puts (" End of stream test :") ;
- end_of_stream_test (SRC_ZERO_ORDER_HOLD) ;
- end_of_stream_test (SRC_LINEAR) ;
- end_of_stream_test (SRC_SINC_FASTEST) ;
-
- puts ("") ;
- return 0 ;
-} /* main */
-
-/*=====================================================================================
-*/
-
-typedef struct
-{ int channels ;
- long count, total ;
- int end_of_data ;
- float data [BUFFER_LEN] ;
-} TEST_CB_DATA ;
-
-static long
-test_callback_func (void *cb_data, float **data)
-{ TEST_CB_DATA *pcb_data ;
-
- long frames ;
-
- if ((pcb_data = cb_data) == NULL)
- return 0 ;
-
- if (data == NULL)
- return 0 ;
-
- if (pcb_data->total - pcb_data->count > CB_READ_LEN)
- frames = CB_READ_LEN / pcb_data->channels ;
- else
- frames = (pcb_data->total - pcb_data->count) / pcb_data->channels ;
-
- *data = pcb_data->data + pcb_data->count ;
- pcb_data->count += frames ;
-
- return frames ;
-} /* test_callback_func */
-
-
-static void
-callback_test (int converter, double src_ratio)
-{ static TEST_CB_DATA test_callback_data ;
- static float output [BUFFER_LEN] ;
-
- SRC_STATE *src_state ;
-
- long read_count, read_total ;
- int error ;
-
- printf ("\tcallback_test (SRC ratio = %6.4f) ........... ", src_ratio) ;
- fflush (stdout) ;
-
- test_callback_data.channels = 2 ;
- test_callback_data.count = 0 ;
- test_callback_data.end_of_data = 0 ;
- test_callback_data.total = ARRAY_LEN (test_callback_data.data) ;
-
- if ((src_state = src_callback_new (test_callback_func, converter, test_callback_data.channels, &error, &test_callback_data)) == NULL)
- { printf ("\n\nLine %d : %s\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- read_total = 0 ;
- do
- { /* We will be throwing away output data, so just grab as much as possible. */
- read_count = ARRAY_LEN (output) / test_callback_data.channels ;
- read_count = src_callback_read (src_state, src_ratio, read_count, output) ;
- read_total += read_count ;
- }
- while (read_count > 0) ;
-
- if ((error = src_error (src_state)) != 0)
- { printf ("\n\nLine %d : %s\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- src_state = src_delete (src_state) ;
-
- if (fabs (read_total / src_ratio - ARRAY_LEN (test_callback_data.data)) > 2.0)
- { printf ("\n\nLine %d : input / output length mismatch.\n\n", __LINE__) ;
- printf (" input len : %d\n", ARRAY_LEN (test_callback_data.data)) ;
- printf (" output len : %ld (should be %g +/- 2)\n\n", read_total,
- floor (0.5 + src_ratio * ARRAY_LEN (test_callback_data.data))) ;
- exit (1) ;
- } ;
-
- puts ("ok") ;
-
- return ;
-} /* callback_test */
-
-/*=====================================================================================
-*/
-
-static long
-eos_callback_func (void *cb_data, float **data)
-{
- TEST_CB_DATA *pcb_data ;
- long frames ;
-
- if (data == NULL)
- return 0 ;
-
- if ((pcb_data = cb_data) == NULL)
- return 0 ;
-
- /*
- ** Return immediately if there is no more data.
- ** In this case, the output pointer 'data' will not be set and
- ** valgrind should not warn about it.
- */
- if (pcb_data->end_of_data)
- return 0 ;
-
- if (pcb_data->total - pcb_data->count > CB_READ_LEN)
- frames = CB_READ_LEN / pcb_data->channels ;
- else
- frames = (pcb_data->total - pcb_data->count) / pcb_data->channels ;
-
- *data = pcb_data->data + pcb_data->count ;
- pcb_data->count += frames ;
-
- /*
- ** Set end_of_data so that the next call to the callback function will
- ** return zero ocunt without setting the 'data' pointer.
- */
- if (pcb_data->total < 2 * pcb_data->count)
- pcb_data->end_of_data = 1 ;
-
- return frames ;
-} /* eos_callback_data */
-
-
-static void
-end_of_stream_test (int converter)
-{ static TEST_CB_DATA test_callback_data ;
- static float output [BUFFER_LEN] ;
-
- SRC_STATE *src_state ;
-
- double src_ratio = 0.3 ;
- long read_count, read_total ;
- int error ;
-
- printf ("\t%-30s ........... ", src_get_name (converter)) ;
- fflush (stdout) ;
-
- test_callback_data.channels = 2 ;
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/downsample_test.c
^
|
@@ -1,51 +0,0 @@
-/*
-** Copyright (c) 2008-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <samplerate.h>
-
-#include "util.h"
-
-static void
-downsample_test (int converter)
-{ static float in [1000], out [10] ;
- SRC_DATA data ;
-
- printf (" downsample_test (%-28s) ....... ", src_get_name (converter)) ;
- fflush (stdout) ;
-
- data.src_ratio = 1.0 / 255.0 ;
- data.input_frames = ARRAY_LEN (in) ;
- data.output_frames = ARRAY_LEN (out) ;
- data.data_in = in ;
- data.data_out = out ;
-
- if (src_simple (&data, converter, 1))
- { puts ("src_simple failed.") ;
- exit (1) ;
- } ;
-
- puts ("ok") ;
-} /* downsample_test */
-
-int
-main (void)
-{
- puts ("") ;
-
- downsample_test (SRC_ZERO_ORDER_HOLD) ;
- downsample_test (SRC_LINEAR) ;
- downsample_test (SRC_SINC_FASTEST) ;
- downsample_test (SRC_SINC_MEDIUM_QUALITY) ;
- downsample_test (SRC_SINC_BEST_QUALITY) ;
-
- puts ("") ;
-
- return 0 ;
-} /* main */
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/float_short_test.c
^
|
@@ -1,182 +0,0 @@
-/*
-** Copyright (c) 2003-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <samplerate.h>
-
-#include "util.h"
-
-#define BUFFER_LEN 10000
-
-static void float_to_short_test (void) ;
-static void short_to_float_test (void) ;
-
-static void float_to_int_test (void) ;
-static void int_to_float_test (void) ;
-
-int
-main (void)
-{
- puts ("") ;
-
- float_to_short_test () ;
- short_to_float_test () ;
-
- float_to_int_test () ;
- int_to_float_test () ;
-
- puts ("") ;
-
- return 0 ;
-} /* main */
-
-/*=====================================================================================
-*/
-
-static void
-float_to_short_test (void)
-{
- static float fpos [] =
- { 0.95, 0.99, 1.0, 1.01, 1.1, 2.0, 11.1, 111.1, 2222.2, 33333.3
- } ;
- static float fneg [] =
- { -0.95, -0.99, -1.0, -1.01, -1.1, -2.0, -11.1, -111.1, -2222.2, -33333.3
- } ;
-
- static short out [MAX (ARRAY_LEN (fpos), ARRAY_LEN (fneg))] ;
-
- int k ;
-
- printf ("\tfloat_to_short_test ............................. ") ;
-
- src_float_to_short_array (fpos, out, ARRAY_LEN (fpos)) ;
-
- for (k = 0 ; k < ARRAY_LEN (fpos) ; k++)
- if (out [k] < 30000)
- { printf ("\n\n\tLine %d : out [%d] == %d\n", __LINE__, k, out [k]) ;
- exit (1) ;
- } ;
-
- src_float_to_short_array (fneg, out, ARRAY_LEN (fneg)) ;
-
- for (k = 0 ; k < ARRAY_LEN (fneg) ; k++)
- if (out [k] > -30000)
- { printf ("\n\n\tLine %d : out [%d] == %d\n", __LINE__, k, out [k]) ;
- exit (1) ;
- } ;
-
- puts ("ok") ;
-
- return ;
-} /* float_to_short_test */
-
-/*-------------------------------------------------------------------------------------
-*/
-
-static void
-short_to_float_test (void)
-{
- static short input [BUFFER_LEN] ;
- static short output [BUFFER_LEN] ;
- static float temp [BUFFER_LEN] ;
-
- int k ;
-
- printf ("\tshort_to_float_test ............................. ") ;
-
- for (k = 0 ; k < ARRAY_LEN (input) ; k++)
- input [k] = (k * 0x8000) / ARRAY_LEN (input) ;
-
- src_short_to_float_array (input, temp, ARRAY_LEN (temp)) ;
- src_float_to_short_array (temp, output, ARRAY_LEN (output)) ;
-
- for (k = 0 ; k < ARRAY_LEN (input) ; k++)
- if (ABS (input [k] - output [k]) > 0)
- { printf ("\n\n\tLine %d : index %d %d -> %d\n", __LINE__, k, input [k], output [k]) ;
- exit (1) ;
- } ;
-
- puts ("ok") ;
-
- return ;
-} /* short_to_float_test */
-
-/*=====================================================================================
-*/
-
-static void
-float_to_int_test (void)
-{
- static float fpos [] =
- { 0.95, 0.99, 1.0, 1.01, 1.1, 2.0, 11.1, 111.1, 2222.2, 33333.3
- } ;
- static float fneg [] =
- { -0.95, -0.99, -1.0, -1.01, -1.1, -2.0, -11.1, -111.1, -2222.2, -33333.3
- } ;
-
- static int out [MAX (ARRAY_LEN (fpos), ARRAY_LEN (fneg))] ;
-
- int k ;
-
- printf ("\tfloat_to_int_test ............................... ") ;
-
- src_float_to_int_array (fpos, out, ARRAY_LEN (fpos)) ;
-
- for (k = 0 ; k < ARRAY_LEN (fpos) ; k++)
- if (out [k] < 30000 * 0x10000)
- { printf ("\n\n\tLine %d : out [%d] == %d\n", __LINE__, k, out [k]) ;
- exit (1) ;
- } ;
-
- src_float_to_int_array (fneg, out, ARRAY_LEN (fneg)) ;
-
- for (k = 0 ; k < ARRAY_LEN (fneg) ; k++)
- if (out [k] > -30000 * 0x1000)
- { printf ("\n\n\tLine %d : out [%d] == %d\n", __LINE__, k, out [k]) ;
- exit (1) ;
- } ;
-
- puts ("ok") ;
-
- return ;
-} /* float_to_int_test */
-
-/*-------------------------------------------------------------------------------------
-*/
-
-static void
-int_to_float_test (void)
-{
- static int input [BUFFER_LEN] ;
- static int output [BUFFER_LEN] ;
- static float temp [BUFFER_LEN] ;
-
- int k ;
-
- printf ("\tint_to_float_test ............................... ") ;
-
- for (k = 0 ; k < ARRAY_LEN (input) ; k++)
- input [k] = (k * 0x80000000) / ARRAY_LEN (input) ;
-
- src_int_to_float_array (input, temp, ARRAY_LEN (temp)) ;
- src_float_to_int_array (temp, output, ARRAY_LEN (output)) ;
-
- for (k = 0 ; k < ARRAY_LEN (input) ; k++)
- if (ABS (input [k] - output [k]) > 0)
- { printf ("\n\n\tLine %d : index %d %d -> %d\n", __LINE__, k, input [k], output [k]) ;
- exit (1) ;
- } ;
-
- puts ("ok") ;
-
- return ;
-} /* int_to_float_test */
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/misc_test.c
^
|
@@ -1,165 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <samplerate.h>
-
-#include "util.h"
-
-static void name_test (void) ;
-static void error_test (void) ;
-static void src_ratio_test (void) ;
-static void zero_input_test (int converter) ;
-
-int
-main (void)
-{
- puts ("") ;
-
- printf (" version : %s\n\n", src_get_version ()) ;
-
- /* Current max converter is SRC_LINEAR. */
- name_test () ;
-
- error_test () ;
-
- src_ratio_test () ;
-
- zero_input_test (SRC_ZERO_ORDER_HOLD) ;
- zero_input_test (SRC_LINEAR) ;
- zero_input_test (SRC_SINC_FASTEST) ;
-
- puts ("") ;
- return 0 ;
-} /* main */
-
-static void
-name_test (void)
-{ const char *name ;
- int k = 0 ;
-
- puts (" name_test :") ;
-
- while (1)
- { name = src_get_name (k) ;
- if (name == NULL)
- break ;
- printf ("\tName %d : %s\n", k, name) ;
- printf ("\tDesc %d : %s\n", k, src_get_description (k)) ;
- k ++ ;
- } ;
-
- puts ("") ;
-
- return ;
-} /* name_test */
-
-/*------------------------------------------------------------------------------
-*/
-
-typedef struct
-{ double ratio ;
- int should_pass ;
-} RATIO_TEST ;
-
-static RATIO_TEST ratio_test [] =
-{ { 1.0 / 256.1, 0 },
- { 1.0 / 256.0, 1 },
- { 1.0, 1 },
- { 256.0, 1 },
- { 256.1, 0 },
- { -1.0, 0 }
-} ;
-
-static void
-src_ratio_test (void)
-{ int k ;
-
- puts (" src_ratio_test (SRC ratio must be in range [1/256, 256]):" ) ;
-
-
- for (k = 0 ; k < ARRAY_LEN (ratio_test) ; k++)
- { if (ratio_test [k].should_pass && src_is_valid_ratio (ratio_test [k].ratio) == 0)
- { printf ("\n\nLine %d : SRC ratio %f should have passed.\n\n", __LINE__, ratio_test [k].ratio) ;
- exit (1) ;
- } ;
- if (! ratio_test [k].should_pass && src_is_valid_ratio (ratio_test [k].ratio) != 0)
- { printf ("\n\nLine %d : SRC ratio %f should not have passed.\n\n", __LINE__, ratio_test [k].ratio) ;
- exit (1) ;
- } ;
- printf ("\t SRC ratio (%9.5f) : %s ................... ok\n", ratio_test [k].ratio,
- (ratio_test [k].should_pass ? "pass" : "fail")) ;
- } ;
-
- puts ("") ;
-
- return ;
-} /* src_ratio_test */
-
-static void
-error_test (void)
-{ const char *errorstr ;
- int k, errors = 0 ;
-
- puts (" error_test :") ;
-
- for (k = 0 ; 1 ; k++)
- { errorstr = src_strerror (k) ;
- printf ("\t%-2d : %s\n", k, errorstr) ;
- if (errorstr == NULL)
- { errors ++ ;
- continue ;
- } ;
- if (strstr (errorstr, "Placeholder.") == errorstr)
- break ;
- } ;
-
- if (errors != 0)
- { printf ("\n\nLine %d : Missing error numbers above.\n\n", __LINE__) ;
- exit (1) ;
- } ;
-
- puts ("") ;
-
- return ;
-} /* error_test */
-
-static void
-zero_input_test (int converter)
-{ SRC_DATA data ;
- SRC_STATE *state ;
- float out [100] ;
- int error ;
-
- printf (" %s (%-26s) ........ ", __func__, src_get_name (converter)) ;
- fflush (stdout) ;
-
- if ((state = src_new (converter, 1, &error)) == NULL)
- { printf ("\n\nLine %d : src_new failed : %s.\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- data.data_in = (float *) 0xdeadbeef ;
- data.input_frames = 0 ;
- data.data_out = out ;
- data.output_frames = ARRAY_LEN (out) ;
- data.end_of_input = 0 ;
- data.src_ratio = 1.0 ;
-
- if ((error = src_process (state, &data)))
- { printf ("\n\nLine %d : src_new failed : %s.\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- state = src_delete (state) ;
-
- puts ("ok") ;
-} /* zero_input_test */
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/multi_channel_test.c
^
|
@@ -1,364 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include "config.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
-#include <assert.h>
-
-#if (HAVE_FFTW3)
-#include <fftw3.h>
-#else
-static inline void
-fftw_cleanup (void)
-{ return ;
-}
-#endif
-
-#include <samplerate.h>
-
-#include "util.h"
-#define BUFFER_LEN 50000
-#define BLOCK_LEN (12)
-
-#define MAX_CHANNELS 10
-
-static void simple_test (int converter, int channel_count, double target_snr) ;
-static void process_test (int converter, int channel_count, double target_snr) ;
-static void callback_test (int converter, int channel_count, double target_snr) ;
-
-int
-main (void)
-{ double target ;
- int k ;
-
- puts ("\n Zero Order Hold interpolator :") ;
- target = 38.0 ;
- for (k = 1 ; k <= 3 ; k++)
- { simple_test (SRC_ZERO_ORDER_HOLD, k, target) ;
- process_test (SRC_ZERO_ORDER_HOLD, k, target) ;
- callback_test (SRC_ZERO_ORDER_HOLD, k, target) ;
- } ;
-
- puts ("\n Linear interpolator :") ;
- target = 79.0 ;
- for (k = 1 ; k <= 3 ; k++)
- { simple_test (SRC_LINEAR, k, target) ;
- process_test (SRC_LINEAR, k, target) ;
- callback_test (SRC_LINEAR, k, target) ;
- } ;
-
- puts ("\n Sinc interpolator :") ;
- target = 100.0 ;
- for (k = 1 ; k <= MAX_CHANNELS ; k++)
- { simple_test (SRC_SINC_FASTEST, k, target) ;
- process_test (SRC_SINC_FASTEST, k, target) ;
- callback_test (SRC_SINC_FASTEST, k, target) ;
- } ;
-
- fftw_cleanup () ;
- puts ("") ;
-
- return 0 ;
-} /* main */
-
-/*==============================================================================
-*/
-
-static float input_serial [BUFFER_LEN * MAX_CHANNELS] ;
-static float input_interleaved [BUFFER_LEN * MAX_CHANNELS] ;
-static float output_interleaved [BUFFER_LEN * MAX_CHANNELS] ;
-static float output_serial [BUFFER_LEN * MAX_CHANNELS] ;
-
-static void
-simple_test (int converter, int channel_count, double target_snr)
-{ SRC_DATA src_data ;
-
- double freq, snr ;
- int ch, error, frames ;
-
- printf ("\t%-22s (%2d channel%c) ............ ", "simple_test", channel_count, channel_count > 1 ? 's' : ' ') ;
- fflush (stdout) ;
-
- assert (channel_count <= MAX_CHANNELS) ;
-
- memset (input_serial, 0, sizeof (input_serial)) ;
- memset (input_interleaved, 0, sizeof (input_interleaved)) ;
- memset (output_interleaved, 0, sizeof (output_interleaved)) ;
- memset (output_serial, 0, sizeof (output_serial)) ;
-
- frames = BUFFER_LEN ;
-
- /* Calculate channel_count separate windowed sine waves. */
- for (ch = 0 ; ch < channel_count ; ch++)
- { freq = (200.0 + 33.333333333 * ch) / 44100.0 ;
- gen_windowed_sines (1, &freq, 1.0, input_serial + ch * frames, frames) ;
- } ;
-
- /* Interleave the data in preparation for SRC. */
- interleave_data (input_serial, input_interleaved, frames, channel_count) ;
-
- /* Choose a converstion ratio <= 1.0. */
- src_data.src_ratio = 0.95 ;
-
- src_data.data_in = input_interleaved ;
- src_data.input_frames = frames ;
-
- src_data.data_out = output_interleaved ;
- src_data.output_frames = frames ;
-
- if ((error = src_simple (&src_data, converter, channel_count)))
- { printf ("\n\nLine %d : %s\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- if (fabs (src_data.output_frames_gen - src_data.src_ratio * src_data.input_frames) > 2)
- { printf ("\n\nLine %d : bad output data length %ld should be %d.\n", __LINE__,
- src_data.output_frames_gen, (int) floor (src_data.src_ratio * src_data.input_frames)) ;
- printf ("\tsrc_ratio : %.4f\n", src_data.src_ratio) ;
- printf ("\tinput_len : %ld\n", src_data.input_frames) ;
- printf ("\toutput_len : %ld\n\n", src_data.output_frames_gen) ;
- exit (1) ;
- } ;
-
- /* De-interleave data so SNR can be calculated for each channel. */
- deinterleave_data (output_interleaved, output_serial, frames, channel_count) ;
-
- for (ch = 0 ; ch < channel_count ; ch++)
- { snr = calculate_snr (output_serial + ch * frames, frames, 1) ;
- if (snr < target_snr)
- { printf ("\n\nLine %d: channel %d snr %f should be %f\n", __LINE__, ch, snr, target_snr) ;
- save_oct_float ("output.dat", input_serial, channel_count * frames, output_serial, channel_count * frames) ;
- exit (1) ;
- } ;
- } ;
-
- puts ("ok") ;
-
- return ;
-} /* simple_test */
-
-/*==============================================================================
-*/
-
-static void
-process_test (int converter, int channel_count, double target_snr)
-{ SRC_STATE *src_state ;
- SRC_DATA src_data ;
-
- double freq, snr ;
- int ch, error, frames, current_in, current_out ;
-
- printf ("\t%-22s (%2d channel%c) ............ ", "process_test", channel_count, channel_count > 1 ? 's' : ' ') ;
- fflush (stdout) ;
-
- assert (channel_count <= MAX_CHANNELS) ;
-
- memset (input_serial, 0, sizeof (input_serial)) ;
- memset (input_interleaved, 0, sizeof (input_interleaved)) ;
- memset (output_interleaved, 0, sizeof (output_interleaved)) ;
- memset (output_serial, 0, sizeof (output_serial)) ;
-
- frames = BUFFER_LEN ;
-
- /* Calculate channel_count separate windowed sine waves. */
- for (ch = 0 ; ch < channel_count ; ch++)
- { freq = (400.0 + 11.333333333 * ch) / 44100.0 ;
- gen_windowed_sines (1, &freq, 1.0, input_serial + ch * frames, frames) ;
- } ;
-
- /* Interleave the data in preparation for SRC. */
- interleave_data (input_serial, input_interleaved, frames, channel_count) ;
-
- /* Perform sample rate conversion. */
- if ((src_state = src_new (converter, channel_count, &error)) == NULL)
- { printf ("\n\nLine %d : src_new() failed : %s\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- src_data.end_of_input = 0 ; /* Set this later. */
-
- /* Choose a converstion ratio < 1.0. */
- src_data.src_ratio = 0.95 ;
-
- src_data.data_in = input_interleaved ;
- src_data.data_out = output_interleaved ;
-
- current_in = current_out = 0 ;
-
- while (1)
- { src_data.input_frames = MAX (MIN (BLOCK_LEN, frames - current_in), 0) ;
- src_data.output_frames = MAX (MIN (BLOCK_LEN, frames - current_out), 0) ;
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/multichan_throughput_test.c
^
|
@@ -1,206 +0,0 @@
-/*
-** Copyright (c) 2008-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include <unistd.h>
-
-#include <samplerate.h>
-
-#include "config.h"
-
-#include "util.h"
-#include "float_cast.h"
-
-#define BUFFER_LEN (1<<17)
-
-static float input [BUFFER_LEN] ;
-static float output [BUFFER_LEN] ;
-
-static long
-throughput_test (int converter, int channels, long best_throughput)
-{ SRC_DATA src_data ;
- clock_t start_time, clock_time ;
- double duration ;
- long total_frames = 0, throughput ;
- int error ;
-
- printf (" %-30s %2d ", src_get_name (converter), channels) ;
- fflush (stdout) ;
-
- src_data.data_in = input ;
- src_data.input_frames = ARRAY_LEN (input) / channels ;
-
- src_data.data_out = output ;
- src_data.output_frames = ARRAY_LEN (output) / channels ;
-
- src_data.src_ratio = 0.99 ;
-
- sleep (2) ;
-
- start_time = clock () ;
-
- do
- {
- if ((error = src_simple (&src_data, converter, channels)) != 0)
- { puts (src_strerror (error)) ;
- exit (1) ;
- } ;
-
- total_frames += src_data.output_frames_gen ;
-
- clock_time = clock () - start_time ;
- duration = (1.0 * clock_time) / CLOCKS_PER_SEC ;
- }
- while (duration < 5.0) ;
-
- if (src_data.input_frames_used != src_data.input_frames)
- { printf ("\n\nLine %d : input frames used %ld should be %ld\n", __LINE__, src_data.input_frames_used, src_data.input_frames) ;
- exit (1) ;
- } ;
-
- if (fabs (src_data.src_ratio * src_data.input_frames_used - src_data.output_frames_gen) > 2)
- { printf ("\n\nLine %d : input / output length mismatch.\n\n", __LINE__) ;
- printf (" input len : %d\n", ARRAY_LEN (input) / channels) ;
- printf (" output len : %ld (should be %g +/- 2)\n\n", src_data.output_frames_gen,
- floor (0.5 + src_data.src_ratio * src_data.input_frames_used)) ;
- exit (1) ;
- } ;
-
- throughput = lrint (floor (total_frames / duration)) ;
-
- if (best_throughput == 0)
- { best_throughput = MAX (throughput, best_throughput) ;
- printf ("%5.2f %10ld\n", duration, throughput) ;
- }
- else
- { best_throughput = MAX (throughput, best_throughput) ;
- printf ("%5.2f %10ld %10ld\n", duration, throughput, best_throughput) ;
- }
-
- return best_throughput ;
-} /* throughput_test */
-
-static void
-single_run (void)
-{ const int max_channels = 10 ;
- int k ;
-
- printf ("\n CPU name : %s\n", get_cpu_name ()) ;
-
- puts (
- "\n"
- " Converter Channels Duration Throughput\n"
- " ---------------------------------------------------------------------"
- ) ;
-
- for (k = 1 ; k <= max_channels / 2 ; k++)
- throughput_test (SRC_SINC_FASTEST, k, 0) ;
-
- puts ("") ;
- for (k = 1 ; k <= max_channels / 2 ; k++)
- throughput_test (SRC_SINC_MEDIUM_QUALITY, k, 0) ;
-
- puts ("") ;
- for (k = 1 ; k <= max_channels ; k++)
- throughput_test (SRC_SINC_BEST_QUALITY, k, 0) ;
-
- puts ("") ;
- return ;
-} /* single_run */
-
-static void
-multi_run (int run_count)
-{ int k, ch ;
-
- printf ("\n CPU name : %s\n", get_cpu_name ()) ;
-
- puts (
- "\n"
- " Converter Channels Duration Throughput Best Throughput\n"
- " ----------------------------------------------------------------------------------------"
- ) ;
-
- for (ch = 1 ; ch <= 5 ; ch++)
- { long sinc_fastest = 0, sinc_medium = 0, sinc_best = 0 ;
-
- for (k = 0 ; k < run_count ; k++)
- { sinc_fastest = throughput_test (SRC_SINC_FASTEST, ch, sinc_fastest) ;
- sinc_medium = throughput_test (SRC_SINC_MEDIUM_QUALITY, ch, sinc_medium) ;
- sinc_best = throughput_test (SRC_SINC_BEST_QUALITY, ch, sinc_best) ;
-
- puts ("") ;
-
- /* Let the CPU cool down. We might be running on a laptop. */
- sleep (10) ;
- } ;
-
- puts (
- "\n"
- " Converter Best Throughput\n"
- " ------------------------------------------------"
- ) ;
-
- printf (" %-30s %10ld\n", src_get_name (SRC_SINC_FASTEST), sinc_fastest) ;
- printf (" %-30s %10ld\n", src_get_name (SRC_SINC_MEDIUM_QUALITY), sinc_medium) ;
- printf (" %-30s %10ld\n", src_get_name (SRC_SINC_BEST_QUALITY), sinc_best) ;
- } ;
-
- puts ("") ;
-} /* multi_run */
-
-static void
-usage_exit (const char * argv0)
-{ const char * cptr ;
-
- if ((cptr = strrchr (argv0, '/')) != NULL)
- argv0 = cptr ;
-
- printf (
- "Usage :\n"
- " %s - Single run of the throughput test.\n"
- " %s --best-of N - Do N runs of test a print bext result.\n"
- "\n",
- argv0, argv0) ;
-
- exit (0) ;
-} /* usage_exit */
-
-int
-main (int argc, char ** argv)
-{ double freq ;
-
- memset (input, 0, sizeof (input)) ;
- freq = 0.01 ;
- gen_windowed_sines (1, &freq, 1.0, input, BUFFER_LEN) ;
-
- if (argc == 1)
- single_run () ;
- else if (argc == 3 && strcmp (argv [1], "--best-of") == 0)
- { int run_count = atoi (argv [2]) ;
-
- if (run_count < 1 || run_count > 20)
- { printf ("Please be sensible. Run count should be in range (1, 10].\n") ;
- exit (1) ;
- } ;
-
- multi_run (run_count) ;
- }
- else
- usage_exit (argv [0]) ;
-
- puts (
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/reset_test.c
^
|
@@ -1,228 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-
-#include <samplerate.h>
-
-#include "util.h"
-
-#define BUFFER_LEN 2048
-#define CB_READ_LEN 256
-
-static void process_reset_test (int converter) ;
-static void callback_reset_test (int converter) ;
-
-static float data_one [BUFFER_LEN] ;
-static float data_zero [BUFFER_LEN] ;
-
-int
-main (void)
-{
- puts ("") ;
-
- process_reset_test (SRC_ZERO_ORDER_HOLD) ;
- process_reset_test (SRC_LINEAR) ;
- process_reset_test (SRC_SINC_FASTEST) ;
-
- callback_reset_test (SRC_ZERO_ORDER_HOLD) ;
- callback_reset_test (SRC_LINEAR) ;
- callback_reset_test (SRC_SINC_FASTEST) ;
-
- puts ("") ;
-
- return 0 ;
-} /* main */
-
-static void
-process_reset_test (int converter)
-{ static float output [BUFFER_LEN] ;
-
- SRC_STATE *src_state ;
- SRC_DATA src_data ;
- int k, error ;
-
- printf ("\tprocess_reset_test (%-28s) ....... ", src_get_name (converter)) ;
- fflush (stdout) ;
-
- for (k = 0 ; k < BUFFER_LEN ; k++)
- { data_one [k] = 1.0 ;
- data_zero [k] = 0.0 ;
- } ;
-
- /* Get a converter. */
- if ((src_state = src_new (converter, 1, &error)) == NULL)
- { printf ("\n\nLine %d : src_new() failed : %s.\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- /* Process a bunch of 1.0 valued samples. */
- src_data.data_in = data_one ;
- src_data.data_out = output ;
- src_data.input_frames = BUFFER_LEN ;
- src_data.output_frames = BUFFER_LEN ;
- src_data.src_ratio = 0.9 ;
- src_data.end_of_input = 1 ;
-
- if ((error = src_process (src_state, &src_data)) != 0)
- { printf ("\n\nLine %d : src_simple () returned error : %s\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- /* Reset the state of the converter.*/
- src_reset (src_state) ;
-
- /* Now process some zero data. */
- src_data.data_in = data_zero ;
- src_data.data_out = output ;
- src_data.input_frames = BUFFER_LEN ;
- src_data.output_frames = BUFFER_LEN ;
- src_data.src_ratio = 0.9 ;
- src_data.end_of_input = 1 ;
-
- if ((error = src_process (src_state, &src_data)) != 0)
- { printf ("\n\nLine %d : src_simple () returned error : %s\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- /* Finally make sure that the output data is zero ie reset was sucessful. */
- for (k = 0 ; k < BUFFER_LEN / 2 ; k++)
- if (output [k] != 0.0)
- { printf ("\n\nLine %d : output [%d] should be 0.0, is %f.\n", __LINE__, k, output [k]) ;
- exit (1) ;
- } ;
-
- /* Make sure that this function has been exported. */
- src_set_ratio (src_state, 1.0) ;
-
- /* Delete converter. */
- src_state = src_delete (src_state) ;
-
- puts ("ok") ;
-} /* process_reset_test */
-
-/*==============================================================================
-*/
-
-typedef struct
-{ int channels ;
- long count, total ;
- float *data ;
-} TEST_CB_DATA ;
-
-static long
-test_callback_func (void *cb_data, float **data)
-{ TEST_CB_DATA *pcb_data ;
-
- long frames ;
-
- if ((pcb_data = cb_data) == NULL)
- return 0 ;
-
- if (data == NULL)
- return 0 ;
-
- if (pcb_data->total - pcb_data->count > 0)
- frames = pcb_data->total - pcb_data->count ;
- else
- frames = 0 ;
-
- *data = pcb_data->data + pcb_data->count ;
- pcb_data->count += frames ;
-
- return frames ;
-} /* test_callback_func */
-
-static void
-callback_reset_test (int converter)
-{ static TEST_CB_DATA test_callback_data ;
-
- static float output [BUFFER_LEN] ;
-
- SRC_STATE *src_state ;
-
- double src_ratio = 1.1 ;
- long read_count, read_total ;
- int k, error ;
-
- printf ("\tcallback_reset_test (%-28s) ....... ", src_get_name (converter)) ;
- fflush (stdout) ;
-
- for (k = 0 ; k < ARRAY_LEN (data_one) ; k++)
- { data_one [k] = 1.0 ;
- data_zero [k] = 0.0 ;
- } ;
-
- if ((src_state = src_callback_new (test_callback_func, converter, 1, &error, &test_callback_data)) == NULL)
- { printf ("\n\nLine %d : %s\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- /* Process a bunch of 1.0 valued samples. */
- test_callback_data.channels = 1 ;
- test_callback_data.count = 0 ;
- test_callback_data.total = ARRAY_LEN (data_one) ;
- test_callback_data.data = data_one ;
-
- read_total = 0 ;
- do
- { read_count = (ARRAY_LEN (output) - read_total > CB_READ_LEN) ? CB_READ_LEN : ARRAY_LEN (output) - read_total ;
- read_count = src_callback_read (src_state, src_ratio, read_count, output + read_total) ;
- read_total += read_count ;
- }
- while (read_count > 0) ;
-
- /* Check for errors. */
- if ((error = src_error (src_state)) != 0)
- { printf ("\n\nLine %d : %s\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- /* Reset the state of the converter.*/
- src_reset (src_state) ;
-
- /* Process a bunch of 0.0 valued samples. */
- test_callback_data.channels = 1 ;
- test_callback_data.count = 0 ;
- test_callback_data.total = ARRAY_LEN (data_zero) ;
- test_callback_data.data = data_zero ;
-
- /* Now process some zero data. */
- read_total = 0 ;
- do
- { read_count = (ARRAY_LEN (output) - read_total > CB_READ_LEN) ? CB_READ_LEN : ARRAY_LEN (output) - read_total ;
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/simple_test.c
^
|
@@ -1,107 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
-
-#include <samplerate.h>
-
-#include "util.h"
-
-#define BUFFER_LEN 2048
-
-static void simple_test (int converter, double ratio) ;
-
-int
-main (void)
-{ static double src_ratios [] =
- { 1.0001, 0.099, 0.1, 0.33333333, 0.789, 1.9, 3.1, 9.9
- } ;
-
- int k ;
-
- puts ("") ;
-
- puts (" Zero Order Hold interpolator :") ;
- for (k = 0 ; k < ARRAY_LEN (src_ratios) ; k++)
- simple_test (SRC_ZERO_ORDER_HOLD, src_ratios [k]) ;
-
- puts (" Linear interpolator :") ;
- for (k = 0 ; k < ARRAY_LEN (src_ratios) ; k++)
- simple_test (SRC_LINEAR, src_ratios [k]) ;
-
- puts (" Sinc interpolator :") ;
- for (k = 0 ; k < ARRAY_LEN (src_ratios) ; k++)
- simple_test (SRC_SINC_FASTEST, src_ratios [k]) ;
-
- puts ("") ;
-
- return 0 ;
-} /* main */
-
-static void
-simple_test (int converter, double src_ratio)
-{ static float input [BUFFER_LEN], output [BUFFER_LEN] ;
-
- SRC_DATA src_data ;
-
- int input_len, output_len, error, terminate ;
-
- printf ("\tsimple_test (SRC ratio = %6.4f) ........... ", src_ratio) ;
- fflush (stdout) ;
-
- /* Calculate maximun input and output lengths. */
- if (src_ratio >= 1.0)
- { output_len = BUFFER_LEN ;
- input_len = (int) floor (BUFFER_LEN / src_ratio) ;
- }
- else
- { input_len = BUFFER_LEN ;
- output_len = (int) floor (BUFFER_LEN * src_ratio) ;
- } ;
-
- /* Reduce input_len by 10 so output is longer than necessary. */
- input_len -= 10 ;
-
- if (output_len > BUFFER_LEN)
- { printf ("\n\nLine %d : output_len > BUFFER_LEN\n\n", __LINE__) ;
- exit (1) ;
- } ;
-
- memset (&src_data, 0, sizeof (src_data)) ;
-
- src_data.data_in = input ;
- src_data.input_frames = input_len ;
-
- src_data.src_ratio = src_ratio ;
-
- src_data.data_out = output ;
- src_data.output_frames = BUFFER_LEN ;
-
- if ((error = src_simple (&src_data, converter, 1)))
- { printf ("\n\nLine %d : %s\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- terminate = (int) ceil ((src_ratio >= 1.0) ? src_ratio : 1.0 / src_ratio) ;
-
- if (fabs (src_data.output_frames_gen - src_ratio * input_len) > 2 * terminate)
- { printf ("\n\nLine %d : bad output data length %ld should be %d.\n", __LINE__,
- src_data.output_frames_gen, (int) floor (src_ratio * input_len)) ;
- printf ("\tsrc_ratio : %.4f\n", src_ratio) ;
- printf ("\tinput_len : %d\n\toutput_len : %d\n\n", input_len, output_len) ;
- exit (1) ;
- } ;
-
- puts ("ok") ;
-
- return ;
-} /* simple_test */
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/snr_bw_test.c
^
|
@@ -1,395 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include "config.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
-#include <time.h>
-
-#if (HAVE_FFTW3)
-
-#include <fftw3.h>
-
-#include <samplerate.h>
-
-#include "util.h"
-
-#define BUFFER_LEN 50000
-#define MAX_FREQS 4
-#define MAX_RATIOS 6
-#define MAX_SPEC_LEN (1<<15)
-
-#ifndef M_PI
-#define M_PI 3.14159265358979323846264338
-#endif
-
-enum
-{ BOOLEAN_FALSE = 0,
- BOOLEAN_TRUE = 1
-} ;
-
-typedef struct
-{ int freq_count ;
- double freqs [MAX_FREQS] ;
-
- double src_ratio ;
- int pass_band_peaks ;
-
- double snr ;
- double peak_value ;
-} SINGLE_TEST ;
-
-typedef struct
-{ int converter ;
- int tests ;
- int do_bandwidth_test ;
- SINGLE_TEST test_data [10] ;
-} CONVERTER_TEST ;
-
-static double snr_test (SINGLE_TEST *snr_test_data, int number, int converter, int verbose) ;
-static double find_peak (float *output, int output_len) ;
-static double bandwidth_test (int converter, int verbose) ;
-
-int
-main (int argc, char *argv [])
-{ CONVERTER_TEST snr_test_data [] =
- {
- { SRC_ZERO_ORDER_HOLD,
- 8,
- BOOLEAN_FALSE,
- { { 1, { 0.01111111111 }, 3.0, 1, 28.0, 1.0 },
- { 1, { 0.01111111111 }, 0.6, 1, 36.0, 1.0 },
- { 1, { 0.01111111111 }, 0.3, 1, 36.0, 1.0 },
- { 1, { 0.01111111111 }, 1.0, 1, 150.0, 1.0 },
- { 1, { 0.01111111111 }, 1.001, 1, 38.0, 1.0 },
- { 2, { 0.011111, 0.324 }, 1.9999, 2, 14.0, 1.0 },
- { 2, { 0.012345, 0.457 }, 0.456789, 1, 12.0, 1.0 },
- { 1, { 0.3511111111 }, 1.33, 1, 10.0, 1.0 }
- }
- },
-
- { SRC_LINEAR,
- 8,
- BOOLEAN_FALSE,
- { { 1, { 0.01111111111 }, 3.0, 1, 73.0, 1.0 },
- { 1, { 0.01111111111 }, 0.6, 1, 73.0, 1.0 },
- { 1, { 0.01111111111 }, 0.3, 1, 73.0, 1.0 },
- { 1, { 0.01111111111 }, 1.0, 1, 150.0, 1.0 },
- { 1, { 0.01111111111 }, 1.001, 1, 77.0, 1.0 },
- { 2, { 0.011111, 0.324 }, 1.9999, 2, 15.0, 0.94 },
- { 2, { 0.012345, 0.457 }, 0.456789, 1, 25.0, 0.96 },
- { 1, { 0.3511111111 }, 1.33, 1, 22.0, 0.99 }
- }
- },
-
- { SRC_SINC_FASTEST,
- 9,
- BOOLEAN_TRUE,
- { { 1, { 0.01111111111 }, 3.0, 1, 100.0, 1.0 },
- { 1, { 0.01111111111 }, 0.6, 1, 99.0, 1.0 },
- { 1, { 0.01111111111 }, 0.3, 1, 100.0, 1.0 },
- { 1, { 0.01111111111 }, 1.0, 1, 150.0, 1.0 },
- { 1, { 0.01111111111 }, 1.001, 1, 100.0, 1.0 },
- { 2, { 0.011111, 0.324 }, 1.9999, 2, 97.0, 1.0 },
- { 2, { 0.012345, 0.457 }, 0.456789, 1, 100.0, 0.5 },
- { 2, { 0.011111, 0.45 }, 0.6, 1, 97.0, 0.5 },
- { 1, { 0.3511111111 }, 1.33, 1, 97.0, 1.0 }
- }
- },
-
- { SRC_SINC_MEDIUM_QUALITY,
- 9,
- BOOLEAN_TRUE,
- { { 1, { 0.01111111111 }, 3.0, 1, 145.0, 1.0 },
- { 1, { 0.01111111111 }, 0.6, 1, 132.0, 1.0 },
- { 1, { 0.01111111111 }, 0.3, 1, 138.0, 1.0 },
- { 1, { 0.01111111111 }, 1.0, 1, 157.0, 1.0 },
- { 1, { 0.01111111111 }, 1.001, 1, 148.0, 1.0 },
- { 2, { 0.011111, 0.324 }, 1.9999, 2, 127.0, 1.0 },
- { 2, { 0.012345, 0.457 }, 0.456789, 1, 123.0, 0.5 },
- { 2, { 0.011111, 0.45 }, 0.6, 1, 126.0, 0.5 },
- { 1, { 0.43111111111 }, 1.33, 1, 121.0, 1.0 }
- }
- },
-
- { SRC_SINC_BEST_QUALITY,
- 9,
- BOOLEAN_TRUE,
- { { 1, { 0.01111111111 }, 3.0, 1, 147.0, 1.0 },
- { 1, { 0.01111111111 }, 0.6, 1, 147.0, 1.0 },
- { 1, { 0.01111111111 }, 0.3, 1, 148.0, 1.0 },
- { 1, { 0.01111111111 }, 1.0, 1, 155.0, 1.0 },
- { 1, { 0.01111111111 }, 1.001, 1, 148.0, 1.0 },
- { 2, { 0.011111, 0.324 }, 1.9999, 2, 146.0, 1.0 },
- { 2, { 0.012345, 0.457 }, 0.456789, 1, 147.0, 0.5 },
- { 2, { 0.011111, 0.45 }, 0.6, 1, 144.0, 0.5 },
- { 1, { 0.43111111111 }, 1.33, 1, 145.0, 1.0 }
- }
- },
- } ; /* snr_test_data */
-
- double best_snr, snr, freq3dB ;
- int j, k, converter, verbose = 0 ;
-
- if (argc == 2 && strcmp (argv [1], "--verbose") == 0)
- verbose = 1 ;
-
- puts ("") ;
-
- for (j = 0 ; j < ARRAY_LEN (snr_test_data) ; j++)
- { best_snr = 5000.0 ;
-
- converter = snr_test_data [j].converter ;
-
- printf (" Converter %d : %s\n", converter, src_get_name (converter)) ;
- printf (" %s\n", src_get_description (converter)) ;
-
- for (k = 0 ; k < snr_test_data [j].tests ; k++)
- { snr = snr_test (&(snr_test_data [j].test_data [k]), k, converter, verbose) ;
- if (best_snr > snr)
- best_snr = snr ;
- } ;
-
- printf (" Worst case Signal-to-Noise Ratio : %.2f dB.\n", best_snr) ;
-
- if (snr_test_data [j].do_bandwidth_test == BOOLEAN_FALSE)
- { puts (" Bandwith test not performed on this converter.\n") ;
- continue ;
- }
-
- freq3dB = bandwidth_test (converter, verbose) ;
-
- printf (" Measured -3dB rolloff point : %5.2f %%.\n\n", freq3dB) ;
- } ;
-
- fftw_cleanup () ;
-
- return 0 ;
-} /* main */
-
-/*==============================================================================
-*/
-
-static double
-snr_test (SINGLE_TEST *test_data, int number, int converter, int verbose)
-{ static float data [BUFFER_LEN + 1] ;
- static float output [MAX_SPEC_LEN] ;
-
- SRC_STATE *src_state ;
- SRC_DATA src_data ;
-
- double output_peak, snr ;
- int k, output_len, input_len, error ;
-
- if (verbose != 0)
- { printf ("\tSignal-to-Noise Ratio Test %d.\n"
- "\t=====================================\n", number) ;
- printf ("\tFrequencies : [ ") ;
- for (k = 0 ; k < test_data->freq_count ; k++)
- printf ("%6.4f ", test_data->freqs [k]) ;
-
- printf ("]\n\tSRC Ratio : %8.4f\n", test_data->src_ratio) ;
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/src-evaluate.c
^
|
@@ -1,519 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-#include <ctype.h>
-
-#include "config.h"
-
-#if (HAVE_FFTW3 && HAVE_SNDFILE && HAVE_SYS_TIMES_H)
-
-#include <time.h>
-#include <sys/times.h>
-
-#include <sndfile.h>
-#include <math.h>
-#include <sys/utsname.h>
-
-#include "util.h"
-
-#define MAX_FREQS 4
-#define BUFFER_LEN 80000
-
-#define SAFE_STRNCAT(dest,src,len) \
- { int safe_strncat_count ; \
- safe_strncat_count = (len) - strlen (dest) - 1 ; \
- strncat ((dest), (src), safe_strncat_count) ; \
- (dest) [(len) - 1] = 0 ; \
- } ;
-
-typedef struct
-{ int freq_count ;
- double freqs [MAX_FREQS] ;
-
- int output_samplerate ;
- int pass_band_peaks ;
-
- double peak_value ;
-} SNR_TEST ;
-
-typedef struct
-{ const char *progname ;
- const char *version_cmd ;
- const char *version_start ;
- const char *convert_cmd ;
- int format ;
-} RESAMPLE_PROG ;
-
-static char *get_progname (char *) ;
-static void usage_exit (const char *, const RESAMPLE_PROG *prog, int count) ;
-static void measure_program (const RESAMPLE_PROG *prog, int verbose) ;
-static void generate_source_wav (const char *filename, const double *freqs, int freq_count, int format) ;
-static const char* get_machine_details (void) ;
-
-static char version_string [512] ;
-
-int
-main (int argc, char *argv [])
-{ static RESAMPLE_PROG resample_progs [] =
- { { "sndfile-resample",
- "examples/sndfile-resample --version",
- "libsamplerate",
- "examples/sndfile-resample --max-speed -c 0 -to %d source.wav destination.wav",
- SF_FORMAT_WAV | SF_FORMAT_PCM_32
- },
- { "sox",
- "sox -h 2>&1",
- "sox",
- "sox source.wav -r %d destination.wav resample 0.835",
- SF_FORMAT_WAV | SF_FORMAT_PCM_32
- },
- { "ResampAudio",
- "ResampAudio --version",
- "ResampAudio",
- "ResampAudio -f cutoff=0.41,atten=100,ratio=128 -s %d source.wav destination.wav",
- SF_FORMAT_WAV | SF_FORMAT_PCM_32
- },
-
- /*-
- { /+*
- ** The Shibatch converter doesn't work for all combinations of
- ** source and destination sample rates. Therefore it can't be
- ** included in this test.
- *+/
- "shibatch",
- "ssrc",
- "Shibatch",
- "ssrc --rate %d source.wav destination.wav",
- SF_FORMAT_WAV | SF_FORMAT_PCM_32
- },-*/
-
- /*-
- { /+*
- ** The resample program is not able to match the bandwidth and SNR
- ** specs or sndfile-resample and hence will not be tested.
- *+/
- "resample",
- "resample -version",
- "resample",
- "resample -to %d source.wav destination.wav",
- SF_FORMAT_WAV | SF_FORMAT_FLOAT
- },-*/
-
- /*-
- { "mplayer",
- "mplayer -v 2>&1",
- "MPlayer ",
- "mplayer -ao pcm -srate %d source.wav >/dev/null 2>&1 && mv audiodump.wav destination.wav",
- SF_FORMAT_WAV | SF_FORMAT_PCM_32
- },-*/
-
- } ; /* resample_progs */
-
- char *progname ;
- int prog = 0, verbose = 0 ;
-
- progname = get_progname (argv [0]) ;
-
- printf ("\n %s : evaluate a sample rate converter.\n", progname) ;
-
- if (argc == 3 && strcmp ("--verbose", argv [1]) == 0)
- { verbose = 1 ;
- prog = atoi (argv [2]) ;
- }
- else if (argc == 2)
- { verbose = 0 ;
- prog = atoi (argv [1]) ;
- }
- else
- usage_exit (progname, resample_progs, ARRAY_LEN (resample_progs)) ;
-
- if (prog < 0 || prog >= ARRAY_LEN (resample_progs))
- usage_exit (progname, resample_progs, ARRAY_LEN (resample_progs)) ;
-
- measure_program (& (resample_progs [prog]), verbose) ;
-
- puts ("") ;
-
- return 0 ;
-} /* main */
-
-/*==============================================================================
-*/
-
-static char *
-get_progname (char *progname)
-{ char *cptr ;
-
- if ((cptr = strrchr (progname, '/')) != NULL)
- progname = cptr + 1 ;
-
- if ((cptr = strrchr (progname, '\\')) != NULL)
- progname = cptr + 1 ;
-
- return progname ;
-} /* get_progname */
-
-static void
-usage_exit (const char *progname, const RESAMPLE_PROG *prog, int count)
-{ int k ;
-
- printf ("\n Usage : %s <number>\n\n", progname) ;
-
- puts (" where <number> specifies the program to test:\n") ;
-
- for (k = 0 ; k < count ; k++)
- printf (" %d : %s\n", k, prog [k].progname) ;
-
- puts ("\n"
- " Obviously to test a given program you have to have it available on\n"
- " your system. See http://www.mega-nerd.com/SRC/quality.html for\n"
- " the download location of these programs.\n") ;
-
- exit (1) ;
-} /* usage_exit */
-
-static const char*
-get_machine_details (void)
-{ static char namestr [256] ;
-
- struct utsname name ;
-
- if (uname (&name) != 0)
- { snprintf (namestr, sizeof (namestr), "Unknown") ;
- return namestr ;
- } ;
-
- snprintf (namestr, sizeof (namestr), "%s (%s %s %s)", name.nodename,
- name.machine, name.sysname, name.release) ;
-
- return namestr ;
-} /* get_machine_details */
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/termination_test.c
^
|
@@ -1,329 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h>
-
-#include <samplerate.h>
-
-#include "util.h"
-
-#define SHORT_BUFFER_LEN 2048
-#define LONG_BUFFER_LEN ((1 << 16) - 20)
-
-static void simple_test (int converter) ;
-static void stream_test (int converter, double ratio) ;
-static void init_term_test (int converter, double ratio) ;
-
-static int next_block_length (int reset) ;
-
-int
-main (void)
-{ static double src_ratios [] =
- { 0.999900, 1.000100, 0.789012, 1.200000, 0.333333, 3.100000,
- 0.125000, 8.000000, 0.099900, 9.990000, 0.100000, 10.00000
- } ;
-
- int k ;
-
- puts ("\n Zero Order Hold interpolator:") ;
-
- for (k = 0 ; k < ARRAY_LEN (src_ratios) ; k++)
- init_term_test (SRC_ZERO_ORDER_HOLD, src_ratios [k]) ;
- puts ("") ;
- for (k = 0 ; k < ARRAY_LEN (src_ratios) ; k++)
- stream_test (SRC_ZERO_ORDER_HOLD, src_ratios [k]) ;
-
-
- puts ("\n Linear interpolator:") ;
- for (k = 0 ; k < ARRAY_LEN (src_ratios) ; k++)
- init_term_test (SRC_LINEAR, src_ratios [k]) ;
- puts ("") ;
- for (k = 0 ; k < ARRAY_LEN (src_ratios) ; k++)
- stream_test (SRC_LINEAR, src_ratios [k]) ;
-
-
- puts ("\n Sinc interpolator:") ;
- for (k = 0 ; k < ARRAY_LEN (src_ratios) ; k++)
- init_term_test (SRC_SINC_FASTEST, src_ratios [k]) ;
- puts ("") ;
- for (k = 0 ; k < ARRAY_LEN (src_ratios) ; k++)
- stream_test (SRC_SINC_FASTEST, src_ratios [k]) ;
-
- puts ("") ;
-
- simple_test (SRC_SINC_FASTEST) ;
-
- return 0 ;
-} /* main */
-
-static void
-simple_test (int converter)
-{
- int ilen = 199030, olen = 1000, error ;
-
- {
- float in [ilen] ;
- float out [olen] ;
- double ratio = (1.0 * olen) / ilen ;
- SRC_DATA src_data =
- { in, out,
- ilen, olen,
- 0, 0, 0,
- ratio
- } ;
-
- error = src_simple (&src_data, converter, 1) ;
- if (error)
- { printf ("\n\nLine %d : %s\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
- } ;
-
- return ;
-} /* simple_test */
-
-static void
-init_term_test (int converter, double src_ratio)
-{ static float input [SHORT_BUFFER_LEN], output [SHORT_BUFFER_LEN] ;
-
- SRC_DATA src_data ;
-
- int k, input_len, output_len, error, terminate ;
-
- printf ("\tinit_term_test (SRC ratio = %7.4f) .......... ", src_ratio) ;
- fflush (stdout) ;
-
- /* Calculate maximun input and output lengths. */
- if (src_ratio >= 1.0)
- { output_len = SHORT_BUFFER_LEN ;
- input_len = (int) floor (SHORT_BUFFER_LEN / src_ratio) ;
- }
- else
- { input_len = SHORT_BUFFER_LEN ;
- output_len = (int) floor (SHORT_BUFFER_LEN * src_ratio) ;
- } ;
-
- /* Reduce input_len by 10 so output is longer than necessary. */
- input_len -= 10 ;
-
- for (k = 0 ; k < ARRAY_LEN (input) ; k++)
- input [k] = 1.0 ;
-
- if (output_len > SHORT_BUFFER_LEN)
- { printf ("\n\nLine %d : output_len > SHORT_BUFFER_LEN\n\n", __LINE__) ;
- exit (1) ;
- } ;
-
- src_data.data_in = input ;
- src_data.input_frames = input_len ;
-
- src_data.src_ratio = src_ratio ;
-
- src_data.data_out = output ;
- src_data.output_frames = SHORT_BUFFER_LEN ;
-
- if ((error = src_simple (&src_data, converter, 1)))
- { printf ("\n\nLine %d : %s\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- terminate = (int) ceil ((src_ratio >= 1.0) ? 1 : 1.0 / src_ratio) ;
-
- if (fabs (src_ratio * input_len - src_data.output_frames_gen) > terminate)
- { printf ("\n\nLine %d : Bad output frame count.\n\n", __LINE__) ;
- printf ("\tterminate : %d\n", terminate) ;
- printf ("\tsrc_ratio : %.4f\n", src_ratio) ;
- printf ("\tinput_len : %d\n"
- "\tinput_len * src_ratio : %f\n", input_len, input_len * src_ratio) ;
- printf ("\toutput_frames_gen : %ld\n\n", src_data.output_frames_gen) ;
- exit (1) ;
- } ;
-
- if (labs (src_data.input_frames_used - input_len) > 1)
- { printf ("\n\nLine %d : input_frames_used should be %d, is %ld.\n\n",
- __LINE__, input_len, src_data.input_frames_used) ;
- printf ("\tsrc_ratio : %.4f\n", src_ratio) ;
- printf ("\tinput_len : %d\n\tinput_used : %ld\n\n", input_len, src_data.input_frames_used) ;
- exit (1) ;
- } ;
-
- if (fabs (output [0]) < 0.1)
- { printf ("\n\nLine %d : First output sample is bad.\n\n", __LINE__) ;
- printf ("\toutput [0] == %f\n\n", output [0]) ;
- exit (1) ;
- }
-
- puts ("ok") ;
-
- return ;
-} /* init_term_test */
-
-static void
-stream_test (int converter, double src_ratio)
-{ static float input [LONG_BUFFER_LEN], output [LONG_BUFFER_LEN] ;
-
- SRC_STATE *src_state ;
- SRC_DATA src_data ;
-
- int input_len, output_len, current_in, current_out ;
- int k, error, terminate ;
-
- printf ("\tstream_test (SRC ratio = %7.4f) .......... ", src_ratio) ;
- fflush (stdout) ;
-
-/* Erik */
-for (k = 0 ; k < LONG_BUFFER_LEN ; k++) input [k] = k * 1.0 ;
-
- /* Calculate maximun input and output lengths. */
- if (src_ratio >= 1.0)
- { output_len = LONG_BUFFER_LEN ;
- input_len = (int) floor (LONG_BUFFER_LEN / src_ratio) ;
- }
- else
- { input_len = LONG_BUFFER_LEN ;
- output_len = (int) floor (LONG_BUFFER_LEN * src_ratio) ;
- } ;
-
- /* Reduce input_len by 10 so output is longer than necessary. */
- input_len -= 20 ;
-
- if (output_len > LONG_BUFFER_LEN)
- { printf ("\n\nLine %d : output_len > LONG_BUFFER_LEN\n\n", __LINE__) ;
- exit (1) ;
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/throughput_test.c
^
|
@@ -1,202 +0,0 @@
-/*
-** Copyright (c) 2004-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include <unistd.h>
-
-#include <samplerate.h>
-
-#include "config.h"
-
-#include "util.h"
-#include "float_cast.h"
-
-#define BUFFER_LEN (1<<16)
-
-static float input [BUFFER_LEN] ;
-static float output [BUFFER_LEN] ;
-
-static long
-throughput_test (int converter, long best_throughput)
-{ SRC_DATA src_data ;
- clock_t start_time, clock_time ;
- double duration ;
- long total_frames = 0, throughput ;
- int error ;
-
- printf (" %-30s ", src_get_name (converter)) ;
- fflush (stdout) ;
-
- src_data.data_in = input ;
- src_data.input_frames = ARRAY_LEN (input) ;
-
- src_data.data_out = output ;
- src_data.output_frames = ARRAY_LEN (output) ;
-
- src_data.src_ratio = 0.99 ;
-
- sleep (2) ;
-
- start_time = clock () ;
-
- do
- {
- if ((error = src_simple (&src_data, converter, 1)) != 0)
- { puts (src_strerror (error)) ;
- exit (1) ;
- } ;
-
- total_frames += src_data.output_frames_gen ;
-
- clock_time = clock () - start_time ;
- duration = (1.0 * clock_time) / CLOCKS_PER_SEC ;
- }
- while (duration < 3.0) ;
-
- if (src_data.input_frames_used != ARRAY_LEN (input))
- { printf ("\n\nLine %d : input frames used %ld should be %d\n", __LINE__, src_data.input_frames_used, ARRAY_LEN (input)) ;
- exit (1) ;
- } ;
-
- if (fabs (src_data.src_ratio * src_data.input_frames_used - src_data.output_frames_gen) > 2)
- { printf ("\n\nLine %d : input / output length mismatch.\n\n", __LINE__) ;
- printf (" input len : %d\n", ARRAY_LEN (input)) ;
- printf (" output len : %ld (should be %g +/- 2)\n\n", src_data.output_frames_gen,
- floor (0.5 + src_data.src_ratio * src_data.input_frames_used)) ;
- exit (1) ;
- } ;
-
- throughput = lrint (floor (total_frames / duration)) ;
-
- if (best_throughput == 0)
- { best_throughput = MAX (throughput, best_throughput) ;
- printf ("%5.2f %10ld\n", duration, throughput) ;
- }
- else
- { best_throughput = MAX (throughput, best_throughput) ;
- printf ("%5.2f %10ld %10ld\n", duration, throughput, best_throughput) ;
- }
-
-
- return best_throughput ;
-} /* throughput_test */
-
-static void
-single_run (void)
-{
-
- printf ("\n CPU name : %s\n", get_cpu_name ()) ;
-
- puts (
- "\n"
- " Converter Duration Throughput\n"
- " -----------------------------------------------------------"
- ) ;
-
- throughput_test (SRC_ZERO_ORDER_HOLD, 0) ;
- throughput_test (SRC_LINEAR, 0) ;
- throughput_test (SRC_SINC_FASTEST, 0) ;
- throughput_test (SRC_SINC_MEDIUM_QUALITY, 0) ;
- throughput_test (SRC_SINC_BEST_QUALITY, 0) ;
-
- puts ("") ;
- return ;
-} /* single_run */
-
-static void
-multi_run (int run_count)
-{ long zero_order_hold = 0, linear = 0 ;
- long sinc_fastest = 0, sinc_medium = 0, sinc_best = 0 ;
- int k ;
-
- puts (
- "\n"
- " Converter Duration Throughput Best Throughput\n"
- " --------------------------------------------------------------------------------"
- ) ;
-
- for (k = 0 ; k < run_count ; k++)
- { zero_order_hold = throughput_test (SRC_ZERO_ORDER_HOLD, zero_order_hold) ;
- linear = throughput_test (SRC_LINEAR, linear) ;
- sinc_fastest = throughput_test (SRC_SINC_FASTEST, sinc_fastest) ;
- sinc_medium = throughput_test (SRC_SINC_MEDIUM_QUALITY, sinc_medium) ;
- sinc_best = throughput_test (SRC_SINC_BEST_QUALITY, sinc_best) ;
-
- puts ("") ;
-
- /* Let the CPU cool down. We might be running on a laptop. */
- sleep (10) ;
- } ;
-
- printf ("\n CPU name : %s\n", get_cpu_name ()) ;
-
- puts (
- "\n"
- " Converter Best Throughput\n"
- " ------------------------------------------------"
- ) ;
- printf (" %-30s %10ld\n", src_get_name (SRC_ZERO_ORDER_HOLD), zero_order_hold) ;
- printf (" %-30s %10ld\n", src_get_name (SRC_LINEAR), linear) ;
- printf (" %-30s %10ld\n", src_get_name (SRC_SINC_FASTEST), sinc_fastest) ;
- printf (" %-30s %10ld\n", src_get_name (SRC_SINC_MEDIUM_QUALITY), sinc_medium) ;
- printf (" %-30s %10ld\n", src_get_name (SRC_SINC_BEST_QUALITY), sinc_best) ;
-
- puts ("") ;
-} /* multi_run */
-
-static void
-usage_exit (const char * argv0)
-{ const char * cptr ;
-
- if ((cptr = strrchr (argv0, '/')) != NULL)
- argv0 = cptr ;
-
- printf (
- "Usage :\n"
- " %s - Single run of the throughput test.\n"
- " %s --best-of N - Do N runs of test a print bext result.\n"
- "\n",
- argv0, argv0) ;
-
- exit (0) ;
-} /* usage_exit */
-
-int
-main (int argc, char ** argv)
-{ double freq ;
-
- memset (input, 0, sizeof (input)) ;
- freq = 0.01 ;
- gen_windowed_sines (1, &freq, 1.0, input, BUFFER_LEN) ;
-
- if (argc == 1)
- single_run () ;
- else if (argc == 3 && strcmp (argv [1], "--best-of") == 0)
- { int run_count = atoi (argv [2]) ;
-
- if (run_count < 1 || run_count > 20)
- { printf ("Please be sensible. Run count should be in range (1, 10].\n") ;
- exit (1) ;
- } ;
-
- multi_run (run_count) ;
- }
- else
- usage_exit (argv [0]) ;
-
- puts (
- " Duration is in seconds.\n"
- " Throughput is in samples/sec (more is better).\n"
- ) ;
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/util.c
^
|
@@ -1,220 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include <math.h>
-
-#include "util.h"
-
-#ifndef M_PI
-#define M_PI 3.14159265358979323846264338
-#endif
-
-void
-gen_windowed_sines (int freq_count, const double *freqs, double max, float *output, int output_len)
-{ int k, freq ;
- double amplitude, phase ;
-
- amplitude = max / freq_count ;
-
- for (k = 0 ; k < output_len ; k++)
- output [k] = 0.0 ;
-
- for (freq = 0 ; freq < freq_count ; freq++)
- { phase = 0.9 * M_PI / freq_count ;
-
- if (freqs [freq] <= 0.0 || freqs [freq] >= 0.5)
- { printf ("\n%s : Error : freq [%d] == %g is out of range. Should be < 0.5.\n", __FILE__, freq, freqs [freq]) ;
- exit (1) ;
- } ;
-
- for (k = 0 ; k < output_len ; k++)
- output [k] += amplitude * sin (freqs [freq] * (2 * k) * M_PI + phase) ;
- } ;
-
- /* Apply Hanning Window. */
- for (k = 0 ; k < output_len ; k++)
- output [k] *= 0.5 - 0.5 * cos ((2 * k) * M_PI / (output_len - 1)) ;
-
- /* data [k] *= 0.3635819 - 0.4891775 * cos ((2 * k) * M_PI / (output_len - 1))
- + 0.1365995 * cos ((4 * k) * M_PI / (output_len - 1))
- - 0.0106411 * cos ((6 * k) * M_PI / (output_len - 1)) ;
- */
-
- return ;
-} /* gen_windowed_sines */
-
-void
-save_oct_float (char *filename, float *input, int in_len, float *output, int out_len)
-{ FILE *file ;
- int k ;
-
- printf ("Dumping input and output data to file : %s.\n\n", filename) ;
-
- if (! (file = fopen (filename, "w")))
- return ;
-
- fprintf (file, "# Not created by Octave\n") ;
-
- fprintf (file, "# name: input\n") ;
- fprintf (file, "# type: matrix\n") ;
- fprintf (file, "# rows: %d\n", in_len) ;
- fprintf (file, "# columns: 1\n") ;
-
- for (k = 0 ; k < in_len ; k++)
- fprintf (file, "% g\n", input [k]) ;
-
- fprintf (file, "# name: output\n") ;
- fprintf (file, "# type: matrix\n") ;
- fprintf (file, "# rows: %d\n", out_len) ;
- fprintf (file, "# columns: 1\n") ;
-
- for (k = 0 ; k < out_len ; k++)
- fprintf (file, "% g\n", output [k]) ;
-
- fclose (file) ;
- return ;
-} /* save_oct_float */
-
-void
-save_oct_double (char *filename, double *input, int in_len, double *output, int out_len)
-{ FILE *file ;
- int k ;
-
- printf ("Dumping input and output data to file : %s.\n\n", filename) ;
-
- if (! (file = fopen (filename, "w")))
- return ;
-
- fprintf (file, "# Not created by Octave\n") ;
-
- fprintf (file, "# name: input\n") ;
- fprintf (file, "# type: matrix\n") ;
- fprintf (file, "# rows: %d\n", in_len) ;
- fprintf (file, "# columns: 1\n") ;
-
- for (k = 0 ; k < in_len ; k++)
- fprintf (file, "% g\n", input [k]) ;
-
- fprintf (file, "# name: output\n") ;
- fprintf (file, "# type: matrix\n") ;
- fprintf (file, "# rows: %d\n", out_len) ;
- fprintf (file, "# columns: 1\n") ;
-
- for (k = 0 ; k < out_len ; k++)
- fprintf (file, "% g\n", output [k]) ;
-
- fclose (file) ;
- return ;
-} /* save_oct_double */
-
-void
-interleave_data (const float *in, float *out, int frames, int channels)
-{ int fr, ch ;
-
- for (fr = 0 ; fr < frames ; fr++)
- for (ch = 0 ; ch < channels ; ch++)
- out [ch + channels * fr] = in [fr + frames * ch] ;
-
- return ;
-} /* interleave_data */
-
-void
-deinterleave_data (const float *in, float *out, int frames, int channels)
-{ int fr, ch ;
-
- for (ch = 0 ; ch < channels ; ch++)
- for (fr = 0 ; fr < frames ; fr++)
- out [fr + frames * ch] = in [ch + channels * fr] ;
-
- return ;
-} /* deinterleave_data */
-
-void
-reverse_data (float *data, int datalen)
-{ int left, right ;
- float temp ;
-
- left = 0 ;
- right = datalen - 1 ;
-
- while (left < right)
- { temp = data [left] ;
- data [left] = data [right] ;
- data [right] = temp ;
- left ++ ;
- right -- ;
- } ;
-
-} /* reverse_data */
-
-const char *
-get_cpu_name (void)
-{
- const char *name = "Unknown", *search = NULL ;
- static char buffer [512] ;
- FILE * file = NULL ;
- int is_pipe = 0 ;
-
-#if defined (__linux__)
- file = fopen ("/proc/cpuinfo", "r") ;
- search = "model name" ;
-#elif defined (__APPLE__)
- file = popen ("/usr/sbin/system_profiler -detailLevel full SPHardwareDataType", "r") ;
- search = "Processor Name" ;
- is_pipe = 1 ;
-#elif defined (__FreeBSD__)
- file = popen ("sysctl -a", "r") ;
- search = "hw.model" ;
- is_pipe = 1 ;
-#else
- file = NULL ;
-#endif
-
- if (file == NULL)
- return name ;
-
- if (search == NULL)
- { printf ("Error : search is NULL in function %s.\n", __func__) ;
- return name ;
- } ;
-
- while (fgets (buffer, sizeof (buffer), file) != NULL)
- if (strstr (buffer, search))
- { char *src, *dest ;
-
- if ((src = strchr (buffer, ':')) != NULL)
- { src ++ ;
- while (isspace (src [0]))
- src ++ ;
- name = src ;
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/util.h
^
|
@@ -1,40 +0,0 @@
-/*
-** Copyright (c) 2002-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#define ABS(a) (((a) < 0) ? - (a) : (a))
-#define MIN(a,b) (((a) < (b)) ? (a) : (b))
-#define MAX(a,b) (((a) >= (b)) ? (a) : (b))
-
-#define ARRAY_LEN(x) ((int) (sizeof (x) / sizeof ((x) [0])))
-
-void gen_windowed_sines (int freq_count, const double *freqs, double max, float *output, int output_len) ;
-
-void save_oct_float (char *filename, float *input, int in_len, float *output, int out_len) ;
-void save_oct_double (char *filename, double *input, int in_len, double *output, int out_len) ;
-
-void interleave_data (const float *in, float *out, int frames, int channels) ;
-
-void deinterleave_data (const float *in, float *out, int frames, int channels) ;
-
-void reverse_data (float *data, int datalen) ;
-
-double calculate_snr (float *data, int len, int expected_peaks) ;
-
-const char * get_cpu_name (void) ;
-
-#if OS_IS_WIN32
-/*
-** Extra Win32 hacks.
-**
-** Despite Microsoft claim of windows being POSIX compatibile it has '_sleep'
-** instead of 'sleep'.
-*/
-
-#define sleep _sleep
-#endif
-
|
[-]
[+]
|
Deleted |
_service:tar_git:libsamplerate-0.1.9.tar.gz/tests/varispeed_test.c
^
|
@@ -1,151 +0,0 @@
-/*
-** Copyright (c) 2006-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
-** All rights reserved.
-**
-** This code is released under 2-clause BSD license. Please see the
-** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
-*/
-
-#include "config.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h>
-#include <string.h>
-
-#include <samplerate.h>
-
-#include "util.h"
-
-#if HAVE_FFTW3
-#include <fftw3.h>
-#else
-#define fftw_cleanup()
-#endif
-
-#define BUFFER_LEN (1 << 16)
-
-static void varispeed_test (int converter, double target_snr) ;
-
-int
-main (void)
-{
- puts ("") ;
- printf (" Zero Order Hold interpolator : ") ;
- varispeed_test (SRC_ZERO_ORDER_HOLD, 10.0) ;
-
- printf (" Linear interpolator : ") ;
- varispeed_test (SRC_LINEAR, 10.0) ;
-
- printf (" Sinc interpolator : ") ;
- varispeed_test (SRC_SINC_FASTEST, 115.0) ;
-
- fftw_cleanup () ;
- puts ("") ;
-
- return 0 ;
-} /* main */
-
-static void
-varispeed_test (int converter, double target_snr)
-{ static float input [BUFFER_LEN], output [BUFFER_LEN] ;
- double sine_freq, snr ;
-
- SRC_STATE *src_state ;
- SRC_DATA src_data ;
-
- int input_len, error ;
-
- memset (input, 0, sizeof (input)) ;
-
- input_len = ARRAY_LEN (input) / 2 ;
-
- sine_freq = 0.0111 ;
- gen_windowed_sines (1, &sine_freq, 1.0, input, input_len) ;
-
- /* Perform sample rate conversion. */
- if ((src_state = src_new (converter, 1, &error)) == NULL)
- { printf ("\n\nLine %d : src_new() failed : %s\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- src_data.end_of_input = 1 ;
-
- src_data.data_in = input ;
- src_data.input_frames = input_len ;
-
- src_data.src_ratio = 3.0 ;
-
- src_data.data_out = output ;
- src_data.output_frames = ARRAY_LEN (output) ;
-
- if ((error = src_set_ratio (src_state, 1.0 / src_data.src_ratio)))
- { printf ("\n\nLine %d : %s\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- if ((error = src_process (src_state, &src_data)))
- { printf ("\n\nLine %d : %s\n\n", __LINE__, src_strerror (error)) ;
- printf (" src_data.input_frames : %ld\n", src_data.input_frames) ;
- printf (" src_data.output_frames : %ld\n\n", src_data.output_frames) ;
- exit (1) ;
- } ;
-
- if (src_data.input_frames_used != input_len)
- { printf ("\n\nLine %d : unused input.\n", __LINE__) ;
- printf ("\tinput_len : %d\n", input_len) ;
- printf ("\tinput_frames_used : %ld\n\n", src_data.input_frames_used) ;
- exit (1) ;
- } ;
-
- /* Copy the last output to the input. */
- memcpy (input, output, sizeof (input)) ;
- reverse_data (input, src_data.output_frames_gen) ;
-
- if ((error = src_reset (src_state)))
- { printf ("\n\nLine %d : %s\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- src_data.end_of_input = 1 ;
-
- src_data.data_in = input ;
- input_len = src_data.input_frames = src_data.output_frames_gen ;
-
- src_data.data_out = output ;
- src_data.output_frames = ARRAY_LEN (output) ;
-
- if ((error = src_set_ratio (src_state, 1.0 / src_data.src_ratio)))
- { printf ("\n\nLine %d : %s\n\n", __LINE__, src_strerror (error)) ;
- exit (1) ;
- } ;
-
- if ((error = src_process (src_state, &src_data)))
- { printf ("\n\nLine %d : %s\n\n", __LINE__, src_strerror (error)) ;
- printf (" src_data.input_frames : %ld\n", src_data.input_frames) ;
- printf (" src_data.output_frames : %ld\n\n", src_data.output_frames) ;
- exit (1) ;
- } ;
-
- if (src_data.input_frames_used != input_len)
- { printf ("\n\nLine %d : unused input.\n", __LINE__) ;
- printf ("\tinput_len : %d\n", input_len) ;
- printf ("\tinput_frames_used : %ld\n\n", src_data.input_frames_used) ;
- exit (1) ;
- } ;
-
- src_state = src_delete (src_state) ;
-
- snr = calculate_snr (output, src_data.output_frames_gen, 1) ;
-
- if (target_snr > snr)
- { printf ("\n\nLine %d : snr (%3.1f) does not meet target (%3.1f)\n\n", __LINE__, snr, target_snr) ;
- save_oct_float ("varispeed.mat", input, src_data.input_frames, output, src_data.output_frames_gen) ;
- exit (1) ;
- } ;
-
- puts ("ok") ;
-
- return ;
-} /* varispeed_test */
-
|