Updated: October 28, 2024 |
Details for an mm-renderer event
#include <mm/renderer/events.h>
union mmr_event_details { struct mmr_event_state { mmr_state_t oldstate; int oldspeed; } state; struct mmr_event_error { mmr_error_info_t info; } error; struct mmr_event_warning { const char *str; const strm_string_t *obj; } warning; struct mmr_event_metadata { unsigned index; } metadata; struct mmr_event_trkparam { unsigned index; } trkparam; struct mmr_event_playlist { unsigned start; unsigned end; unsigned length; } playlist; struct mmr_event_output { unsigned id; } output; } details;
The mmr_event_state structure has these members:
The mmr_event_error structure has these members:
The mmr_event_warning structure has these members:
The mmr_event_metadata structure has these members:
The mmr_event_trkparam structure has these members:
The mmr_event_playlist structure has these members:
The mmr_event_output structure has these members:
The details field contains information specific to an event type. This field is a union; the descriptions of each structure that can be stored in it indicate the event type for which the structure is used.
For many events, additional information is kept in the data field of the mmr_event_t structure. The table that summarizes the possible contents of the data field by event type also lists the corresponding structure kept in details (if any).