From: Moises Silva Date: Sun, 20 Mar 2011 06:04:19 +0000 (-0400) Subject: mod_portaudio: use the read timer for endpoints X-Git-Tag: v1.2-rc1~108^2~11^2~40^2~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7a58ab233aafcf754aea32f482c3655a049d0ee;p=thirdparty%2Ffreeswitch.git mod_portaudio: use the read timer for endpoints --- diff --git a/src/mod/endpoints/mod_portaudio/mod_portaudio.c b/src/mod/endpoints/mod_portaudio/mod_portaudio.c index 74ba9a76fb..e27d24b190 100644 --- a/src/mod/endpoints/mod_portaudio/mod_portaudio.c +++ b/src/mod/endpoints/mod_portaudio/mod_portaudio.c @@ -824,6 +824,7 @@ static switch_status_t channel_endpoint_read(audio_endpoint_t *endpoint, switch_ int samples = 0; if (!endpoint->in_stream) { + switch_core_timer_next(&endpoint->read_timer); *frame = &globals.cng_frame; return SWITCH_STATUS_SUCCESS; } @@ -833,6 +834,7 @@ static switch_status_t channel_endpoint_read(audio_endpoint_t *endpoint, switch_ endpoint->inchan, &endpoint->read_timer); if (!samples) { + switch_core_timer_next(&endpoint->read_timer); *frame = &globals.cng_frame; return SWITCH_STATUS_SUCCESS; }