From 8fd146c942b50ea300362ba39632410ef65b38bc Mon Sep 17 00:00:00 2001 From: Jeongho Mok Date: Fri, 3 Mar 2017 13:37:49 +0900 Subject: [PATCH] Modify incorrect variable names to duration_ms [Version] 0.1.14 [Profile] Common [Issue Type] Rename Change-Id: I5fd986a78421c1880b8399b2b93a9549a334873e --- packaging/capi-media-tone-player.spec | 2 +- src/tone_player.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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; -- 2.7.4