Code example for MediaPlayer

Methods: getAudioSessionId

0
	 * Create the equalizer and attach it to the given MediaPlayer's audio 
	 * session. 
	 */ 
	public CompatEq(MediaPlayer player)
	{ 
		Equalizer eq = new Equalizer(0, player.getAudioSessionId());
		eq.setEnabled(true);
		mEq = eq;
	} 
 
	/** 
	 * Call {@link Equalizer#getNumberOfBands()} 
	 */ 
	public short getNumberOfBands() 
	{ 
		return mEq.getNumberOfBands();
	} 
 
	/** 
	 * Call {@link Equalizer#setBandLevel(short, short)}. 
	 */