36#ifndef __AUDIOLITE_INCLUDE_ALWORKER_COMM_H
37#define __AUDIOLITE_INCLUDE_ALWORKER_COMM_H
48#ifndef BUILD_TGT_ASMPWORKER
57#define AL_COMM_MESSAGE_NONE (0)
58#define AL_COMM_MESSAGE_SYS (1)
59#define AL_COMM_MESSAGE_FMEM (2)
60#define AL_COMM_MESSAGE_OMEM (3)
61#define AL_COMM_MESSAGE_INST (4)
63#define AL_COMM_MSGTYPE_NONE (0)
64#define AL_COMM_MSGTYPE_ASYNC (1)
65#define AL_COMM_MSGTYPE_SYNC (2)
67#define AL_COMM_MSGCODESYS_NONE (0)
68#define AL_COMM_MSGCODESYS_STOP (1)
69#define AL_COMM_MSGCODESYS_PAUSE (2)
70#define AL_COMM_MSGCODESYS_PLAY (3)
71#define AL_COMM_MSGCODESYS_BOOT (4)
72#define AL_COMM_MSGCODESYS_TERM (5)
73#define AL_COMM_MSGCODESYS_PARAM (6)
74#define AL_COMM_MSGCODESYS_ERR (7)
75#define AL_COMM_MSGCODESYS_DBG (8)
77#define AL_COMM_MSGCODEINST_NONE (0)
78#define AL_COMM_MSGCODEINST_START (1)
79#define AL_COMM_MSGCODEINST_STOP (2)
80#define AL_COMM_MSGCODEINST_DONE (3)
81#define AL_COMM_MSGCODEINST_GAIN (4)
82#define AL_COMM_MSGCODEINST_INFO (5)
84#define AL_COMM_MSGCODEMEM_NONE (0)
85#define AL_COMM_MSGCODEMEM_INJECT (1)
86#define AL_COMM_MSGCODEMEM_RELEASE (2)
88#define AL_COMM_MSGCODEERR_OK (0)
89#define AL_COMM_MSGCODEERR_TOOSHORT (1)
90#define AL_COMM_MSGCODEERR_ILLIGALFRAME (2)
91#define AL_COMM_MSGCODEERR_NOFRAME (3)
92#define AL_COMM_MSGCODEERR_UNKNOWN (4)
93#define AL_COMM_MSGCODEERR_INVALIDADDR (5)
94#define AL_COMM_MSGCODEERR_OVFLOW (6)
95#define AL_COMM_MSGCODEERR_INVALIDINST (7)
96#define AL_COMM_MSGCODEERR_MULTIFRAME (8)
97#define AL_COMM_MSGCODEERR_UNSUPFRAME (9)
99#define AL_COMM_ERR_SUCCESS (0)
100#define AL_COMM_ERR_WORKERINIT (-1)
101#define AL_COMM_ERR_WORKERASSIGN (-2)
102#define AL_COMM_ERR_SENDMQCREATE (-3)
103#define AL_COMM_ERR_SENDMQBIND (-4)
104#define AL_COMM_ERR_RECVMQCREATE (-5)
105#define AL_COMM_ERR_EXECWORKER (-6)
107#define AL_WORKER_TYPE_MP3DEC (1)
109#define AL_WORKER_VERSION_0 (0)
110#define AL_WORKER_VERSION_1 (1)
112#define AL_MP3DECWORKER_VERSION AL_WORKER_VERSION_1
114#define AL_COMM_NO_MSG (0xffffffff)
116#define AL_MSGBUF_DEPTH_POW (4)
117#define AL_MSGBUF_DEPTH (1 << AL_MSGBUF_DEPTH_POW)
144 unsigned char body[4096];
177#ifndef BUILD_TGT_ASMPWORKER
182 struct al_msg_s msg[AL_MSGBUF_DEPTH];
196void *alworker_addr_convert(
void *a);
197int initialize_alworker(
al_wtask_t *inst,
const char *dspfname,
bool is_spk);
Definition: alworker_comm.h:166
Definition: alworker_comm.h:173
Definition: alworker_comm.h:124
Definition: alworker_comm.h:137