From f15c9f8f020318bf92942fb46fd5ed6747f5f110 Mon Sep 17 00:00:00 2001 From: Giovanni Maruzzelli Date: Fri, 19 Feb 2010 01:04:14 +0000 Subject: [PATCH] skypiax:I can't understand why, but at least on my winxp 32bit if I memset 255 the audio frames to be sent when no frames have been given by channel_write_frame() but the timer_write has expired, it sounds bad. It sounds better, perfect let's say, if I resend the last frame. Go figure... git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16700 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_skypiax/skypiax_protocol.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod/endpoints/mod_skypiax/skypiax_protocol.c b/src/mod/endpoints/mod_skypiax/skypiax_protocol.c index daaff7ffb3..693240f84a 100644 --- a/src/mod/endpoints/mod_skypiax/skypiax_protocol.c +++ b/src/mod/endpoints/mod_skypiax/skypiax_protocol.c @@ -1145,9 +1145,11 @@ continue; got = SAMPLES_PER_FRAME * sizeof(short); switch_mutex_lock(tech_pvt->mutex_audio_cli); +#ifndef WIN32 if(tech_pvt->flag_audio_cli == 0){ memset(tech_pvt->audiobuf_cli, 255, sizeof(tech_pvt->audiobuf_cli)); } +#endif memcpy(cli_in, tech_pvt->audiobuf_cli, SAMPLES_PER_FRAME * sizeof(short)); tech_pvt->flag_audio_cli = 0; switch_mutex_unlock(tech_pvt->mutex_audio_cli);