5 #ifndef __UVOICE_EVENT_H__ 6 #define __UVOICE_EVENT_H__ 13 #define UVOICE_EV_PLAYER 0x0111 14 #define UVOICE_CODE_PLAYER_STATE 1 15 #define UVOICE_CODE_PALYER_CACHE_CPLT 2 16 #define UVOICE_CODE_PALYER_DLOAD_CPLT 3 18 #define UVOICE_EV_RECORDER 0x0112 19 #define UVOICE_CODE_RECORDER_STATE 1 21 #define UVOICE_EV_SW 0x0113 22 #define UVOICE_CODE_HEADPHONE 1 23 #define UVOICE_CODE_HEADSET 2 25 #define UVOICE_EV_ST 0x0114 26 #define UVOICE_CODE_VAD_START 1 27 #define UVOICE_CODE_VAD_END 2 28 #define UVOICE_CODE_VOICE_WAKEUP 3 30 #define UVOICE_EV_ASR_RESULT 0x0115 32 #ifdef UVOICE_EVENT_BY_BUFFER_QUEUE 38 #elif defined(UVOICE_EVENT_BY_MESSAGE_QUEUE) int uvoice_event_register(uint16_t type, uvoice_event_cb cb, void *data)
int uvoice_event_unregister(uint16_t type, uvoice_event_cb cb, void *data)
void(* uvoice_event_cb)(uvoice_event_t *event, void *data)
int uvoice_event_post(uint16_t type, uint16_t code, int value)
input_event_t uvoice_event_t