forked from Mirrors/freeswitch
skypiax: timers twiking
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16550 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
17e5ba1e23
commit
0d44caaaaa
|
@ -691,7 +691,7 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
|
|||
tech_pvt->read_frame.flags = SFF_NONE;
|
||||
*frame = NULL;
|
||||
|
||||
switch_core_timer_next(&tech_pvt->timer_read);
|
||||
//switch_core_timer_next(&tech_pvt->timer_read);
|
||||
|
||||
if (!skypiax_audio_read(tech_pvt)) {
|
||||
|
||||
|
@ -719,6 +719,7 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
|
|||
DEBUGA_SKYPE("CHANNEL READ CONTINUE\n", SKYPIAX_P_LOG);
|
||||
continue;
|
||||
}
|
||||
switch_core_timer_check(&tech_pvt->timer_read, SWITCH_TRUE);
|
||||
*frame = &tech_pvt->read_frame;
|
||||
#if SWITCH_BYTE_ORDER == __BIG_ENDIAN
|
||||
if (switch_test_flag(tech_pvt, TFLAG_LINEAR)) {
|
||||
|
|
|
@ -1101,7 +1101,7 @@ void *skypiax_do_tcp_cli_thread_func(void *obj)
|
|||
/* send the 16khz frame to the Skype client waiting for incoming audio to be sent to the remote party */
|
||||
if (tech_pvt->skype_callflow != CALLFLOW_STATUS_REMOTEHOLD) {
|
||||
len = send(fd, (char *) cli_out, got, 0);
|
||||
skypiax_sleep(5000); //5 msec
|
||||
//skypiax_sleep(5000); //5 msec
|
||||
|
||||
if (len == -1) {
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue