* \r
* @author MDM\r
*/\r
+@LATTICE("B<T")\r
+@METHODDEFAULT("OUT<V,V<SH,SH<C,C<IN,SH*,THISLOC=IN,GLOBALLOC=IN")\r
public final class Equalizer\r
{ \r
/**\r
* Equalizer setting to denote that a given band will not be\r
* present in the output signal.\r
*/\r
- static public final float BAND_NOT_PRESENT = Float.NEGATIVE_INFINITY;\r
+ @LOC("T") static public final float BAND_NOT_PRESENT = Float.NEGATIVE_INFINITY;\r
\r
- static public final Equalizer PASS_THRU_EQ = new Equalizer();\r
+ @LOC("T") static public final Equalizer PASS_THRU_EQ = new Equalizer();\r
\r
- private static final int BANDS = 32;\r
+ @LOC("T") private static final int BANDS = 32;\r
\r
- private final float[] settings = new float[BANDS];\r
+ @LOC("B") private final float[] settings = new float[BANDS];\r
\r
/**\r
* Creates a new <code>Equalizer</code> instance. \r
* @return an array of factors that can be applied to the\r
* subbands.\r
*/\r
+ @RETURNLOC("OUT") \r
float[] getBandFactors()\r
{\r
- float[] factors = new float[BANDS];\r
- for (int i=0, maxCount=BANDS; i<maxCount; i++)\r
+ @LOC("OUT") float[] factors = new float[BANDS];\r
+ @LOC("C") int maxCount = BANDS;\r
+ for (@LOC("SH") int i=0; i<maxCount; i++)\r
{\r
factors[i] = getBandFactor(settings[i]);\r
}\r
* n is the equalizer band setting in the range [-1.0,1.0].\r
* \r
*/\r
- float getBandFactor(float eq)\r
+ @RETURNLOC("C")\r
+ float getBandFactor(@LOC("IN") float eq)\r
{\r
if (eq==BAND_NOT_PRESENT)\r
return 0.0f;\r
\r
- float f = (float)Math.pow(2.0, eq);\r
+ @LOC("C") float f = (float)Math.pow(2.0, eq);\r
return f;\r
}\r
\r