Index: mppenc/branches/r2d/libmpcpsy/psy.c
===================================================================
--- mppenc/branches/r2d/libmpcpsy/psy.c	(revision 65)
+++ mppenc/branches/r2d/libmpcpsy/psy.c	(revision 66)
@@ -85,5 +85,5 @@
 
 // fft_routines.c
-void   Init_FFT      ( void );
+void   Init_FFT      ( PsyModel* );
 void   PowSpec256    ( const float*, float* );
 void   PowSpec1024   ( const float*, float* );
@@ -96,15 +96,4 @@
 {
     int  i;
-
-    // generate FFT lookup-tables with largest FFT-size of 1024
-    Init_FFT ();
-
-    // setting pre-echo variables to Ltq
-    for ( i = 0; i < PART_LONG; i++ ) {
-		m->pre_erg_L  [0][i/3] = m->pre_erg_R  [0][i/3] =
-				m->pre_erg_L  [1][i/3] = m->pre_erg_R  [1][i/3] =
-				m->tmp_Mask_L [i]   = m->tmp_Mask_R [i]   =
-				m->PreThr_L   [i]   = m->PreThr_R   [i]   = m->partLtq [i];
-    }
 
     // initializing arrays with zero
@@ -124,4 +113,17 @@
 	m->SampleFreq = 0.;
 	m->Bandwidth = 0.;
+	m->KBD1 = 2.;
+	m->KBD2 = -1.;
+
+    // generate FFT lookup-tables with largest FFT-size of 1024
+	Init_FFT (m);
+
+    // setting pre-echo variables to Ltq
+	for ( i = 0; i < PART_LONG; i++ ) {
+		m->pre_erg_L  [0][i/3] = m->pre_erg_R  [0][i/3] =
+				m->pre_erg_L  [1][i/3] = m->pre_erg_R  [1][i/3] =
+				m->tmp_Mask_L [i]   = m->tmp_Mask_R [i]   =
+				m->PreThr_L   [i]   = m->PreThr_R   [i]   = m->partLtq [i];
+	}
 
     return;
