skypiax: shorter audio buffers, sync read and write audio timers each second
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16712 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
4ce38bb4d9
commit
33b4550658
|
@ -902,7 +902,7 @@ size_t bytes_read;
|
|||
|
||||
|
||||
if (!tech_pvt->read_buffer) {
|
||||
int32_t len = 640 * 8;
|
||||
int32_t len = 640 * 2;
|
||||
|
||||
switch_buffer_create(skypiax_module_pool, &tech_pvt->read_buffer, len);
|
||||
switch_assert(tech_pvt->read_buffer);
|
||||
|
@ -1048,7 +1048,7 @@ static switch_status_t channel_write_frame(switch_core_session_t *session, switc
|
|||
#endif
|
||||
|
||||
if (!tech_pvt->write_buffer) {
|
||||
int32_t len = 320 * 8;
|
||||
int32_t len = 320 * 4;
|
||||
|
||||
switch_buffer_create(skypiax_module_pool, &tech_pvt->write_buffer, len);
|
||||
switch_assert(tech_pvt->write_buffer);
|
||||
|
|
|
@ -500,6 +500,10 @@ int skypiax_signaling_read(private_t * tech_pvt)
|
|||
if (!strcasecmp(prop, "FAILUREREASON")) {
|
||||
DEBUGA_SKYPE("Skype FAILED on skype_call %s. Let's wait for the FAILED message.\n", SKYPIAX_P_LOG, id);
|
||||
}
|
||||
if (!strcasecmp(prop, "DURATION")) { /* each second, we sync ithe timers */
|
||||
switch_core_timer_sync(&tech_pvt->timer_read);
|
||||
switch_core_timer_sync(&tech_pvt->timer_write);
|
||||
}
|
||||
if (!strcasecmp(prop, "DURATION") && (!strcasecmp(value, "1"))) {
|
||||
if (strcasecmp(id, tech_pvt->skype_call_id)) {
|
||||
skypiax_strncpy(tech_pvt->skype_call_id, id, sizeof(tech_pvt->skype_call_id) - 1);
|
||||
|
|
Loading…
Reference in New Issue