mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
FS-7501: add auto sync of jb and fps detection
This commit is contained in:
committed by
Michael Jerris
parent
d45dcb8955
commit
8e6fc031e9
@@ -415,6 +415,16 @@ SWITCH_DECLARE(void) switch_vb_reset(switch_vb_t *vb)
|
||||
switch_mutex_unlock(vb->mutex);
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_vb_set_frames(switch_vb_t *vb, uint32_t min_frame_len, uint32_t max_frame_len)
|
||||
{
|
||||
switch_mutex_lock(vb->mutex);
|
||||
vb->min_frame_len = vb->frame_len = min_frame_len;
|
||||
vb->max_frame_len = max_frame_len;
|
||||
switch_mutex_unlock(vb->mutex);
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_vb_create(switch_vb_t **vbp, uint32_t min_frame_len, uint32_t max_frame_len, switch_memory_pool_t *pool)
|
||||
{
|
||||
switch_vb_t *vb;
|
||||
|
||||
Reference in New Issue
Block a user