diff libaf/af_equalizer.c @ 24888:b2402b4f0afa

libaf: change filter input/output ratio calculations Change the audio filters to use a double instead of rationals for the ratio of output to input size. The rationals could overflow when calculating the overall ratio of a filter chain and gave no real advantage compared to doubles.
author uau
date Thu, 01 Nov 2007 06:52:01 +0000
parents 904e3f3f8bee
children 9079c9745ff9
line wrap: on
line diff
--- a/libaf/af_equalizer.c	Thu Nov 01 06:51:57 2007 +0000
+++ b/libaf/af_equalizer.c	Thu Nov 01 06:52:01 2007 +0000
@@ -222,8 +222,7 @@
   af->control=control;
   af->uninit=uninit;
   af->play=play;
-  af->mul.n=1;
-  af->mul.d=1;
+  af->mul=1;
   af->data=calloc(1,sizeof(af_data_t));
   af->setup=calloc(1,sizeof(af_equalizer_t));
   if(af->data == NULL || af->setup == NULL)