]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update portaudio from last commit
authorBrian West <brian@freeswitch.org>
Tue, 11 Mar 2008 17:02:23 +0000 (17:02 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 11 Mar 2008 17:02:23 +0000 (17:02 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7858 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_portaudio/mod_portaudio.c
src/mod/endpoints/mod_portaudio/pablio.c

index 0328490d36761d1a53e8e6e0863d2c203f334e4a..92fa81dab5a847d7f16b7db09ac700d38e5cc426 100644 (file)
@@ -552,7 +552,7 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
                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)) {
index 5154e88d5231942d3ccb897f98a425e710eec1a8..b88b7eed4ebbb23ad4cac70e8965b3f98dab5223 100644 (file)
@@ -127,7 +127,7 @@ long WriteAudioStream(PABLIO_Stream * aStream, void *data, long numFrames, switc
                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 @@ long ReadAudioStream(PABLIO_Stream * aStream, void *data, long numFrames, switch
                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;
                        }