Unified · Split
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | noinst_PROGRAMS = misc_test termination_test simple_test callback_test \ |
| 2 | 2 | reset_test multi_channel_test snr_bw_test \ |
| 3 | 3 | float_short_test varispeed_test callback_hang_test \ |
| 4 | − src-evaluate benchmark | |
| 4 | + src-evaluate throughput_test | |
| 5 | 5 | |
| 6 | 6 | SAMPLRATEDIR =../src |
| 7 | 7 | INCLUDES = -I$(srcdir)/$(SAMPLRATEDIR) |
| @@ -40,7 +40,7 @@ float_short_test_SOURCES = float_short_test.c util.c util.h · 32 unmodified lines | ||
| 40 | 40 | float_short_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la |
| 41 | 41 | |
| 42 | 42 | varispeed_test_SOURCES = varispeed_test.c util.c util.h calc_snr.c |
| 43 | −varispeed_test__CFLAGS = @FFTW3_CFLAGS@ | |
| 43 | +varispeed_test_CFLAGS = @FFTW3_CFLAGS@ | |
| 44 | 44 | varispeed_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la $(FFTW3_LIBS) |
| 45 | 45 | |
| 46 | 46 | # This program is for evaluating other sample rate converters. |
| @@ -49,9 +49,9 @@ src_evaluate_SOURCES = src-evaluate.c calc_snr.c util.c · 2 unmodified lines | ||
| 49 | 49 | src_evaluate_CFLAGS = @SNDFILE_CFLAGS@ @FFTW3_CFLAGS@ |
| 50 | 50 | src_evaluate_LDADD = $(SNDFILE_LIBS) $(FFTW3_LIBS) |
| 51 | 51 | |
| 52 | −benchmark_CFLAGS = $(AM_CFLAGS) @FFTW3_CFLAGS@ | |
| 53 | −benchmark_SOURCES = benchmark.c util.c calc_snr.c | |
| 54 | −benchmark_LDADD = $(SAMPLRATEDIR)/libsamplerate.la $(FFTW3_LIBS) | |
| 52 | +throughput_test_CFLAGS = $(AM_CFLAGS) @FFTW3_CFLAGS@ | |
| 53 | +throughput_test_SOURCES = throughput_test.c util.c calc_snr.c | |
| 54 | +throughput_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la $(FFTW3_LIBS) | |
| 55 | 55 | |
| 56 | 56 | #=============================================================================== |
| 57 | 57 | |
| @@ -72,8 +72,3 @@ check: $(noinst_PROGRAMS) · 14 unmodified lines | ||
| 72 | 72 | @echo " ${PACKAGE}-${VERSION} passed all tests." |
| 73 | 73 | @echo "-----------------------------------------------------------------" |
| 74 | 74 | |
| 75 | −# Do not edit or modify anything in this comment block. | |
| 76 | −# The arch-tag line is a file identity tag for the GNU Arch | |
| 77 | −# revision control system. | |
| 78 | −# | |
| 79 | −# arch-tag: ec9d19f8-523c-48e5-8929-809c2641a8dc | |
| @@ -1,3 +1,21 @@ | ||
| 1 | +/* | |
| 2 | +** Copyright (C) 2004-2008 Erik de Castro Lopo <erikd@mega-nerd.com> | |
| 3 | +** | |
| 4 | +** This program is free software; you can redistribute it and/or modify | |
| 5 | +** it under the terms of the GNU General Public License as published by | |
| 6 | +** the Free Software Foundation; either version 2 of the License, or | |
| 7 | +** (at your option) any later version. | |
| 8 | +** | |
| 9 | +** This program is distributed in the hope that it will be useful, | |
| 10 | +** but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 12 | +** GNU General Public License for more details. | |
| 13 | +** | |
| 14 | +** You should have received a copy of the GNU General Public License | |
| 15 | +** along with this program; if not, write to the Free Software | |
| 16 | +** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. | |
| 17 | +*/ | |
| 18 | + | |
| 1 | 19 | #include <stdio.h> |
| 2 | 20 | #include <stdlib.h> |
| 3 | 21 | #include <string.h> |
| @@ -8,7 +26,7 @@ · 4 unmodified lines | ||
| 8 | 26 | |
| 9 | 27 | #include "util.h" |
| 10 | 28 | |
| 11 | −#define BUFFER_LEN (1<<23) | |
| 29 | +#define BUFFER_LEN (1<<16) | |
| 12 | 30 | #define SNR_LEN (1<<16) |
| 13 | 31 | |
| 14 | 32 | static float input [BUFFER_LEN] ; |
| @@ -25,7 +43,6 @@ main (void) · 10 unmodified lines | ||
| 25 | 43 | freq = 0.01 ; |
| 26 | 44 | gen_windowed_sines (1, &freq, 1.0, input, SNR_LEN) ; |
| 27 | 45 | |
| 28 | − | |
| 29 | 46 | src_data.data_in = input ; |
| 30 | 47 | src_data.input_frames = ARRAY_LEN (input) ; |
| 31 | 48 | |
| @@ -63,10 +80,3 @@ main (void) · 31 unmodified lines | ||
| 63 | 80 | return 0 ; |
| 64 | 81 | } /* main */ |
| 65 | 82 | |
| 66 | −/* | |
| 67 | −** Do not edit or modify anything in this comment block. | |
| 68 | −** The arch-tag line is a file identity tag for the GNU Arch | |
| 69 | −** revision control system. | |
| 70 | −** | |
| 71 | −** arch-tag: f1c7eab4-7340-49a8-8deb-0f66de593cdb | |
| 72 | −*/ | |