delay_echo was double the length in milliseconds from what it should be

This commit is contained in:
Anthony Minessale 2011-09-30 09:44:56 -05:00
parent 0a3e5d2f74
commit 3317f5d36d

View File

@ -2449,7 +2449,7 @@ SWITCH_DECLARE(void) switch_ivr_delay_echo(switch_core_session_t *session, uint3
interval = read_impl.microseconds_per_packet / 1000;
//samples = switch_samples_per_packet(read_impl.samples_per_second, interval);
qlen = delay_ms / (interval);
qlen = delay_ms / (interval) / 2;
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Setting delay to %dms (%d frames)\n", delay_ms, qlen);
jb = stfu_n_init(qlen, qlen, read_impl.samples_per_packet, read_impl.samples_per_second, 0);