[ACR-1442] Change valid range of ratio for sound_manager_activate_ducking() 80/212380/4 accepted/tizen/unified/20190826.113215 submit/tizen/20190826.030705
authorJeongmo Yang <jm80.yang@samsung.com>
Wed, 21 Aug 2019 02:14:26 +0000 (11:14 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Thu, 22 Aug 2019 08:16:12 +0000 (17:16 +0900)
[Version] 0.5.37
[Profile] Common
[Issue Type] API change

Change-Id: I17c3aacc7a390b9424d2fb133fda5aa70bc3be86
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
include/sound_manager.h
packaging/capi-media-sound-manager.spec
src/sound_manager.c

index 422419794d56e4ccf501745728b5fa9065dfa31f..bc1a59b0b3795387d326ad439e273870f401b816 100644 (file)
@@ -563,7 +563,7 @@ int sound_manager_is_ducked(sound_stream_ducking_h stream_ducking, bool *is_duck
  *     is decreased by @a ratio for @a duration. The change is system-wide.
  * @param[in]  stream_ducking  The handle of stream ducking
  * @param[in]  duration                The duration for ducking (msec, 0 <= duration <= 3000)
- * @param[in]  ratio                   The volume ratio after ducked (0.0 < ratio < 1.0)
+ * @param[in]  ratio                   The volume ratio when ducked (0.0 <= ratio < 1.0)
  * @return @c 0 on success,
  *         otherwise a negative error value
  * @retval #SOUND_MANAGER_ERROR_NONE Success
index 3faed0dc08673215222d51a985d1c17d1c0cb56f..4a541b03f7a41c0203b2696805a3b3e3f30b94d2 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.5.36
+Version:    0.5.37
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 3734003c6b68cde396dee59c09a78dd644c2fa6a..0279a495d3cebe4870c36b0518e579ccd338499a 100644 (file)
@@ -1306,7 +1306,7 @@ int sound_manager_activate_ducking(sound_stream_ducking_h stream_ducking, unsign
        bool is_ducked = false;
        sound_stream_ducking_s *ducking = (sound_stream_ducking_s*)stream_ducking;
 
-       if (duration > 3000 || ratio >= 1.0 || ratio <= 0.0) {
+       if (duration > 3000 || ratio >= 1.0 || ratio < 0.0) {
                LOGE("Invalid params : duration(%u) or ratio(%lf)", duration, ratio);
                return SOUND_MANAGER_ERROR_INVALID_PARAMETER;
        }