BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

clock.h File Reference

Media clock. More...

Data Structures

struct  pjmedia_clock_src
 
struct  pjmedia_clock_param
 

Typedefs

typedef struct pjmedia_clock pjmedia_clock
 
typedef void pjmedia_clock_callback(const pj_timestamp *ts, void *user_data)
 

Enumerations

enum  pjmedia_clock_options {
  PJMEDIA_CLOCK_NO_ASYNC = 1 ,
  PJMEDIA_CLOCK_NO_HIGHEST_PRIO = 2
}
 

Functions

pj_status_t pjmedia_clock_src_init (pjmedia_clock_src *clocksrc, pjmedia_type media_type, unsigned clock_rate, unsigned ptime_usec)
 
pj_status_t pjmedia_clock_src_update (pjmedia_clock_src *clocksrc, const pj_timestamp *timestamp)
 
pj_status_t pjmedia_clock_src_get_current_timestamp (const pjmedia_clock_src *clocksrc, pj_timestamp *timestamp)
 
pj_uint32_t pjmedia_clock_src_get_time_msec (const pjmedia_clock_src *clocksrc)
 
pj_status_t pjmedia_clock_create (pj_pool_t *pool, unsigned clock_rate, unsigned channel_count, unsigned samples_per_frame, unsigned options, pjmedia_clock_callback *cb, void *user_data, pjmedia_clock **p_clock)
 
pj_status_t pjmedia_clock_create2 (pj_pool_t *pool, const pjmedia_clock_param *param, unsigned options, pjmedia_clock_callback *cb, void *user_data, pjmedia_clock **p_clock)
 
pj_status_t pjmedia_clock_start (pjmedia_clock *clock)
 
pj_status_t pjmedia_clock_stop (pjmedia_clock *clock)
 
pj_status_t pjmedia_clock_modify (pjmedia_clock *clock, const pjmedia_clock_param *param)
 
pj_bool_t pjmedia_clock_wait (pjmedia_clock *clock, pj_bool_t wait, pj_timestamp *ts)
 
pj_status_t pjmedia_clock_destroy (pjmedia_clock *clock)
 

 


PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.