shithub: libsamplerate

Download patch

ref: c9b3dcae8dfa5117e333b51a14240f2d67f6690e
parent: 3548f633b3e621138f345d87f863837a36b32910
author: Erik de Castro Lopo <erikd@coltrane>
date: Wed Sep 15 07:09:13 EDT 2004

Constify a parameter to gen_windowed_sines().

--- a/tests/util.c
+++ b/tests/util.c
@@ -27,7 +27,7 @@
 #endif
 
 void
-gen_windowed_sines (int freq_count, double *freqs, double max, float *output, int output_len)
+gen_windowed_sines (int freq_count, const double *freqs, double max, float *output, int output_len)
 {	int 	k, freq ;
 	double	amplitude, phase ;
 
--- a/tests/util.h
+++ b/tests/util.h
@@ -22,7 +22,7 @@
 
 #define	ARRAY_LEN(x)	((int) (sizeof (x) / sizeof ((x) [0])))
 
-void gen_windowed_sines (int freq_count, double *freqs, double max, float *output, int output_len) ;
+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) ;