36#ifndef __INCLUDE_AUDIOLITE_EVENT_LISTENER_H
37#define __INCLUDE_AUDIOLITE_EVENT_LISTENER_H
39#include <nuttx/config.h>
40#include <audiolite/al_component.h>
46#define AL_EVENT_OVERFLOW (-1)
47#define AL_EVENT_UNDERFLOW (-2)
48#define AL_EVENT_ILLIGALSTREAM (-3)
49#define AL_EVENT_UNSUPPORTFMT (-4)
50#define AL_EVENT_DECODEDONE (-5)
51#define AL_EVENT_STREAMDONE (-6)
52#define AL_EVENT_PLAYSTARTED (-7)
53#define AL_EVENT_PLAYSTOPPED (-8)
54#define AL_EVENT_RECORDSTARTED (-9)
55#define AL_EVENT_RECORDSTOPPED (-10)
56#define AL_EVENT_PLAYPAUSED (-11)
57#define AL_EVENT_PLAYRESUMED (-12)
58#define AL_EVENT_RECORDPAUSED (-13)
59#define AL_EVENT_RECORDRESUMED (-14)
60#define AL_EVENT_DRVERROR (-15)
61#define AL_EVENT_INVALIDSYSPARAM (-16)
62#define AL_EVENT_STOPOUTPUT (-17)
63#define AL_EVENT_STOPINPUT (-18)
64#define AL_EVENT_INITERROR (-19)
65#define AL_EVENT_SENDERROR (-20)
66#define AL_EVENT_MP3FRAMEINFO (-21)
67#define AL_EVENT_MP3DECWORKEREND (-22)
68#define AL_EVENT_UNKNOWN (-23)
69#define AL_EVENT_MP3DECERROR (-24)
70#define AL_EVENT_MP3DEC_WRONGTYPE (-25)
71#define AL_EVENT_WRONGVERSION (-26)
79const char *audiolite_strevent(
int evt);
107 printf(
"AudioLite Event %s is happened : %d\n",
108 audiolite_strevent(evt), (
int)arg);
Definition: al_component.h:58
Definition: al_eventlistener.h:90
Definition: al_eventlistener.h:102