Change with_stream_info API name for consistency with other pkgs 01/102801/3 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.122248 accepted/tizen/3.0.m2/tv/20170104.122634 accepted/tizen/3.0.m2/wearable/20170104.122905 accepted/tizen/3.0/common/20161208.153648 accepted/tizen/3.0/ivi/20161208.063415 accepted/tizen/3.0/mobile/20161208.063315 accepted/tizen/3.0/tv/20161208.063348 accepted/tizen/3.0/wearable/20161208.063402 submit/tizen_3.0.m2/20170104.093749 submit/tizen_3.0/20161207.131616
authorSeungbae Shin <seungbae.shin@samsung.com>
Tue, 6 Dec 2016 13:05:08 +0000 (22:05 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Wed, 7 Dec 2016 12:19:33 +0000 (21:19 +0900)
[Version] 0.1.12
[Profile] Common
[Issue Type] MPR-857

Change-Id: I0cbd05a6fe45fc1cae95db4ba01d413488efabe4

include/tone_player.h
packaging/capi-media-tone-player.spec
src/tone_player.c

index 05d2e1d..fded30d 100755 (executable)
@@ -182,7 +182,7 @@ typedef enum {
 
 
 /**
- * @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
@@ -230,6 +230,9 @@ int tone_player_start(tone_type_e tone, sound_type_e type, int duration_ms, int
  * @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);
 
 /**
index ada800f..8d2b412 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-tone-player
 Summary:    A tone player library in Tizen C API
-Version:    0.1.11
+Version:    0.1.12
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 6edf40a..bca6f85 100755 (executable)
@@ -64,7 +64,7 @@ int tone_player_start(tone_type_e tone, sound_type_e type, int duration, 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);
@@ -77,7 +77,7 @@ int tone_player_start(tone_type_e tone, sound_type_e type, int duration, int *id
        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;
@@ -108,6 +108,13 @@ int tone_player_start_with_stream_info(tone_type_e tone, sound_stream_info_h str
        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));