Modify incorrect variable names to duration_ms 17/117217/1 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0 accepted/tizen/3.0/common/20170330.125051 accepted/tizen/3.0/ivi/20170329.223038 accepted/tizen/3.0/mobile/20170329.222939 accepted/tizen/3.0/tv/20170329.222957 accepted/tizen/3.0/wearable/20170329.223018 submit/tizen_3.0/20170329.043647
authorJeongho Mok <jho.mok@samsung.com>
Fri, 3 Mar 2017 04:37:49 +0000 (13:37 +0900)
committerJeongho Mok <jho.mok@samsung.com>
Fri, 3 Mar 2017 05:40:03 +0000 (14:40 +0900)
[Version] 0.1.14
[Profile] Common
[Issue Type] Rename

Change-Id: I5fd986a78421c1880b8399b2b93a9549a334873e

packaging/capi-media-tone-player.spec
src/tone_player.c

index 43666e0..1f2a8ff 100755 (executable)
@@ -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
index 4edf16d..f1c21ef 100755 (executable)
@@ -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;