|
esp32-audio-player 0.1.0
Audio player engine for ESP32
|
Events from the player to the application. More...
#include "audio_player/base.h"

Go to the source code of this file.
Data Structures | |
| struct | core_event_t |
Typedefs | |
| typedef void(* | core_event_sink_t) (const core_event_t *ev, void *user) |
Enumerations | |
| enum | core_event_type_t { EV_NONE = 0 , EV_PLAYER_STATE , EV_TRACK_CHANGED , EV_POSITION , EV_VOLUME , EV_QUEUE_CHANGED , EV_PLAYBACK_ERROR , EV_SLEEP_TIMER } |
Functions | |
| void | core_events_set_sink (core_event_sink_t sink, void *user) |
| void | core_event_post (const core_event_t *ev) |
| void | core_event_post_simple (core_event_type_t type, int32_t a, int32_t b) |
| void | core_event_post_text (core_event_type_t type, int32_t a, const char *text) |
Events from the player to the application.
The player calls the sink installed with core_events_set_sink() from the thread that runs player_run_once() (or from the thread that issued a command). Keep the sink short: copy the event into a queue, set a flag, or log it.
| typedef void(* core_event_sink_t) (const core_event_t *ev, void *user) |
| enum core_event_type_t |
| void core_event_post | ( | const core_event_t * | ev | ) |
| void core_event_post_simple | ( | core_event_type_t | type, |
| int32_t | a, | ||
| int32_t | b | ||
| ) |
| void core_event_post_text | ( | core_event_type_t | type, |
| int32_t | a, | ||
| const char * | text | ||
| ) |
| void core_events_set_sink | ( | core_event_sink_t | sink, |
| void * | user | ||
| ) |