[Freeswitch-branches] [commit] r10769 - freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax

FreeSWITCH SVN gmaruzz at freeswitch.org
Mon Dec 15 08:52:02 PST 2008


Author: gmaruzz
Date: Mon Dec 15 11:52:02 2008
New Revision: 10769

Log:
skypiax: better performance on linux???

Modified:
   freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c

Modified: freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c
==============================================================================
--- freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	(original)
+++ freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	Mon Dec 15 11:52:02 2008
@@ -118,9 +118,11 @@
       fdselect = fd;
       FD_ZERO(&fs);
       FD_SET(fdselect, &fs);
-      to.tv_usec = 100;
+      to.tv_usec = 10000;
       to.tv_sec = 0;
       rt = select(fdselect + 1, &fs, NULL, NULL, &to);
+	  //usleep(1000);
+	  //rt=1;
       if (rt > 0) {
 
         len = recv(fd, srv_in, sizeof(short) * SAMPLES_PER_FRAME, 0);
@@ -283,8 +285,10 @@
       fdselect = 1;
       FD_ZERO(&fs);
       FD_SET(fdselect, &fs);
-      to.tv_usec = 100;
+      to.tv_usec = 10000;
       to.tv_sec = 0;
+      //rt = select(fdselect + 1, &fs, NULL, NULL, &to);
+	  usleep(5000);
       rt = 1;
       if (rt > 0) {
 
@@ -845,6 +849,7 @@
     b = buffer;
 
     while (1) {
+		usleep(1000);
       XNextEvent(disp, &an_event);
       if (!running)
         break;



More information about the Freeswitch-branches mailing list