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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user