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

FreeSWITCH SVN gmaruzz at freeswitch.org
Thu Dec 4 04:31:37 PST 2008


Author: gmaruzz
Date: Thu Dec  4 07:31:37 2008
New Revision: 10592

Log:
skypiax: on linux, the problem with tcp_srv_thread audio seems solved, let's see in win32

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

Modified: freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/mod_skypiax.c
==============================================================================
--- freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/mod_skypiax.c	(original)
+++ freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/mod_skypiax.c	Thu Dec  4 07:31:37 2008
@@ -34,8 +34,8 @@
  *
  */
 
-#define WIN32_SKYPIAX
-#define __CYGWIN__
+#undef WIN32_SKYPIAX
+#undef __CYGWIN__
 #define MOD_SKYPIAX
 #ifdef MOD_SKYPIAX
 
@@ -758,12 +758,13 @@
           p->audiobuf_is_loaded = 1;
         } else {
 			unsigned int howmany;
-            short totalbuf[320];
+            short totalbuf[GG];
 
-			howmany = len/2;
+			howmany = len/2/2;
             for(i=0; i<howmany; i++)
                 totalbuf[i] = p->audiobuf[i];
 
+			howmany = len/2/2;
             for(a=0; a<howmany; a++){
                 totalbuf[i] = out[a];
                 i++;
@@ -775,7 +776,7 @@
 			//howmany = len/2;
           //switch_file_write(p->audiopipe[1], out, &howmany);
           p->audiobuf_is_loaded = 0;
-          //DEBUGA_SOUND("read=====> req=%d recv=%d to sent=%d sent=%d\n", SKYPIAX_P_LOG, sizeof(short)*GG, len, (len*sizeof(short))/2, sent);
+          //DEBUGA_SKYPE("read=====> req=%d recv=%d to sent=%d sent=%d\n", SKYPIAX_P_LOG, sizeof(short)*GG, len, (len*sizeof(short))/2, howmany);
         }
 
       } else if (len == 0) {



More information about the Freeswitch-branches mailing list