[Freeswitch-svn] [commit] r7858 - freeswitch/trunk/src/mod/endpoints/mod_portaudio

Freeswitch SVN brian at freeswitch.org
Tue Mar 11 13:02:23 EDT 2008


Author: brian
Date: Tue Mar 11 13:02:23 2008
New Revision: 7858

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c
   freeswitch/trunk/src/mod/endpoints/mod_portaudio/pablio.c

Log:
update portaudio from last commit

Modified: freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c	Tue Mar 11 13:02:23 2008
@@ -552,7 +552,7 @@
 		globals.read_frame.datalen = samples * 2;
 		globals.read_frame.samples = samples;
 
-		switch_core_timer_check(&globals.timer);
+		switch_core_timer_check(&globals.timer, SWITCH_TRUE);
 		*frame = &globals.read_frame;
 
 		if (!switch_test_flag((&globals), GFLAG_MOUTH)) {

Modified: freeswitch/trunk/src/mod/endpoints/mod_portaudio/pablio.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_portaudio/pablio.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_portaudio/pablio.c	Tue Mar 11 13:02:23 2008
@@ -127,7 +127,7 @@
 		numBytes -= bytesWritten;
 		p += bytesWritten;
 		if (numBytes > 0) {
-			if (switch_core_timer_check(timer) == SWITCH_STATUS_SUCCESS) {
+			if (switch_core_timer_check(timer, SWITCH_TRUE) == SWITCH_STATUS_SUCCESS) {
 				PaUtil_FlushRingBuffer(&aStream->outFIFO);
 				return 0;
 			}
@@ -151,7 +151,7 @@
 		bytesRead = PaUtil_ReadRingBuffer(&aStream->inFIFO, p, numBytes);
 		numBytes -= bytesRead;
 		if (numBytes > 0) {
-			if (switch_core_timer_check(timer) == SWITCH_STATUS_SUCCESS) {
+			if (switch_core_timer_check(timer, SWITCH_TRUE) == SWITCH_STATUS_SUCCESS) {
 				PaUtil_FlushRingBuffer(&aStream->inFIFO);
 				return 0;
 			}



More information about the Freeswitch-svn mailing list