int rate;
int interval;
int samples;
+ uint32_t prebuf;
char *timer_name;
local_stream_context_t *context_list;
switch_dir_t *dir_handle;
}
fname = path_buf;
+ fh.prebuf = source->prebuf;
+
if (switch_core_file_open(&fh,
(char *)fname,
source->channels,
if (tmp == 8000 || tmp == 16000) {
source->rate = tmp;
}
+ } else if (!strcasecmp(var, "prebuf")) {
+ int tmp = atoi(val);
+ if (tmp > 0) {
+ source->prebuf = (uint32_t) tmp;
+ }
} else if (!strcasecmp(var, "channels")) {
int tmp = atoi(val);
if (tmp == 1 || tmp == 2) {