From: Suyeon Hwang Date: Tue, 7 Nov 2023 08:57:35 +0000 (+0900) Subject: Except system volume from ducking X-Git-Tag: accepted/tizen/unified/20231107.172925~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3230e822a26d2f26a9b9d2524c1194248656cb71;p=platform%2Fcore%2Fuifw%2Fvoice-control.git Except system volume from ducking - Requirement: In some uses cases, the system type audio stream should play. - Solution: This patch removes the code for ducking the system type volume. Through this change, voice control no longer reduces the system type volume. Change-Id: Ia1ec372b40301fbb8b683418943963d2266033be Signed-off-by: Suyeon Hwang --- diff --git a/client/vc_mgr_ducking.cpp b/client/vc_mgr_ducking.cpp index bbec1d7..810997a 100644 --- a/client/vc_mgr_ducking.cpp +++ b/client/vc_mgr_ducking.cpp @@ -157,10 +157,6 @@ int vc_mgr_ducking_activate(double ratio) if (SOUND_MANAGER_ERROR_NONE != ret) return ret; - ret = activate_ducking_sound_stream(SOUND_STREAM_TYPE_SYSTEM, g_system_stream_h, ratio); - if (SOUND_MANAGER_ERROR_NONE != ret) - return ret; - ret = activate_ducking_sound_stream(SOUND_STREAM_TYPE_NOTIFICATION, g_notification_stream_h, ratio); if (SOUND_MANAGER_ERROR_NONE != ret) return ret; @@ -201,10 +197,6 @@ int vc_mgr_ducking_deactivate(void) if (SOUND_MANAGER_ERROR_NONE != ret) return ret; - ret = deactivate_ducking_sound_stream(SOUND_STREAM_TYPE_SYSTEM, g_system_stream_h); - if (SOUND_MANAGER_ERROR_NONE != ret) - return ret; - ret = deactivate_ducking_sound_stream(SOUND_STREAM_TYPE_NOTIFICATION, g_notification_stream_h); if (SOUND_MANAGER_ERROR_NONE != ret) return ret;