Code example for Equalizer

Methods: getBandLevelRange, getNumberOfBands

0
			throw new PlayerEqualizerException("Fail to construct new equalizer object", e);
		} 
	} 
	 
	public void init() { 
		setTotalBandSize(equalizer.getNumberOfBands());
		setMinimumBandGain(equalizer.getBandLevelRange()[0]);
		setMaximumBandGain(equalizer.getBandLevelRange()[1]);
	} 
	 
	public void setGain(short frequency, short gain) {
		Log.d("equalizer", "Changing gain for band " + frequency + " to " + gain);
		equalizer.setBandLevel(frequency, gain);
	} 
 
	public short getTotalBandSize() { 
		return totalBandSize;
	} 
 
	public void setTotalBandSize(short totalBandSize) {
		this.totalBandSize = totalBandSize;