Add internal function - sound_manager_disable_session_backward_compatibility() 82/113382/2 accepted/tizen/3.0/common/20170210.071149 accepted/tizen/3.0/ivi/20170210.002007 accepted/tizen/3.0/mobile/20170210.001859 accepted/tizen/3.0/tv/20170210.001936 accepted/tizen/3.0/wearable/20170210.001959 submit/tizen_3.0/20170208.084721
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 7 Feb 2017 08:52:11 +0000 (17:52 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 8 Feb 2017 01:04:57 +0000 (10:04 +0900)
Add an internal API to disable session backward compatibility.

[Version] 0.3.97
[Profile] Common
[Issue Type] Backward compatibility

Change-Id: I186e7358d94dfd8e408f865fb35470fe495357bb
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
include/sound_manager_internal.h
packaging/capi-media-sound-manager.spec
src/sound_manager_internal.c

index 90c5a451ef146df366a50a98c95edafb88c163b2..80b826312ba069cd1a372c8d7cfef59c585785e2 100644 (file)
@@ -235,6 +235,23 @@ int sound_manager_get_index_from_stream_information(sound_stream_info_h stream_i
  */
 int sound_manager_get_internal_voip_stream_information(sound_stream_info_h *stream_info);
 
+/**
+ * @internal
+ * @brief Disable session backward compatibility.
+ * @since_tizen 3.0
+ *
+ * @remarks    Multimedia framework support backward compatibility of legacy sound session. \n
+ *     If a process does not want legacy sound session behavior in each multimedia framework, \n
+ *     this function can be used explicitly not to support that.
+ *
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ * @retval #SOUND_MANAGER_ERROR_NONE Success
+ * @retval #SOUND_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #SOUND_MANAGER_ERROR_INTERNAL Internal error inside the sound system
+ */
+int sound_manager_disable_session_backward_compatibility(void);
+
 /**
  * @internal
  * @brief Creates a virtual stream handle.
index cd98d7a673f3c94b38c9bdfda4e5b2f2699896f2..4508fe3b81378aec1e2d5f462e05cb5dbe5c412a 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.3.96
+Version:    0.3.97
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 192c618afc2b81e7673a9c1b782e278ba5126c10..3499ac39fdcc3ef1d96521ba0e9c61410ca87cca 100644 (file)
@@ -185,6 +185,17 @@ int sound_manager_get_internal_voip_stream_information(sound_stream_info_h *stre
        return SOUND_MANAGER_ERROR_NONE;
 }
 
+int sound_manager_disable_session_backward_compatibility(void)
+{
+       int ret = MM_ERROR_NONE;
+
+       ret = mm_sound_send_signal(MM_SOUND_SIGNAL_RELEASE_INTERNAL_FOCUS, 1);
+
+       LOGW("Declared not to have session backward compatibility in this process[%u]", getpid());
+
+       return _convert_sound_manager_error_code(__func__, ret);
+}
+
 int sound_manager_create_virtual_stream(sound_stream_info_h stream_info, virtual_sound_stream_h *virtual_stream)
 {
        int ret = MM_ERROR_NONE;