summaryrefslogtreecommitdiffstats
path: root/media/java
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2010-08-18 14:31:25 -0700
committerEric Laurent <elaurent@google.com>2010-08-18 14:31:25 -0700
commitba8da2e61b1d9ebb7a4758f1f7849ff8440bd20c (patch)
tree49592167b3636f6b3079381279d3e6286193b970 /media/java
parentf6354aca3a4d0571a66747d9cdc247a1d411d660 (diff)
downloadframeworks_base-ba8da2e61b1d9ebb7a4758f1f7849ff8440bd20c.zip
frameworks_base-ba8da2e61b1d9ebb7a4758f1f7849ff8440bd20c.tar.gz
frameworks_base-ba8da2e61b1d9ebb7a4758f1f7849ff8440bd20c.tar.bz2
Audio Effects: fixed "strength supported" parameter size.
The "strength supported" parameter for bass boost and virtualizer effect was incorrectly using a short value whereas it should be an int. This is to comply to the definition of boolean type in OpenSL ES that is uint32. Change-Id: I74ccb61dcc70fc9d390524a1ca5bbbd8b13ab1af
Diffstat (limited to 'media/java')
-rw-r--r--media/java/android/media/BassBoost.java2
-rw-r--r--media/java/android/media/Virtualizer.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/media/java/android/media/BassBoost.java b/media/java/android/media/BassBoost.java
index 73c1751..476b056 100644
--- a/media/java/android/media/BassBoost.java
+++ b/media/java/android/media/BassBoost.java
@@ -99,7 +99,7 @@ public class BassBoost extends AudioEffect {
UnsupportedOperationException, RuntimeException {
super(EFFECT_TYPE_BASS_BOOST, EFFECT_TYPE_NULL, priority, audioSession);
- short[] value = new short[1];
+ int[] value = new int[1];
checkStatus(getParameter(PARAM_STRENGTH_SUPPORTED, value));
mStrengthSupported = (value[0] != 0);
}
diff --git a/media/java/android/media/Virtualizer.java b/media/java/android/media/Virtualizer.java
index d03c2a8..b08f36e 100644
--- a/media/java/android/media/Virtualizer.java
+++ b/media/java/android/media/Virtualizer.java
@@ -100,7 +100,7 @@ public class Virtualizer extends AudioEffect {
UnsupportedOperationException, RuntimeException {
super(EFFECT_TYPE_VIRTUALIZER, EFFECT_TYPE_NULL, priority, audioSession);
- short[] value = new short[1];
+ int[] value = new int[1];
checkStatus(getParameter(PARAM_STRENGTH_SUPPORTED, value));
mStrengthSupported = (value[0] != 0);
}