/**
- * @deprecated Deprecated since 3.0. Use tone_player_start_with_stream_info() instead.
+ * @deprecated Deprecated since 3.0. Use tone_player_start_new() instead.
* @brief Plays a tone.
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @see sound_manager_create_stream_information()
* @see sound_manager_destroy_stream_information()
*/
+int tone_player_start_new(tone_type_e tone, sound_stream_info_h stream_info, int duration_ms, int *id);
+
+/* Note : Will be removed after migration to tone_player_start_new */
int tone_player_start_with_stream_info(tone_type_e tone, sound_stream_info_h stream_info, int duration_ms, int *id);
/**
int ret;
int player;
- DEPRECATED_WARN_INSTEAD("tone_player_start_with_stream_info");
+ DEPRECATED_WARN_INSTEAD("tone_player_start_new");
if (tone < TONE_TYPE_DEFAULT || tone > TONE_TYPE_USER_DEFINED_HIGH_FRE)
return __convert_tone_player_error_code(__func__, TONE_PLAYER_ERROR_INVALID_PARAMETER);
return __convert_tone_player_error_code(__func__, ret);
}
-int tone_player_start_with_stream_info(tone_type_e tone, sound_stream_info_h stream_info, int duration, int *id)
+int tone_player_start_new(tone_type_e tone, sound_stream_info_h stream_info, int duration, int *id)
{
int ret;
int player;
return __convert_tone_player_error_code(__func__, ret);
}
+/* Note : Will be removed after migration to tone_player_start_new */
+int tone_player_start_with_stream_info(tone_type_e tone, sound_stream_info_h stream_info, int duration, int *id)
+{
+ return tone_player_start_new(tone, stream_info, duration, id);
+}
+
+
int tone_player_stop(int id)
{
return __convert_tone_player_error_code(__func__, mm_sound_stop_sound(id));