Code example for PresetReverb

Methods: getPreset

0
 
	public int getReverb() { 
		if(!effect_on || reverb == null){
			return PresetReverb.PRESET_NONE;
		} 
		return reverb.getPreset();
	} 
	 
	public void setVolume(int pan,int volume){
		vol_pan = pan;
		vol_lev = volume;
		float temp1 = (float) Math.sqrt(1.0 - (pan*pan)/10000.0)*volume /100;
		float temp2 = (float) Math.sqrt(1.0 - (100 - pan)*(100 - pan)/10000.0)*volume /100;
		mp.setVolume(temp1, temp2);
		 
	} 
	 
	public int getPan(){ 
		return vol_pan;
	}