[Freeswitch-svn] [commit] r6679 - freeswitch/trunk/src/mod/formats/mod_local_stream
Freeswitch SVN
anthm at freeswitch.org
Tue Dec 11 17:44:28 EST 2007
Author: anthm
Date: Tue Dec 11 17:44:28 2007
New Revision: 6679
Modified:
freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c
Log:
chereburm is never satisfied
Modified: freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c
==============================================================================
--- freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c (original)
+++ freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c Tue Dec 11 17:44:28 2007
@@ -63,6 +63,7 @@
int rate;
int interval;
int samples;
+ uint32_t prebuf;
char *timer_name;
local_stream_context_t *context_list;
switch_dir_t *dir_handle;
@@ -122,6 +123,8 @@
}
fname = path_buf;
+ fh.prebuf = source->prebuf;
+
if (switch_core_file_open(&fh,
(char *)fname,
source->channels,
@@ -330,6 +333,11 @@
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) {
More information about the Freeswitch-svn
mailing list