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
This commit is contained in:
Giovanni Maruzzelli 2010-02-19 01:04:14 +00:00
parent 6fee14c327
commit f15c9f8f02
1 changed files with 2 additions and 0 deletions

View File

@ -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);