diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-01-31 08:11:30 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-01-31 08:11:30 +0000 |
commit | efac21464fa1e1d1d9ed34d46dc088bcedb19a06 (patch) | |
tree | f65f0794baee3719cb08accf751b941d2641d269 /pjmedia/include | |
parent | 920663005689e0776d893e69cef14ea6a35fcc59 (diff) |
Ticket #464: jitter buffer should return frame length information
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1761 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r-- | pjmedia/include/pjmedia/jbuf.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia/jbuf.h b/pjmedia/include/pjmedia/jbuf.h index 8d78579a..8a06a64b 100644 --- a/pjmedia/include/pjmedia/jbuf.h +++ b/pjmedia/include/pjmedia/jbuf.h @@ -235,6 +235,22 @@ PJ_DECL(void) pjmedia_jbuf_get_frame( pjmedia_jbuf *jb, void *frame, char *p_frm_type); +/** + * Get a frame from the jitter buffer. The jitter buffer will return the + * oldest frame from it's buffer, when it is available. + * + * @param jb The jitter buffer. + * @param frame Buffer to receive the payload from the jitter buffer. + * @see pjmedia_jbuf_get_frame(). + * @param size Pointer to receive frame size. + * @param p_frm_type Pointer to receive frame type. + * @see pjmedia_jbuf_get_frame(). + */ +PJ_DECL(void) pjmedia_jbuf_get_frame2(pjmedia_jbuf *jb, + void *frame, + pj_size_t *size, + char *p_frm_type); + /** * Get jitter buffer current state/settings. |