44 #define ASSERT(a) assert(a) 157 offset = diff - jb->
tail->
ms;
228 while (frame && frame->
delivery > delivery) {
233 if (frame && (frame->
delivery == delivery ||
234 delivery < frame->delivery + frame->
ms ||
258 frame->
next = newframe;
261 next->
prev = newframe;
267 newframe->
prev = frame;
static int resynch_jb(struct fixed_jb *jb, void *data, long ms, long ts, long now)
Asterisk main include file. File version handling, generic pbx functions.
private fixed_jb structure
static void get_jb_head(struct fixed_jb *jb, struct fixed_jb_frame *frame)
int fixed_jb_remove(struct fixed_jb *jb, struct fixed_jb_frame *frameout)
static struct fixed_jb_frame * alloc_jb_frame(struct fixed_jb *jb)
struct fixed_jb_frame * next
#define FIXED_JB_SIZE_DEFAULT
All configuration options for statsd client.
struct fixed_jb_frame * frames
struct fixed_jb_conf conf
struct fixed_jb_frame * tail
int fixed_jb_get(struct fixed_jb *jb, struct fixed_jb_frame *frame, long now, long interpl)
#define FIXED_JB_RESYNCH_THRESHOLD_DEFAULT
struct fixed_jb_frame * prev
void fixed_jb_destroy(struct fixed_jb *jb)
int fixed_jb_put_first(struct fixed_jb *jb, void *data, long ms, long ts, long now)
long fixed_jb_next(struct fixed_jb *jb)
#define ast_calloc(num, len)
A wrapper for calloc()
Jitterbuffering algorithm.
void fixed_jb_set_force_resynch(struct fixed_jb *jb)
struct fixed_jb * fixed_jb_new(struct fixed_jb_conf *conf)
int fixed_jb_put(struct fixed_jb *jb, void *data, long ms, long ts, long now)
int fixed_jb_is_late(struct fixed_jb *jb, long ts)
Checks if the given time stamp is late.
static void release_jb_frame(struct fixed_jb *jb, struct fixed_jb_frame *frame)