reformat benchmark source codes to meet the requirements of the annotation generation.
[IRC.git] / Robust / src / Benchmarks / SSJava / MP3DecoderInfer / Equalizer.java
index 1fe7fb9ed74cd86cbcb05296ff699b427d4eb9db..b8d4ad45fa6cb14cc678fa0b7e616c51a552737c 100644 (file)
  * @author MDM\r
  */\r
 \r
-\r
 public final class Equalizer {\r
   /**\r
    * Equalizer setting to denote that a given band will not be present in the\r
    * output signal.\r
    */\r
-  \r
+\r
   static public final float BAND_NOT_PRESENT = Float.NEGATIVE_INFINITY;\r
 \r
-  \r
   static public final Equalizer PASS_THRU_EQ = new Equalizer();\r
 \r
-  \r
   private static final int BANDS = 32;\r
 \r
-  \r
   private final float[] settings = new float[BANDS];\r
 \r
   /**\r
@@ -154,12 +150,11 @@ public final class Equalizer {
    * \r
    * @return an array of factors that can be applied to the subbands.\r
    */\r
-  \r
-  \r
+\r
   float[] getBandFactors() {\r
-     float[] factors = new float[BANDS];\r
-     int maxCount = BANDS;\r
-    for ( int i = 0; i < maxCount; i++) {\r
+    float[] factors = new float[BANDS];\r
+    int maxCount = BANDS;\r
+    for (int i = 0; i < maxCount; i++) {\r
       factors[i] = getBandFactor(settings[i]);\r
     }\r
 \r
@@ -172,12 +167,12 @@ public final class Equalizer {
    * the range [-1.0,1.0].\r
    * \r
    */\r
-  \r
-  float getBandFactor( float eq) {\r
+\r
+  float getBandFactor(float eq) {\r
     if (eq == BAND_NOT_PRESENT)\r
       return 0.0f;\r
 \r
-     float f = (float) Math.pow(2.0, eq);\r
+    float f = (float) Math.pow(2.0, eq);\r
     return f;\r
   }\r
 \r