diff --git a/docs/quality.md b/docs/quality.md index 5c69578e..39327334 100644 --- a/docs/quality.md +++ b/docs/quality.md @@ -24,15 +24,14 @@ factors to consider: There are a number of sample rate converters available for downloading but I will limit the comparison of Secret Rabbit Code to the following: -- [sndfile-resample](http://libsndfile.github.io/libsamplerate/download.html) - which is a program (which uses libsamplerate) from the **examples/** directory - of the Secret Rabbit Code source code distribution. +- sndfile-resample which is a program (which uses libsamplerate) from the + [sndfile-tools](https://github.com/libsndfile/sndfile-tools) package. - [Resample](https://ccrma.stanford.edu/~jos/resample/) by Julius O Smiths which seems to have been the first high quality converter available as source code. -- [ResampAudio](http://www.tsp.ece.mcgill.ca/MMSP/Documents/Software/AFsp/ResampAudio.html) - which is part of [Audio File Programs and Routines](http://www.tsp.ece.mcgill.ca/MMSP/Documents/Software/AFsp/AFsp.html) +- [ResampAudio](https://www.mmsp.ece.mcgill.ca/Documents/Software/Packages/AFsp/AFsp/ResampAudio.html) + which is part of the [AFsp Package](https://www-mmsp.ece.mcgill.ca/Documents/Downloads/AFsp/) by Peter Kabal. -- [SoX](http://home.sprynet.com/~cbagwell/sox.html) which is maintained by Chris +- [SoX](https://sourceforge.net/projects/sox/) which is maintained by Chris Bagwell. SoX is also able to perform some low quality sample rate conversions but these will not be investigated. - [Shibatch](http://shibatch.sourceforge.net/) which seems to be a frequency diff --git a/tests/calc_snr.c b/tests/calc_snr.c index 35a37f77..81851184 100644 --- a/tests/calc_snr.c +++ b/tests/calc_snr.c @@ -169,7 +169,7 @@ find_snr (const double *magnitude, int len, int expected_peaks) qsort (peaks, peak_count, sizeof (PEAK_DATA), peak_compare) ; snr = peaks [0].peak ; - for (k = 1 ; k < peak_count ; k++) + for (k = expected_peaks ; k < peak_count ; k++) if (fabs (snr - peaks [k].peak) > 10.0) return fabs (peaks [k].peak) ; diff --git a/tests/src-evaluate.c b/tests/src-evaluate.c index d55d6483..d9a99432 100644 --- a/tests/src-evaluate.c +++ b/tests/src-evaluate.c @@ -74,15 +74,15 @@ int main (int argc, char *argv []) { static RESAMPLE_PROG resample_progs [] = { { "sndfile-resample", - "examples/sndfile-resample --version", + "sndfile-resample --version", "libsamplerate", - "examples/sndfile-resample --max-speed -c 0 -to %d source.wav destination.wav", + "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", + "sox source.wav -r %d destination.wav", SF_FORMAT_WAV | SF_FORMAT_PCM_32 }, { "ResampAudio", @@ -354,7 +354,7 @@ measure_snr (const RESAMPLE_PROG *prog, int *output_samples, int verbose) if ((retval = system (command)) != 0) printf ("system returned %d\n", retval) ; - snr = measure_destination_wav ("destination.wav", &sample_count, snr_test->pass_band_peaks) ; + snr = measure_destination_wav ("destination.wav", &sample_count, snr_test [k].pass_band_peaks) ; *output_samples += sample_count ;