* @see sound_manager_get_current_sound_type()
* @see sound_manager_unset_current_sound_type()
*/
-int sound_manager_set_current_sound_type(sound_type_e type);
+int sound_manager_set_current_sound_type(sound_type_e type) TIZEN_DEPRECATED_API;
/**
* @brief Gets the type of the sound being currently played.
int sound_manager_get_current_sound_type(sound_type_e *type);
/**
+ * @deprecated Deprecated since 3.0.
* @brief Unsets the type of the sound being currently played.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @return @c 0 on success,
* @see sound_manager_set_current_sound_type()
* @see sound_manager_get_current_sound_type()
*/
-int sound_manager_unset_current_sound_type(void);
+int sound_manager_unset_current_sound_type(void) TIZEN_DEPRECATED_API;
/**
* @brief Registers a callback function to be invoked when the volume level is changed.
* @see sound_manager_set_voip_session_mode()
* @see sound_manager_get_voip_session_mode()
*/
-int sound_manager_set_session_type(sound_session_type_e type);
+int sound_manager_set_session_type(sound_session_type_e type) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 3.0.
* @see sound_manager_set_voip_session_mode()
* @see sound_manager_get_voip_session_mode()
*/
-int sound_manager_get_session_type(sound_session_type_e *type);
+int sound_manager_get_session_type(sound_session_type_e *type) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 3.0. Use sound_manager_create_stream_information() instead.
* @see sound_manager_set_media_session_resumption_option()
* @see sound_manager_get_media_session_resumption_option()
*/
-int sound_manager_set_media_session_option(sound_session_option_for_starting_e s_option, sound_session_option_for_during_play_e d_option);
+int sound_manager_set_media_session_option(sound_session_option_for_starting_e s_option, sound_session_option_for_during_play_e d_option) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 3.0. Use sound_manager_create_stream_information() instead.
* @see sound_manager_set_media_session_resumption_option()
* @see sound_manager_get_media_session_resumption_option()
*/
-int sound_manager_get_media_session_option(sound_session_option_for_starting_e *s_option, sound_session_option_for_during_play_e *d_option);
+int sound_manager_get_media_session_option(sound_session_option_for_starting_e *s_option, sound_session_option_for_during_play_e *d_option) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 3.0. Use sound_manager_create_stream_information() instead.
* @see sound_manager_get_media_session_option()
* @see sound_manager_get_media_session_resumption_option()
*/
-int sound_manager_set_media_session_resumption_option(sound_session_option_for_resumption_e option);
+int sound_manager_set_media_session_resumption_option(sound_session_option_for_resumption_e option) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 3.0. Use sound_manager_create_stream_information() instead.
* @see sound_manager_get_media_session_option()
* @see sound_manager_set_media_session_resumption_option()
*/
-int sound_manager_get_media_session_resumption_option(sound_session_option_for_resumption_e *option);
+int sound_manager_get_media_session_resumption_option(sound_session_option_for_resumption_e *option) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 3.0. Use sound_manager_create_stream_information() instead.
* @see sound_manager_get_session_type()
* @see sound_manager_get_voip_session_mode()
*/
-int sound_manager_set_voip_session_mode(sound_session_voip_mode_e mode);
+int sound_manager_set_voip_session_mode(sound_session_voip_mode_e mode) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 3.0. Use sound_manager_create_stream_information() instead.
* @see sound_manager_get_session_type()
* @see sound_manager_set_voip_session_mode()
*/
-int sound_manager_get_voip_session_mode(sound_session_voip_mode_e *mode);
+int sound_manager_get_voip_session_mode(sound_session_voip_mode_e *mode) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 3.0. Use sound_manager_create_stream_information() instead.
* @see sound_manager_unset_session_interrupted_cb()
* @see sound_session_interrupted_cb()
*/
-int sound_manager_set_session_interrupted_cb(sound_session_interrupted_cb callback, void *user_data);
+int sound_manager_set_session_interrupted_cb(sound_session_interrupted_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 3.0.
* @retval #SOUND_MANAGER_ERROR_INTERNAL Internal error inside the sound system
* @see sound_manager_set_session_interrupted_cb()
*/
-int sound_manager_unset_session_interrupted_cb(void);
+int sound_manager_unset_session_interrupted_cb(void) TIZEN_DEPRECATED_API;
/**
* @}
{
int ret = MM_ERROR_NONE;
+ LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
if (type >= SOUND_TYPE_NUM || type < 0)
return _convert_sound_manager_error_code(__func__, MM_ERROR_INVALID_ARGUMENT);
{
int ret = MM_ERROR_NONE;
+ LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
ret = mm_sound_volume_primary_type_set(VOLUME_TYPE_UNKNOWN);
return _convert_sound_manager_error_code(__func__, ret);
int new_session = MM_SESSION_TYPE_MEDIA;
bool mic_enable = false;
+ LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed from next release. Use sound_manager_create_stream_information() instead.", __func__);
LOGI(">> enter : type=%d", type);
if (type < SOUND_SESSION_TYPE_MEDIA || type > SOUND_SESSION_TYPE_VOIP)
int ret = MM_ERROR_NONE;
int cur_session;
+ LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
if (type == NULL)
return _convert_sound_manager_error_code(__func__, MM_ERROR_INVALID_ARGUMENT);
int session_option = 0;
int updated = 0;
+ LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed from next release. Use sound_manager_create_stream_information() instead.", __func__);
LOGI(">> enter : option for starting=%d, for during play=%d", s_option, d_option);
if (s_option < 0 || s_option > SOUND_SESSION_OPTION_PAUSE_OTHERS_WHEN_START)
int session = 0;
int session_options = 0;
+ LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed from next release. Use sound_manager_create_stream_information() instead.", __func__);
LOGI(">> enter");
if (s_option == NULL || d_option == NULL)
int session_option = 0;
int updated = 0;
+ LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed from next release. Use sound_manager_create_stream_information() instead.", __func__);
LOGI(">> enter : option for resumption=%d (0:by system, 1:by system or media paused)", option);
if (option < SOUND_SESSION_OPTION_RESUMPTION_BY_SYSTEM || option > SOUND_SESSION_OPTION_RESUMPTION_BY_SYSTEM_OR_MEDIA_PAUSED)
int session = 0;
int session_options = 0;
+ LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed from next release. Use sound_manager_create_stream_information() instead.", __func__);
LOGI(">> enter");
if (option == NULL)
int session = 0;
int session_options = 0;
+ LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed from next release. Use sound_manager_create_stream_information() instead.", __func__);
LOGI(">> enter : mode=%d", mode);
ret = mm_session_get_current_information(&session, &session_options);
int session = 0;
int session_options = 0;
+ LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed from next release. Use sound_manager_create_stream_information() instead.", __func__);
if (mode == NULL) {
LOGE("mode is null");
ret = MM_ERROR_INVALID_ARGUMENT;
int ret = MM_ERROR_NONE;
unsigned int subs_id = 0;
+ LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed from next release. Use sound_manager_create_stream_information() instead.", __func__);
SM_ENTER_CRITICAL_SECTION_WITH_RETURN(&g_interrupt_cb_mutex, SOUND_MANAGER_ERROR_INTERNAL);
if (callback == NULL) {
{
int ret = MM_ERROR_NONE;
+ LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
SM_ENTER_CRITICAL_SECTION_WITH_RETURN(&g_interrupt_cb_mutex, SOUND_MANAGER_ERROR_INTERNAL);
if (!g_session_interrupt_cb_table.user_cb) {