2012-10-30 03:52:39 +00:00
|
|
|
#ifndef cmAudDspLocal_h
|
|
|
|
#define cmAudDspLocal_h
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-10-07 21:07:54 +00:00
|
|
|
/*
|
|
|
|
This class instantiates an audio-DSP engine (cmAudDsp),
|
|
|
|
an interface for communicating with it (cmAudDspIF),
|
|
|
|
and message delivery functions for copying messages
|
|
|
|
in both directions between cmAuDsp and cmAudDspIF.
|
|
|
|
|
|
|
|
Note that the actual inteface which allows an application to
|
|
|
|
control, and receive message from, cmAudDsp is provided by
|
|
|
|
cmAudDspIF - which this class provides a handle to.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2012-10-30 03:52:39 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
kOkAdlRC = cmOkRC,
|
|
|
|
kAudDspIfFailAdlRC,
|
|
|
|
kAudDspFailAdlRC,
|
|
|
|
kFileSysFailAdlRC,
|
|
|
|
kJsonFailAdlRC
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef cmRC_t cmAdlRC_t;
|
|
|
|
typedef cmHandle_t cmAdlH_t;
|
|
|
|
|
|
|
|
extern cmAdlH_t cmAdlNullHandle;
|
|
|
|
|
|
|
|
cmAdlRC_t cmAudDspLocalAllocate(
|
|
|
|
cmCtx_t* ctx,
|
|
|
|
cmAdlH_t* hp,
|
|
|
|
const cmAdIfDispatch_t* recd );
|
|
|
|
|
|
|
|
cmAdlRC_t cmAudDspLocalFree( cmAdlH_t* hp );
|
|
|
|
|
2012-11-24 18:32:12 +00:00
|
|
|
cmAdlRC_t cmAudDspLocalSendSetup( cmAdlH_t h );
|
|
|
|
|
2012-10-30 03:52:39 +00:00
|
|
|
bool cmAudDspLocalIsValid( cmAdlH_t h );
|
|
|
|
|
|
|
|
cmAiH_t cmAudDspLocalIF_Handle( cmAdlH_t h );
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|