changeset 21058:1ed61a0494c4

Reinitialize some variables on af_resample reinit, fixes crash
author uau
date Sun, 19 Nov 2006 18:10:04 +0000
parents 63349f025c17
children ac2556247c7a
files libaf/af_resample.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/af_resample.c	Sun Nov 19 18:08:03 2006 +0000
+++ b/libaf/af_resample.c	Sun Nov 19 18:10:04 2006 +0000
@@ -220,6 +220,8 @@
       int j;
       s->up = af->data->rate/d;	
       s->dn = n->rate/d;
+      s->wi = 0;
+      s->i = 0;
       
       // Calculate cuttof frequency for filter
       fc = 1/(float)(max(s->up,s->dn));