Except system volume from ducking 33/301033/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Tue, 7 Nov 2023 08:57:35 +0000 (17:57 +0900)
committerTizen AI <ai.tzn.sec@samsung.com>
Tue, 7 Nov 2023 09:52:44 +0000 (18:52 +0900)
- 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 <stom.hwang@samsung.com>
client/vc_mgr_ducking.cpp

index bbec1d7..810997a 100644 (file)
@@ -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;