return -1;
}
- if (TONE_PLAYER_ERROR_NONE != tone_player_start_with_stream_info(TONE_TYPE_ANSI_RINGTONE, ringer_handle->ringtone_stream_handle , -1, &ringer_handle->ringback_tone_play_handle)) {
- err("Error tone_player_start_with_stream_info");
+ if (TONE_PLAYER_ERROR_NONE != tone_player_start_new(TONE_TYPE_ANSI_RINGTONE, ringer_handle->ringtone_stream_handle , -1, &ringer_handle->ringback_tone_play_handle)) {
+ err("tone_player_start_new() is failed");
ringer_handle->ringback_tone_play_handle = -1;
return -1;
}
return -1;
}
- ret = tone_player_start_with_stream_info(TONE_TYPE_SUP_CALL_WAITING, ringer_handle->ringtone_stream_handle, 4000, &ringer_handle->alternate_tone_handle);
+ ret = tone_player_start_new(TONE_TYPE_SUP_CALL_WAITING, ringer_handle->ringtone_stream_handle, 4000, &ringer_handle->alternate_tone_handle);
if (ret != TONE_PLAYER_ERROR_NONE) {
- err("tone_player_start_with_stream_info() failed");
+ err("tone_player_start_new() is failed");
return -1;
}
- info("tone_player_start_with_stream_info done");
+ info("_callmgr_ringer_start_alternate_tone() is done");
ringer_handle->current_status = CM_RINGER_STATUS_RINGING_E;
ringer_handle->waiting_tone_timer = g_timeout_add(CALLMGR_2ND_CALL_BEEP_INTERVAL, __callmgr_waiting_tone_play_end_cb, (gpointer)ringer_handle);
return -1;
}
- ret = wav_player_start_with_stream_info((const char *)effect_path, ringer_handle->ringtone_stream_handle, __callmgr_ringer_play_effect_finish_cb, (void *)ringer_handle, &(ringer_handle->play_effect_handle));
+ ret = wav_player_start_new((const char *)effect_path, ringer_handle->ringtone_stream_handle, __callmgr_ringer_play_effect_finish_cb, (void *)ringer_handle, &(ringer_handle->play_effect_handle));
if (ret != WAV_PLAYER_ERROR_NONE) {
- err("wav_player_start_with_stream_info failed:[%d]", ret);
+ err("wav_player_start_new() is failed:[%d][%s]", ret, get_error_message(ret));
g_free(effect_path);
return -1;
}
switch (signal_type) {
case CM_RINGER_SIGNAL_USER_BUSY_TONE_E:
- ret = tone_player_start_with_stream_info(TONE_TYPE_SUP_BUSY, ringer_handle->ringtone_stream_handle, 5000, &ringer_handle->signal_play_handle);
+ ret = tone_player_start_new(TONE_TYPE_SUP_BUSY, ringer_handle->ringtone_stream_handle, 5000, &ringer_handle->signal_play_handle);
break;
case CM_RINGER_SIGNAL_WRONG_NUMBER_TONE_E:
case CM_RINGER_SIGNAL_CALL_FAIL_TONE_E:
- ret = tone_player_start_with_stream_info(TONE_TYPE_SUP_ERROR, ringer_handle->ringtone_stream_handle, 2000, &ringer_handle->signal_play_handle);
+ ret = tone_player_start_new(TONE_TYPE_SUP_ERROR, ringer_handle->ringtone_stream_handle, 2000, &ringer_handle->signal_play_handle);
break;
case CM_RINGER_SIGNAL_NW_CONGESTION_TONE_E:
- ret = tone_player_start_with_stream_info(TONE_TYPE_SUP_CONGESTION, ringer_handle->ringtone_stream_handle, 2000, &ringer_handle->signal_play_handle);
+ ret = tone_player_start_new(TONE_TYPE_SUP_CONGESTION, ringer_handle->ringtone_stream_handle, 2000, &ringer_handle->signal_play_handle);
break;
default:
err("Invalid Signal Type");