Ejemplo n.º 1
0
enum jb_return_code jb_get(jitterbuf *jb, jb_frame *frameout, long now, long interpl)
{
	enum jb_return_code ret = _jb_get(jb, frameout, now, interpl);
#if 0
	static int lastts=0;
	int thists = ((ret == JB_OK) || (ret == JB_DROP)) ? frameout->ts : 0;
	jb_warn("jb_get(%x,%x,%ld) = %d (%d)\n", jb, frameout, now, ret, thists);
	if (thists && thists < lastts) jb_warn("XXXX timestamp roll-back!!!\n");
	lastts = thists;
#endif
	return ret;
}
Ejemplo n.º 2
0
int jb_get(jitterbuf *jb, jb_frame *frameout, long now, long interpl) 
{
	int ret = _jb_get(jb,frameout,now,interpl);
#if 0
	static int lastts=0;
	int thists = ((ret == JB_OK) || (ret == JB_DROP)) ? frameout->ts : 0;
	jb_warn("jb_get(%x,%x,%ld) = %d (%d)\n", jb, frameout, now, ret, thists);
	if (thists && thists < lastts) jb_warn("XXXX timestamp roll-back!!!\n");
	lastts = thists;
#endif
	if(ret == JB_INTERP) 
		frameout->ms = jb->info.last_voice_ms;
	
	return ret;
}