datatype tweaks.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3193 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
08442ff2c4
commit
0be391132a
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue