提交 0be39113 authored 作者: Michael Jerris's avatar Michael Jerris

datatype tweaks.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3193 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 08442ff2
......@@ -1977,7 +1977,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
while ((!caller_channel || switch_channel_ready(caller_channel)) &&
check_channel_status(peer_channels, peer_sessions, and_argc, &idx, file, key)) {
if ((to = ((time(NULL) - start) >= (time_t)timelimit_sec))) {
if ((to = (uint8_t)((time(NULL) - start) >= (time_t)timelimit_sec))) {
break;
}
......
......@@ -205,13 +205,13 @@ SWITCH_DECLARE(void) switch_change_sln_volume(int16_t *data, uint32_t samples, i
if (newrate) {
int32_t tmp;
int x;
uint32_t x;
int16_t *fp = data;
for (x = 0; x < samples; x++) {
tmp = (double) div ? fp[x] / newrate : fp[x] * newrate;
tmp = (int32_t) (div ? fp[x] / newrate : fp[x] * newrate);
switch_normalize_to_16bit(tmp);
fp[x] = tmp;
fp[x] = (int16_t)tmp;
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论