Code example for Equalizer

Methods: getBandLevelRange, getNumberOfBands, release

0
		 
//		eqs = new ArrayList<SessionEqualizer>(); 
		 
		if (9 <= Build.VERSION.SDK_INT) {
			try { 
		        eq = new Equalizer(PRIORITY, 0);
				bands = eq.getNumberOfBands();
				 
				SpeakerBoost.log("Set up equalizer, have "+bands+" bands");
				 
				rangeLow = eq.getBandLevelRange()[0];
				rangeHigh = eq.getBandLevelRange()[1];
 
				SpeakerBoost.log("range "+rangeLow+ " "+rangeHigh);
				 
				if (!activeEqualizer) {
					eq.release();
					released = true;
				} 
				else { 
					released = false;
				}