From 20052f53e7a769333eddaf0a120b0bfb3aa274a6 Mon Sep 17 00:00:00 2001 From: Otto Eotvos Date: Tue, 27 May 2025 11:30:00 +0200 Subject: [PATCH] Update hardcoded names affected by name mangling Issue: https://gitee.com/openharmony/multimedia_player_framework/issues/ICRDAA Description: Swap hard-coded names to API calls when interacting with ANI. Signed-off-by: Otto Eotvos Change-Id: I6953636ab64af89dd461e49bdf44d06ec041ab2f --- frameworks/taihe/BUILD.gn | 3 ++- frameworks/taihe/soundpool/src/sound_pool_taihe.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frameworks/taihe/BUILD.gn b/frameworks/taihe/BUILD.gn index 4fa083c30..1a5d4790e 100644 --- a/frameworks/taihe/BUILD.gn +++ b/frameworks/taihe/BUILD.gn @@ -120,6 +120,7 @@ taihe_shared_library("soundpool_taihe") { "media_foundation:media_foundation", "qos_manager:qos", "runtime_core:ani", + "runtime_core:ani_helpers", "window_manager:libdm", ] } @@ -260,4 +261,4 @@ group("player_framework_taihe") { "./system_sound_manager:system_sound_manager_taihe_etc", "./system_sound_manager:system_sound_manager_taihe", ] -} \ No newline at end of file +} diff --git a/frameworks/taihe/soundpool/src/sound_pool_taihe.cpp b/frameworks/taihe/soundpool/src/sound_pool_taihe.cpp index 60d6b8771..361dca71c 100644 --- a/frameworks/taihe/soundpool/src/sound_pool_taihe.cpp +++ b/frameworks/taihe/soundpool/src/sound_pool_taihe.cpp @@ -20,6 +20,7 @@ #include "media_dfx.h" #include "media_taihe_utils.h" #include "sound_pool_callback_taihe.h" +#include namespace { constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, LOG_DOMAIN_SOUNDPOOL, "SoundPoolTaihe"}; @@ -27,6 +28,7 @@ namespace { namespace ANI { namespace Media { +using namespace arkts::ani_signature; SoundPoolImpl::SoundPoolImpl(int32_t maxStreams, ohos::multimedia::audio::AudioRendererInfo const& audioRendererInfo) { -- Gitee