From 73d78231fcabf7af4fbf4b90dba3d11ff9bf9445 Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 11 Mar 2008 17:02:23 +0000 Subject: [PATCH] update portaudio from last commit git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7858 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_portaudio/mod_portaudio.c | 2 +- src/mod/endpoints/mod_portaudio/pablio.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod/endpoints/mod_portaudio/mod_portaudio.c b/src/mod/endpoints/mod_portaudio/mod_portaudio.c index 0328490d36..92fa81dab5 100644 --- a/src/mod/endpoints/mod_portaudio/mod_portaudio.c +++ b/src/mod/endpoints/mod_portaudio/mod_portaudio.c @@ -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)) { diff --git a/src/mod/endpoints/mod_portaudio/pablio.c b/src/mod/endpoints/mod_portaudio/pablio.c index 5154e88d52..b88b7eed4e 100644 --- a/src/mod/endpoints/mod_portaudio/pablio.c +++ b/src/mod/endpoints/mod_portaudio/pablio.c @@ -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; }