From: Jeongho Mok Date: Fri, 3 Mar 2017 04:37:49 +0000 (+0900) Subject: Modify incorrect variable names to duration_ms X-Git-Tag: accepted/tizen/3.0/common/20170330.125051^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_3.0_tv;p=platform%2Fcore%2Fapi%2Ftone-player.git Modify incorrect variable names to duration_ms [Version] 0.1.14 [Profile] Common [Issue Type] Rename Change-Id: I5fd986a78421c1880b8399b2b93a9549a334873e --- diff --git a/packaging/capi-media-tone-player.spec b/packaging/capi-media-tone-player.spec index 43666e0..1f2a8ff 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.13 +Version: 0.1.14 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/tone_player.c b/src/tone_player.c index 4edf16d..f1c21ef 100755 --- a/src/tone_player.c +++ b/src/tone_player.c @@ -59,7 +59,7 @@ static int __convert_tone_player_error_code(const char *func, int code) return ret; } -int tone_player_start(tone_type_e tone, sound_type_e type, int duration, int *id) +int tone_player_start(tone_type_e tone, sound_type_e type, int duration_ms, int *id) { int ret; int player; @@ -69,7 +69,7 @@ int tone_player_start(tone_type_e tone, sound_type_e type, int duration, int *id if (tone < TONE_TYPE_DEFAULT || tone > TONE_TYPE_USER_DEFINED_HIGH_FRE) return __convert_tone_player_error_code(__func__, TONE_PLAYER_ERROR_INVALID_PARAMETER); - ret = mm_sound_play_tone(tone, type , 1, duration, &player); + ret = mm_sound_play_tone(tone, type , 1, duration_ms, &player); if (ret == 0 && id != NULL) *id = player; @@ -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_new(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_ms, int *id) { int ret; int player; @@ -101,7 +101,7 @@ int tone_player_start_new(tone_type_e tone, sound_stream_info_h stream_info, int if (ret) return __convert_tone_player_error_code(__func__, ret); - ret = mm_sound_play_tone_with_stream_info(tone, stream_type, stream_id, vol, duration, &player); + ret = mm_sound_play_tone_with_stream_info(tone, stream_type, stream_id, vol, duration_ms, &player); if (ret == 0 && id != NULL) *id = player;