*/
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.
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;