commit | 580a0d5508adfff81334e30fed33889b99975eaf | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Mon Apr 24 19:06:25 2023 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Apr 24 19:06:25 2023 +0000 |
tree | 8d91013598d7627db1eaa497e92cf23a346b3a9e | |
parent | abfb9a5429592bf692d709c025a38d9cb4186bc2 [diff] | |
parent | 3adc55b906c39c73dfc63dd7d97ba224f702d272 [diff] |
Merge "AudioMixer: Enable 5.1 based for fallback downmix"
diff --git a/media/libeffects/spatializer/benchmarks/spatializer_benchmark.cpp b/media/libeffects/spatializer/benchmarks/spatializer_benchmark.cpp index e8ac480..e2177db 100644 --- a/media/libeffects/spatializer/benchmarks/spatializer_benchmark.cpp +++ b/media/libeffects/spatializer/benchmarks/spatializer_benchmark.cpp
@@ -31,6 +31,7 @@ (audio_effect_library_t*)dlsym(effectLib, AUDIO_EFFECT_LIBRARY_INFO_SYM_AS_STR); if (effectInterface == nullptr) { ALOGE("dlsym failed: %s", dlerror()); + dlclose(effectLib); exit(-1); } symbol = (audio_effect_library_t)(*effectInterface);
diff --git a/media/libeffects/spatializer/tests/SpatializerTest.cpp b/media/libeffects/spatializer/tests/SpatializerTest.cpp index 110fbb1..3db42b6 100644 --- a/media/libeffects/spatializer/tests/SpatializerTest.cpp +++ b/media/libeffects/spatializer/tests/SpatializerTest.cpp
@@ -30,6 +30,7 @@ (audio_effect_library_t*)dlsym(effectLib, AUDIO_EFFECT_LIBRARY_INFO_SYM_AS_STR); if (effectInterface == nullptr) { ALOGE("dlsym failed: %s", dlerror()); + dlclose(effectLib); exit(-1); } symbol = (audio_effect_library_t)(*effectInterface);