diff options
author | Steve Kondik <steve@cyngn.com> | 2016-09-30 22:42:25 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-09-30 22:56:52 -0700 |
commit | 4bf669ace4c1e10f29f25f4034828813b871fa40 (patch) | |
tree | 43f379c8beef137b8b0d714c6e876f854c82c77b | |
parent | b3e922e368e4848b64e209f7f178ebbda4dae739 (diff) | |
download | android_packages_apps_AudioFX-4bf669ace4c1e10f29f25f4034828813b871fa40.tar.gz android_packages_apps_AudioFX-4bf669ace4c1e10f29f25f4034828813b871fa40.tar.bz2 android_packages_apps_AudioFX-4bf669ace4c1e10f29f25f4034828813b871fa40.zip |
audiofx: Don't check if strength is supported for bass boost
* New Qualcomm DSP supports Psychoacoustic Bass Enhancement
for the speaker. When the effect is created in this mode,
it does not have a strength control. Since the effects are
discovered by attaching to the global session, likely on
speaker, the user will end up with the effect disabled.
* Ideally we want to show a toggle switch for these kinds of
effects, but that can come later.
* Bump the prefs version so nothing stays cached.
Change-Id: I85b6f504d9037ff290f18724dfc201392b9f46b4
-rw-r--r-- | AndroidManifest.xml | 2 | ||||
-rw-r--r-- | src/org/cyanogenmod/audiofx/Constants.java | 2 | ||||
-rw-r--r-- | src/org/cyanogenmod/audiofx/backends/AndroidEffects.java | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 497de46..3706e8e 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -19,7 +19,7 @@ android:versionName="2.2.0" android:versionCode="20200"> - <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="23" /> + <uses-sdk android:minSdkVersion="24" android:targetSdkVersion="24" /> <uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE" /> <uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL" /> diff --git a/src/org/cyanogenmod/audiofx/Constants.java b/src/org/cyanogenmod/audiofx/Constants.java index 4c1fafb..2ecd7cc 100644 --- a/src/org/cyanogenmod/audiofx/Constants.java +++ b/src/org/cyanogenmod/audiofx/Constants.java @@ -25,7 +25,7 @@ import java.util.List; public class Constants { // current pref version, bump to rebuild prefs - public static final int CURRENT_PREFS_INT_VERSION = 2; + public static final int CURRENT_PREFS_INT_VERSION = 3; // effect type identifiers public static final int EFFECT_TYPE_ANDROID = 1; diff --git a/src/org/cyanogenmod/audiofx/backends/AndroidEffects.java b/src/org/cyanogenmod/audiofx/backends/AndroidEffects.java index fafcd34..6ab4870 100644 --- a/src/org/cyanogenmod/audiofx/backends/AndroidEffects.java +++ b/src/org/cyanogenmod/audiofx/backends/AndroidEffects.java @@ -130,7 +130,7 @@ class AndroidEffects extends EffectSetWithAndroidEq { @Override public boolean hasBassBoost() { - return mBassBoost != null && mBassBoost.getStrengthSupported(); + return mBassBoost != null; } @Override |