Revision
16675
Author
gmaruzz
Date
2010-02-17 05:29:31 -0600 (Wed, 17 Feb 2010)

Log Message

skypiax: cleaning some debug print leftover

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_skypiax/skypiax_protocol.c (16674 => 16675)


--- freeswitch/trunk/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	2010-02-17 09:50:13 UTC (rev 16674)
+++ freeswitch/trunk/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	2010-02-17 11:29:31 UTC (rev 16675)
@@ -833,7 +833,7 @@
 						if (len == 320) {
 							unsigned int howmany;
 
-								NOTICA("320!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n", SKYPIAX_P_LOG);
+								DEBUGA_SKYPE("320!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n", SKYPIAX_P_LOG);
 							if (samplerate_skypiax == 8000) {
 								/* we're downsampling from 16khz to 8khz, srv_out will contain each other sample from srv_in */
 								a = 0;
@@ -919,7 +919,7 @@
 						} else if (len == 0) {
 							skypiax_sleep(1000);
 						} else {
-							ERRORA("len=%d, expected 640\n", SKYPIAX_P_LOG, len);
+							DEBUGA_SKYPE("len=%d, expected 640\n", SKYPIAX_P_LOG, len);
 						}
 
 					} else {
@@ -1227,7 +1227,7 @@
 {
 	unsigned int samples;
 	int waitin;
-	int max_waitin=20;
+	int max_waitin=30;
 
 	waitin=0;
 	while (tech_pvt->flag_audio_srv == 0) {
@@ -1239,13 +1239,13 @@
 		waitin++;
 
 		if(waitin == max_waitin){
-		ERRORA("read is now %d\n", SKYPIAX_P_LOG, waitin);
+			DEBUGA_SKYPE("read is now at max_waitin: %d\n", SKYPIAX_P_LOG, waitin);
 			break;
 		}
 		//WARNINGA("read now is 0\n", SKYPIAX_P_LOG);
 	}
-	if(waitin > 10){
-		//ERRORA("read is now %d\n", SKYPIAX_P_LOG, waitin);
+	if(waitin > 22){
+		DEBUGA_SKYPE("read is now %d\n", SKYPIAX_P_LOG, waitin);
 	}
 	//samples = skypiax_pipe_read(tech_pvt->audiopipe_srv[0], tech_pvt->read_frame.data, SAMPLES_PER_FRAME * sizeof(short));
 			switch_mutex_lock(tech_pvt->mutex_audio_srv);