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;
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;
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;
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;