Change with_stream_info API name for consistency with other pkgs 96/103296/1 accepted/tizen/common/20161208.135503 accepted/tizen/ivi/20161209.005416 accepted/tizen/mobile/20161209.005319 accepted/tizen/tv/20161209.005333 accepted/tizen/unified/20170309.032159 accepted/tizen/wearable/20161209.005356 submit/tizen/20161208.052043 submit/tizen_unified/20170308.100405
authorSeungbae Shin <seungbae.shin@samsung.com>
Tue, 6 Dec 2016 13:04:21 +0000 (22:04 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Thu, 8 Dec 2016 03:45:19 +0000 (19:45 -0800)
[Version] 0.1.23
[Profile] Common
[Issue Type] MPR-857

Change-Id: Ibca42b398add2db03ea62ee72bb27504dcf94477
(cherry picked from commit ed9fa9de5d940c0ced5bd7ab9a134151a952d731)

include/wav_player.h
packaging/capi-media-wav-player.spec
src/wav_player.c

index cc5d222..8989ea1 100644 (file)
@@ -74,7 +74,7 @@ typedef void (*wav_player_playback_completed_cb)(int id, void *user_data);
 
 
 /**
- * @deprecated Deprecated since 3.0. Use wav_player_start_with_stream_info() instead.
+ * @deprecated Deprecated since 3.0. Use wav_player_start_new() instead.
  * @brief Plays a WAV file.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  *
@@ -126,6 +126,9 @@ int wav_player_start(const char *path, sound_type_e type, wav_player_playback_co
  * @see sound_manager_create_stream_information()
  * @see sound_manager_destroy_stream_information()
  */
+int wav_player_start_new(const char *path, sound_stream_info_h stream_info, wav_player_playback_completed_cb callback, void *user_data, int *id);
+
+/* Note : Will be removed after migration to wav_player_start_new */
 int wav_player_start_with_stream_info(const char *path, sound_stream_info_h stream_info, wav_player_playback_completed_cb callback, void *user_data, int *id);
 
 /**
index d0788ac..ac2083e 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-wav-player
 Summary:    A wav player library in Tizen C API
-Version:    0.1.22
+Version:    0.1.23
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 2d4b96d..059c9fa 100755 (executable)
@@ -42,7 +42,7 @@ int wav_player_start(const char *path, sound_type_e type, wav_player_playback_co
        _completed_cb = NULL;
        _cb_data *cb_data = NULL;
 
-       DEPRECATED_WARN_INSTEAD("wav_player_start_with_stream_info");
+       DEPRECATED_WARN_INSTEAD("wav_player_start_new");
 
        if (path == NULL)
                return _convert_wav_player_error_code(__func__, WAV_PLAYER_ERROR_INVALID_PARAMETER);
@@ -76,6 +76,12 @@ int wav_player_start(const char *path, sound_type_e type, wav_player_playback_co
        return _convert_wav_player_error_code(__func__, ret);
 }
 
+int wav_player_start_new(const char *path, sound_stream_info_h stream_info, wav_player_playback_completed_cb callback, void *user_data, int *id)
+{
+       return _start_with_stream_info(path, stream_info, 1, callback, user_data, id);
+}
+
+/* Note : Will be removed after migration to wav_player_start_new */
 int wav_player_start_with_stream_info(const char *path, sound_stream_info_h stream_info, wav_player_playback_completed_cb callback, void *user_data, int *id)
 {
        return _start_with_stream_info(path, stream_info, 1, callback, user_data, id);