A muxer and its methods.
More...
#include <stdint.h>
#include "event_generator.h"
Go to the source code of this file.
◆ actf_muxer_init()
Initialize a muxer.
A muxer multiplexes the events of its generators in a time-ordered fashion based on their timestamp in nanoseconds from origin.
The generators must be kept available by the caller until it no longer wants to use the muxer.
- Parameters
-
| gens | the generators to multiplex |
| gens_len | the number of generators |
| evs_cap | the max event array capacity. If zero, ACTF_DEFAULT_EVS_CAP will be used. |
- Returns
- a muxer or NULL with errno set. A returned muxer should be freed with actf_muxer_free().
◆ actf_muxer_mux()
◆ actf_muxer_seek_ns_from_origin()
| int actf_muxer_seek_ns_from_origin |
( |
actf_muxer * | m, |
|
|
int64_t | tstamp ) |
◆ actf_muxer_last_error()
| const char * actf_muxer_last_error |
( |
actf_muxer * | m | ) |
|
◆ actf_muxer_free()
◆ actf_muxer_to_generator()
Create an event generator based on a muxer.
The muxer is owned by the caller and must be kept alive as long as the event generator is in use.
- Parameters
-
- Returns
- an event generator