FS-3910 It seems to have a problem keeping up with the realtime audio. Try this patch that introduces some prebuffering

This commit is contained in:
Anthony Minessale
2012-02-17 11:23:59 -06:00
parent 3a0cfa9aaa
commit f6941ca48f
4 changed files with 38 additions and 1 deletions

View File

@@ -1765,6 +1765,16 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_session(switch_core_session_t
return status;
}
if ((p = switch_channel_get_variable(channel, "RECORD_PRE_BUFFER_FRAMES"))) {
int tmp = atoi(p);
if (tmp > 0) {
switch_core_media_bug_set_pre_buffer_framecount(bug, tmp);
}
} else {
switch_core_media_bug_set_pre_buffer_framecount(bug, 25);
}
switch_channel_set_private(channel, file, bug);
return SWITCH_STATUS_SUCCESS;