summaryrefslogtreecommitdiffstats
path: root/media/jni
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2010-07-23 00:19:11 -0700
committerEric Laurent <elaurent@google.com>2010-07-27 00:41:31 -0700
commitca57d1cc89d65dfbd59c749c5736574cd08c7bd3 (patch)
tree03742035e50c98735bf61034caa511b0371dc9e8 /media/jni
parent2b989e1f7d08efd51652b56b1cb1fef76a1e8ab1 (diff)
downloadframeworks_base-ca57d1cc89d65dfbd59c749c5736574cd08c7bd3.zip
frameworks_base-ca57d1cc89d65dfbd59c749c5736574cd08c7bd3.tar.gz
frameworks_base-ca57d1cc89d65dfbd59c749c5736574cd08c7bd3.tar.bz2
Audio Effects: added methods to effects java classes to store and load current effect settings in
a single call. Addional changes: - Fixed simulator build - Use effect interface UUIDs from OpenSL ES includes when available - Added cleanspec rules to remove now obsolete test effect libraries - Fixed bug in AudioEffect JNI setParameter function. Change-Id: Ic25ddb135e2cec5a68c181d727321f5ac7a1ab6b
Diffstat (limited to 'media/jni')
-rw-r--r--media/jni/audioeffect/android_media_AudioEffect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/jni/audioeffect/android_media_AudioEffect.cpp b/media/jni/audioeffect/android_media_AudioEffect.cpp
index beb3dfc..e3b9e36 100644
--- a/media/jni/audioeffect/android_media_AudioEffect.cpp
+++ b/media/jni/audioeffect/android_media_AudioEffect.cpp
@@ -549,7 +549,7 @@ static jint android_media_AudioEffect_native_setParameter(JNIEnv *env,
p = (effect_param_t *) malloc(sizeof(effect_param_t) + voffset + vsize);
memcpy(p->data, lpParam, psize);
p->psize = psize;
- memcpy(p->data + voffset, lpValue, psize);
+ memcpy(p->data + voffset, lpValue, vsize);
p->vsize = vsize;
lStatus = lpAudioEffect->setParameter(p);