diff options
| author | Treehugger Robot <treehugger-gerrit@google.com> | 2020-08-04 17:45:32 +0000 |
|---|---|---|
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-08-04 17:45:32 +0000 |
| commit | b8135c14ac2c607682d048b3228042d8630cdd45 (patch) | |
| tree | e6ea18eaaad6fd83476aeec06dc86350399fd45d | |
| parent | 212e94866c8d7edf0d8e2d641fdd60fd93abf464 (diff) | |
| parent | 7d70963364a3f9d42553e36b40c544c581ae90b9 (diff) | |
| download | platform_frameworks_wilhelm-b8135c14ac2c607682d048b3228042d8630cdd45.tar.gz platform_frameworks_wilhelm-b8135c14ac2c607682d048b3228042d8630cdd45.tar.bz2 platform_frameworks_wilhelm-b8135c14ac2c607682d048b3228042d8630cdd45.zip | |
Merge "Update client code for AudioEffect" am: 7d70963364
Original change: https://android-review.googlesource.com/c/platform/frameworks/wilhelm/+/1386996
Change-Id: I0dfd220efad687e410ae7aa7f8f94bec60cde919
| -rw-r--r-- | src/android/android_Effect.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/android/android_Effect.cpp b/src/android/android_Effect.cpp index ca0a1c5..9341d04 100644 --- a/src/android/android_Effect.cpp +++ b/src/android/android_Effect.cpp @@ -665,12 +665,13 @@ bool android_fx_initEffectObj(audio_session_t sessionId, android::sp<android::Au const effect_uuid_t *type) { //SL_LOGV("android_fx_initEffectObj on session %d", sessionId); - effect = new android::AudioEffect(type, android::String16(), EFFECT_UUID_NULL, + effect = new android::AudioEffect(android::String16()); + effect->set(type, EFFECT_UUID_NULL, 0,// priority 0,// effect callback 0,// callback data sessionId,// session ID - 0 );// output + 0); // output android::status_t status = effect->initCheck(); if (android::NO_ERROR != status) { @@ -805,9 +806,8 @@ SLresult android_genericFx_createEffect(IAndroidEffect* iae, SLInterfaceID pUuid } // create new effect - android::sp<android::AudioEffect> pFx = new android::AudioEffect( - NULL, // not using type to create effect - android::String16(), + android::sp<android::AudioEffect> pFx = new android::AudioEffect(android::String16()); + pFx->set(NULL, // not using type to create effect (const effect_uuid_t*)pUuid, 0,// priority 0,// effect callback |
