Revision
16700
Author
gmaruzz
Date
2010-02-18 19:04:14 -0600 (Thu, 18 Feb 2010)

Log Message

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...

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_skypiax/skypiax_protocol.c (16699 => 16700)


--- freeswitch/trunk/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	2010-02-18 23:53:56 UTC (rev 16699)
+++ freeswitch/trunk/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	2010-02-19 01:04:14 UTC (rev 16700)
@@ -1145,9 +1145,11 @@
 
 						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);