#define MAX_SAMPLES_PER_WINDOW (size_t) (MAX_SAMP_FREQ * RMS_WINDOW_TIME) /* max. Samples per Time slice */\r
#define PINK_REF 64.82 /* 298640883795 */ /* calibration value */\r
\r
-Float_t linprebuf [MAX_ORDER * 2];\r
-Float_t* linpre; /* left input samples, with pre-buffer */\r
-Float_t lstepbuf [MAX_SAMPLES_PER_WINDOW + MAX_ORDER];\r
-Float_t* lstep; /* left "first step" (i.e. post first filter) samples */\r
-Float_t loutbuf [MAX_SAMPLES_PER_WINDOW + MAX_ORDER];\r
-Float_t* lout; /* left "out" (i.e. post second filter) samples */\r
-Float_t rinprebuf [MAX_ORDER * 2];\r
-Float_t* rinpre; /* right input samples ... */\r
-Float_t rstepbuf [MAX_SAMPLES_PER_WINDOW + MAX_ORDER];\r
-Float_t* rstep;\r
-Float_t routbuf [MAX_SAMPLES_PER_WINDOW + MAX_ORDER];\r
-Float_t* rout;\r
-unsigned int sampleWindow; /* number of samples required to reach number of milliseconds required for RMS window */\r
-unsigned long totsamp;\r
-double lsum;\r
-double rsum;\r
-int freqindex;\r
-int first;\r
+static Float_t linprebuf [MAX_ORDER * 2];\r
+static Float_t* linpre; /* left input samples, with pre-buffer */\r
+static Float_t lstepbuf [MAX_SAMPLES_PER_WINDOW + MAX_ORDER];\r
+static Float_t* lstep; /* left "first step" (i.e. post first filter) samples */\r
+static Float_t loutbuf [MAX_SAMPLES_PER_WINDOW + MAX_ORDER];\r
+static Float_t* lout; /* left "out" (i.e. post second filter) samples */\r
+static Float_t rinprebuf [MAX_ORDER * 2];\r
+static Float_t* rinpre; /* right input samples ... */\r
+static Float_t rstepbuf [MAX_SAMPLES_PER_WINDOW + MAX_ORDER];\r
+static Float_t* rstep;\r
+static Float_t routbuf [MAX_SAMPLES_PER_WINDOW + MAX_ORDER];\r
+static Float_t* rout;\r
+static unsigned int sampleWindow; /* number of samples required to reach number of milliseconds required for RMS window */\r
+static unsigned long totsamp;\r
+static double lsum;\r
+static double rsum;\r
+static int freqindex;\r
static Uint32_t A [(size_t)(STEPS_per_dB * MAX_dB)];\r
static Uint32_t B [(size_t)(STEPS_per_dB * MAX_dB)];\r
\r
#pragma warning ( disable : 4305 )\r
#endif\r
\r
-const Float_t AYule [9] [11] = {\r
+static const Float_t AYule [9] [11] = {\r
{ 1., -3.84664617118067, 7.81501653005538,-11.34170355132042, 13.05504219327545,-12.28759895145294, 9.48293806319790, -5.87257861775999, 2.75465861874613, -0.86984376593551, 0.13919314567432 },\r
{ 1., -3.47845948550071, 6.36317777566148, -8.54751527471874, 9.47693607801280, -8.81498681370155, 6.85401540936998, -4.39470996079559, 2.19611684890774, -0.75104302451432, 0.13149317958808 },\r
{ 1., -2.37898834973084, 2.84868151156327, -2.64577170229825, 2.23697657451713, -1.67148153367602, 1.00595954808547, -0.45953458054983, 0.16378164858596, -0.05032077717131, 0.02347897407020 },\r
{ 1., -0.25049871956020, -0.43193942311114, -0.03424681017675, -0.04678328784242, 0.26408300200955, 0.15113130533216, -0.17556493366449, -0.18823009262115, 0.05477720428674, 0.04704409688120 }\r
};\r
\r
-const Float_t BYule [9] [11] = {\r
+static const Float_t BYule [9] [11] = {\r
{ 0.03857599435200, -0.02160367184185, -0.00123395316851, -0.00009291677959, -0.01655260341619, 0.02161526843274, -0.02074045215285, 0.00594298065125, 0.00306428023191, 0.00012025322027, 0.00288463683916 },\r
{ 0.05418656406430, -0.02911007808948, -0.00848709379851, -0.00851165645469, -0.00834990904936, 0.02245293253339, -0.02596338512915, 0.01624864962975, -0.00240879051584, 0.00674613682247, -0.00187763777362 },\r
{ 0.15457299681924, -0.09331049056315, -0.06247880153653, 0.02163541888798, -0.05588393329856, 0.04781476674921, 0.00222312597743, 0.03174092540049, -0.01390589421898, 0.00651420667831, -0.00881362733839 },\r
{ 0.53648789255105, -0.42163034350696, -0.00275953611929, 0.04267842219415, -0.10214864179676, 0.14590772289388, -0.02459864859345, -0.11202315195388, -0.04060034127000, 0.04788665548180, -0.02217936801134 }\r
};\r
\r
-const Float_t AButter [9] [3] = {\r
+static const Float_t AButter [9] [3] = {\r
{ 1., -1.97223372919527, 0.97261396931306 },\r
{ 1., -1.96977855582618, 0.97022847566350 },\r
{ 1., -1.95835380975398, 0.95920349965459 },\r
{ 1., -1.88903307939452, 0.89487434461664 }\r
};\r
\r
-const Float_t BButter [9] [3] = {\r
+static const Float_t BButter [9] [3] = {\r
{ 0.98621192462708, -1.97242384925416, 0.98621192462708 },\r
{ 0.98500175787242, -1.97000351574484, 0.98500175787242 },\r
{ 0.97938932735214, -1.95877865470428, 0.97938932735214 },\r