a-mediastreamer2
5.2.0
|
Ticker API to manage mediastreamer2 graphs. More...
Typedefs | |
typedef uint64_t(* | MSTickerTimeFunc) (void *) |
typedef struct _MSTickerTask | MSTickerTask |
typedef struct _MSTicker | MSTicker |
Functions | |
MSTicker * | ms_ticker_new (void) |
MSTicker * | ms_ticker_new_withname (const char *name) |
void | ms_ticker_set_name (MSTicker *ticker, const char *name) |
int | ms_ticker_attach (MSTicker *ticker, MSFilter *f) |
int | ms_ticker_detach (MSTicker *ticker, MSFilter *f) |
void | ms_ticker_destroy (MSTicker *ticker) |
void | ms_ticker_set_time_func (MSTicker *ticker, MSTickerTimeFunc func, void *user_data) |
void | ms_ticker_print_graphs (MSTicker *ticker) |
uint64_t | ms_timems_get (void *unused) |
uint64_t | ms_timeus_get (void) |
Ticker API to manage mediastreamer2 graphs.
This file provide the API needed to create, start and stop a graph.
MSTickerTimeFunc |
Structure for method getting time in miliseconds from an external source.
Structure for task object in a ticker.
Structure for ticker object.
MSTicker* ms_ticker_new | ( | void | ) |
Create a ticker that will be used to start and stop a graph.
Returns: MSTicker * if successful, NULL otherwise.
MSTicker* ms_ticker_new_withname | ( | const char * | name | ) |
Create a ticker that will be used to start and stop a graph.
Returns: MSTicker * if successful, NULL otherwise.
void ms_ticker_set_name | ( | MSTicker * | ticker, |
const char * | name | ||
) |
Set a name to the ticker (used for logging)
void ms_ticker_set_time_func | ( | MSTicker * | ticker, |
MSTickerTimeFunc | func, | ||
void * | user_data | ||
) |
Override MSTicker's time function. This can be used to control the ticker from an external time provider, for example the clock of a sound card.
ticker | A MSTicker object. |
func | A replacement method for calculating "current time" |
user_data | Any pointer to user private data. |
void ms_ticker_print_graphs | ( | MSTicker * | ticker | ) |
Print on stdout all filters of a ticker. (INTERNAL: DO NOT USE)
ticker | A MSTicker object. |
uint64_t ms_timems_get | ( | void * | unused | ) |
Get time in ms
unused | unused parameter |
uint64_t ms_timeus_get | ( | void | ) |
Get time in us
unused | unused parameter |