From: Seungbae Shin Date: Tue, 6 Dec 2016 13:05:08 +0000 (+0900) Subject: Change with_stream_info API name for consistency with other pkgs X-Git-Tag: submit/tizen_3.0/20161207.131616^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_3.0.m2_wearable;p=platform%2Fcore%2Fapi%2Ftone-player.git Change with_stream_info API name for consistency with other pkgs [Version] 0.1.12 [Profile] Common [Issue Type] MPR-857 Change-Id: I0cbd05a6fe45fc1cae95db4ba01d413488efabe4 --- diff --git a/include/tone_player.h b/include/tone_player.h index 05d2e1d..fded30d 100755 --- a/include/tone_player.h +++ b/include/tone_player.h @@ -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); /** diff --git a/packaging/capi-media-tone-player.spec b/packaging/capi-media-tone-player.spec index ada800f..8d2b412 100755 --- a/packaging/capi-media-tone-player.spec +++ b/packaging/capi-media-tone-player.spec @@ -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 diff --git a/src/tone_player.c b/src/tone_player.c index 6edf40a..bca6f85 100755 --- a/src/tone_player.c +++ b/src/tone_player.c @@ -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));