Change with_stream_info API name for consistency with other pkgs 97/103297/1 accepted/tizen/common/20161208.135500 accepted/tizen/ivi/20161209.005415 accepted/tizen/mobile/20161209.005317 accepted/tizen/tv/20161209.005332 accepted/tizen/unified/20170309.032203 accepted/tizen/wearable/20161209.005355 submit/tizen/20161208.052043 submit/tizen_unified/20170308.100405
authorSeungbae Shin <seungbae.shin@samsung.com>
Tue, 6 Dec 2016 13:05:08 +0000 (22:05 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Thu, 8 Dec 2016 03:45:31 +0000 (19:45 -0800)
[Version] 0.1.12
[Profile] Common
[Issue Type] MPR-857

Change-Id: I0cbd05a6fe45fc1cae95db4ba01d413488efabe4
(cherry picked from commit 7ba6faf348e26d9bd88b42ed1fc7c8389eb8b0e6)

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));