mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-26 11:47:53 +00:00
delay_echo was double the length in milliseconds from what it should be
This commit is contained in:
parent
0a3e5d2f74
commit
3317f5d36d
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user