From ed9fa9de5d940c0ced5bd7ab9a134151a952d731 Mon Sep 17 00:00:00 2001 From: Seungbae Shin Date: Tue, 6 Dec 2016 22:04:21 +0900 Subject: [PATCH] Change with_stream_info API name for consistency with other pkgs [Version] 0.1.23 [Profile] Common [Issue Type] MPR-857 Change-Id: Ibca42b398add2db03ea62ee72bb27504dcf94477 --- include/wav_player.h | 5 ++++- packaging/capi-media-wav-player.spec | 2 +- src/wav_player.c | 8 +++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/include/wav_player.h b/include/wav_player.h index cc5d222..8989ea1 100644 --- a/include/wav_player.h +++ b/include/wav_player.h @@ -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); /** diff --git a/packaging/capi-media-wav-player.spec b/packaging/capi-media-wav-player.spec index d0788ac..ac2083e 100755 --- a/packaging/capi-media-wav-player.spec +++ b/packaging/capi-media-wav-player.spec @@ -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 diff --git a/src/wav_player.c b/src/wav_player.c index 2d4b96d..059c9fa 100755 --- a/src/wav_player.c +++ b/src/wav_player.c @@ -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); -- 2.7.4