From c856e48382eaedd1c17bf1c3d38909a852c84bac Mon Sep 17 00:00:00 2001 From: Tom Hennen Date: Thu, 21 May 2015 19:08:09 -0400 Subject: [PATCH] Revert "LoudnessEnhancer for Android 4.4+" --- .../java/com/aocate/media/AndroidMediaPlayer.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/src/main/java/com/aocate/media/AndroidMediaPlayer.java b/core/src/main/java/com/aocate/media/AndroidMediaPlayer.java index c0aeba722..7c2ea3d61 100644 --- a/core/src/main/java/com/aocate/media/AndroidMediaPlayer.java +++ b/core/src/main/java/com/aocate/media/AndroidMediaPlayer.java @@ -16,9 +16,7 @@ package com.aocate.media; import android.content.Context; import android.media.MediaPlayer; -import android.media.audiofx.LoudnessEnhancer; import android.net.Uri; -import android.os.Build; import android.util.Log; import java.io.IOException; @@ -207,15 +205,6 @@ public class AndroidMediaPlayer extends MediaPlayerImpl { Log.d(AMP_TAG, " ++++++++++++++++++++++++++++++++ Setting prepared listener to this.onPreparedListener"); mp.setOnPreparedListener(this.onPreparedListener); mp.setOnSeekCompleteListener(this.onSeekCompleteListener); - - // loudness enhancer - if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { - int audioSession = mp.getAudioSessionId(); - LoudnessEnhancer effect = new LoudnessEnhancer(audioSession); - effect.setTargetGain(600); // amplify up to 6 dB - effect.setEnabled(true); - Log.d(AMP_TAG, "Loudness enhancer enabled"); - } } @Override