Changeset 428
- Timestamp:
- May 2, 2006 5:49:31 PM (18 years ago)
- Location:
- pjproject/trunk/pjmedia
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/stream.h
r414 r428 77 77 int rx_event_pt;/**< Incoming pt for telephone-events. */ 78 78 pj_uint32_t ssrc; /**< RTP SSRC. */ 79 int jb_min; /**< Jitter buffer min delay. */ 80 int jb_max; /**< Jitter buffer max delay. */ 81 int jb_maxcnt; /**< Jitter buffer max delay. */ 79 int jb_init; /**< Jitter buffer init delay in msec. */ 80 int jb_max; /**< Jitter buffer max delay in msec. */ 82 81 }; 83 82 -
pjproject/trunk/pjmedia/src/pjmedia/session.c
r411 r428 25 25 #include <pj/assert.h> 26 26 #include <pj/ctype.h> 27 #include <pj/rand.h> 27 28 28 29 … … 335 336 336 337 337 /* Leave SSRC to zero. */ 338 /* Leave SSRC to random. */ 339 si->ssrc = pj_rand(); 338 340 339 341 /* Leave jitter buffer parameter. */ -
pjproject/trunk/pjmedia/src/pjmedia/stream.c
r420 r428 902 902 903 903 /* Create jitter buffer: */ 904 jbuf_init = 100 / (stream->port.info.samples_per_frame * 1000 / 905 info->fmt.clock_rate); 906 jbuf_max = 600 / (stream->port.info.samples_per_frame * 1000 / 907 info->fmt.clock_rate); 904 if (info->jb_init) 905 jbuf_init = info->jb_init; 906 else 907 jbuf_init = 60 / (stream->port.info.samples_per_frame * 1000 / 908 info->fmt.clock_rate); 909 910 if (info->jb_max) 911 jbuf_max = info->jb_max; 912 else 913 jbuf_max = 240 / (stream->port.info.samples_per_frame * 1000 / 914 info->fmt.clock_rate); 908 915 status = pjmedia_jbuf_create(pool, &stream->port.info.name, 909 916 stream->frame_size,
Note: See TracChangeset
for help on using the changeset viewer.