git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@964 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2006-03-29 22:16:06 +00:00
parent 9ed06edb96
commit e3d0adb850
2 changed files with 15 additions and 14 deletions
@@ -32,7 +32,7 @@
#ifndef HAVE_CURL
#define HAVE_CURL
#endif
#define JS_BUFFER_SIZE 131072
#include <switch.h>
#include "jstypes.h"
@@ -1523,7 +1523,7 @@ static JSBool teletone_construct(JSContext *cx, JSObject *obj, uintN argc, jsval
}
}
switch_buffer_create(pool, &tto->audio_buffer, SWITCH_RECCOMMENDED_BUFFER_SIZE);
switch_buffer_create(pool, &tto->audio_buffer, JS_BUFFER_SIZE);
tto->pool = pool;
tto->obj = obj;
tto->cx = cx;
@@ -1604,7 +1604,7 @@ static JSBool teletone_generate(JSContext *cx, JSObject *obj, uintN argc, jsval
}
loops--;
if (!tto->loop_buffer) {
switch_buffer_create(tto->pool, &tto->loop_buffer, SWITCH_RECCOMMENDED_BUFFER_SIZE);
switch_buffer_create(tto->pool, &tto->loop_buffer, JS_BUFFER_SIZE);
}
}
@@ -1633,6 +1633,7 @@ static JSBool teletone_generate(JSContext *cx, JSObject *obj, uintN argc, jsval
}
for(;;) {
if (switch_test_flag(tto, TTF_DTMF)) {
char dtmf[128];
char code[512];
@@ -1677,7 +1678,7 @@ static JSBool teletone_generate(JSContext *cx, JSObject *obj, uintN argc, jsval
break;
}
} else {
break;
continue;
}
}