History

Fix knock on effects of calc_snr.c fixes.

Erik de Castro Lopo committed 20 years ago

Commit 52554fc1 parent ad15d5d3 files · +21 −13Browse files

Unified · Split

3 files
  1. ChangeLog +8 −0
  2. tests/snr_bw_test.c +9 −9
  3. tests/varispeed_test.c +4 −4
ChangeLog+8−0
@@ -1,3 +1,11 @@
1+2006-05-26 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
2+
3+ * tests/calc_snr.c
4+ Fix minor bug in analysis routines.
5+
6+ * tests/varispeed_test.c tests/snr_bw_test.c
7+ Fix knock on effects of above change.
8+
19 2006-05-23 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
210
311 * src/Makefile.am
tests/snr_bw_test.c+9−9
@@ -74,12 +74,12 @@ main (int argc, char *argv []) · 73 unmodified lines
7474 8,
7575 BOOLEAN_FALSE,
7676 { { 1, { 0.01111111111 }, 3.0, 1, 28.0, 1.0 },
77− { 1, { 0.01111111111 }, 0.6, 1, 37.0, 1.0 },
78− { 1, { 0.01111111111 }, 0.3, 1, 37.0, 1.0 },
77+ { 1, { 0.01111111111 }, 0.6, 1, 36.0, 1.0 },
78+ { 1, { 0.01111111111 }, 0.3, 1, 36.0, 1.0 },
7979 { 1, { 0.01111111111 }, 1.0, 1, 150.0, 1.0 },
8080 { 1, { 0.01111111111 }, 1.001, 1, 38.0, 1.0 },
8181 { 2, { 0.011111, 0.324 }, 1.9999, 2, 14.0, 1.0 },
82− { 2, { 0.012345, 0.457 }, 0.456789, 1, 32.0, 1.0 },
82+ { 2, { 0.012345, 0.457 }, 0.456789, 1, 12.0, 1.0 },
8383 { 1, { 0.3511111111 }, 1.33, 1, 10.0, 1.0 }
8484 }
8585 },
@@ -88,12 +88,12 @@ main (int argc, char *argv []) · 2 unmodified lines
8888 8,
8989 BOOLEAN_FALSE,
9090 { { 1, { 0.01111111111 }, 3.0, 1, 73.0, 1.0 },
91− { 1, { 0.01111111111 }, 0.6, 1, 74.0, 1.0 },
92− { 1, { 0.01111111111 }, 0.3, 1, 74.0, 1.0 },
91+ { 1, { 0.01111111111 }, 0.6, 1, 73.0, 1.0 },
92+ { 1, { 0.01111111111 }, 0.3, 1, 73.0, 1.0 },
9393 { 1, { 0.01111111111 }, 1.0, 1, 150.0, 1.0 },
9494 { 1, { 0.01111111111 }, 1.001, 1, 77.0, 1.0 },
95− { 2, { 0.011111, 0.324 }, 1.9999, 2, 97.0, 0.94 },
96− { 2, { 0.012345, 0.457 }, 0.456789, 1, 60.0, 0.96 },
95+ { 2, { 0.011111, 0.324 }, 1.9999, 2, 16.0, 0.94 },
96+ { 2, { 0.012345, 0.457 }, 0.456789, 1, 26.0, 0.96 },
9797 { 1, { 0.3511111111 }, 1.33, 1, 22.0, 0.99 }
9898 }
9999 },
@@ -102,7 +102,7 @@ main (int argc, char *argv []) · 2 unmodified lines
102102 9,
103103 BOOLEAN_TRUE,
104104 { { 1, { 0.01111111111 }, 3.0, 1, 100.0, 1.0 },
105− { 1, { 0.01111111111 }, 0.6, 1, 100.0, 1.0 },
105+ { 1, { 0.01111111111 }, 0.6, 1, 99.0, 1.0 },
106106 { 1, { 0.01111111111 }, 0.3, 1, 100.0, 1.0 },
107107 { 1, { 0.01111111111 }, 1.0, 1, 150.0, 1.0 },
108108 { 1, { 0.01111111111 }, 1.001, 1, 100.0, 1.0 },
@@ -117,7 +117,7 @@ main (int argc, char *argv []) · 8 unmodified lines
117117 9,
118118 BOOLEAN_TRUE,
119119 { { 1, { 0.01111111111 }, 3.0, 1, 100.0, 1.0 },
120− { 1, { 0.01111111111 }, 0.6, 1, 100.0, 1.0 },
120+ { 1, { 0.01111111111 }, 0.6, 1, 99.0, 1.0 },
121121 { 1, { 0.01111111111 }, 0.3, 1, 100.0, 1.0 },
122122 { 1, { 0.01111111111 }, 1.0, 1, 149.0, 1.0 },
123123 { 1, { 0.01111111111 }, 1.001, 1, 100.0, 1.0 },
tests/varispeed_test.c+4−4
@@ -34,13 +34,13 @@ main (void) · 33 unmodified lines
3434 {
3535 puts ("") ;
3636 printf (" Zero Order Hold interpolator : ") ;
37− varispeed_test (SRC_ZERO_ORDER_HOLD, 45.0) ;
37+ varispeed_test (SRC_ZERO_ORDER_HOLD, 10.0) ;
3838
3939 printf (" Linear interpolator : ") ;
40− varispeed_test (SRC_LINEAR, 85.0) ;
40+ varispeed_test (SRC_LINEAR, 10.0) ;
4141
4242 printf (" Sinc interpolator : ") ;
43− varispeed_test (SRC_SINC_FASTEST, 125.0) ;
43+ varispeed_test (SRC_SINC_FASTEST, 115.0) ;
4444
4545 puts ("") ;
4646
@@ -140,7 +140,7 @@ varispeed_test (int converter, double target_snr) · 93 unmodified lines
140140 snr = calculate_snr (output, src_data.output_frames_gen, 1) ;
141141
142142 if (target_snr > snr)
143− { printf ("\n\nLine %d : snr (%3.1f) does not meet target (%3.1f)\n\n", __LINE__, target_snr, snr) ;
143+ { printf ("\n\nLine %d : snr (%3.1f) does not meet target (%3.1f)\n\n", __LINE__, snr, target_snr) ;
144144 save_oct_float ("varispeed.mat", input, src_data.input_frames, output, src_data.output_frames_gen) ;
145145 exit (1) ;
146146 } ;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t