Code example for Virtualizer

Methods: release

0
 
		protected void release() { 
			mCompression.release();
			mEqualizer.release();
			mBassBoost.release();
			mVirtualizer.release();
		} 
 
		/** 
		 * Proxies call to AudioEffect.setParameter(byte[], byte[]) which is 
		 * available via reflection. 
		 * 
		 * @param audioEffect 
		 * @param parameter 
		 * @param value 
		 */ 
		private static void setParameter(AudioEffect audioEffect, int parameter, short value) {
			try { 
				byte[] arguments = new byte[] {
						(byte) (parameter), (byte) (parameter >> 8),
						(byte) (parameter >> 16), (byte) (parameter >> 24)