shithub: libsamplerate

Download patch

ref: d6d6b1d3e49921da3668fd714353d61131917a51
parent: a71fc3b8658362dae00b2ad8c0e555c0b02418a5
author: Erik de Castro Lopo <erikd@mingus>
date: Fri Mar 31 03:40:21 EST 2006

varispeed_test.c : Progress made.

--- a/tests/varispeed_test.c
+++ b/tests/varispeed_test.c
@@ -32,12 +32,12 @@
 int
 main (void)
 {
-	printf ("    Zero Order Hold interpolator    : ") ;
+/*-	printf ("    Zero Order Hold interpolator    : ") ;
 	varispeed_test (SRC_ZERO_ORDER_HOLD) ;
 
 	printf ("    Linear interpolator             : ") ;
 	varispeed_test (SRC_LINEAR) ;
-
+-*/
 	printf ("    Sinc interpolator               : ") ;
 	varispeed_test (SRC_SINC_FASTEST) ;
 
@@ -96,6 +96,8 @@
 		exit (1) ;
 		} ;
 
+printf ("\n\ninput_frames_used: %ld    output_frames_gen : %ld\n", src_data.input_frames_used, src_data.output_frames_gen) ;
+
 	if (src_data.input_frames_used != input_len)
 	{	printf ("\n\nLine %d : unused input.\n", __LINE__) ;
 		printf ("\tinput_len         : %d\n", input_len) ;
@@ -132,7 +134,9 @@
 		exit (1) ;
 		} ;
 
-/*-save_oct_float ("vs.mat", input, src_data.input_frames, output, src_data.output_frames_gen) ;-*/
+save_oct_float ("vs.mat", input, src_data.input_frames, output, src_data.output_frames_gen) ;
+
+printf ("\n\ninput_frames_used: %ld    output_frames_gen : %ld\n", src_data.input_frames_used, src_data.output_frames_gen) ;
 
 	if (src_data.input_frames_used != input_len)
 	{	printf ("\n\nLine %d : unused input.\n", __LINE__) ;