1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef cmAudDsp_h
- #define cmAudDsp_h
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- //( { file_desc: "Supports a serialized interface to an internal instance of cmAudioSys and cmDspSys." kw:[rt]}
-
- enum
- {
- kOkAdRC = cmOkRC,
- kAudioPortFailAdRC,
- kAudioSysFailAdRC,
- kMidiSysFailAdRC,
- kSerialPortFailAdRC,
- kDspSysFailAdRC,
- kFileSysFailAdRC,
- kJsonFailAdRC,
- kSendMsgFailAdRC,
- kInvalidCfgIdxAdRC,
- kNoPgmLoadedAdRC,
- kInvalidSubSysIdxAdRC,
- kUnknownMsgTypeAdRC,
- kSerialDevCreateFailAdRC,
- kAggDevSysFailAdRC,
- kAggDevCreateFailAdRC,
- kNrtDevSysFailAdRC,
- kAfpDevSysFailAdRC,
- kNetSysFailAdRC
- };
-
-
- typedef cmRC_t cmAdRC_t;
- typedef cmHandle_t cmAdH_t;
-
- extern cmAdH_t cmAdNullHandle;
-
- // Create a audio dsp engine and send device and program information to the
- // host application.
- // cbPtr provides a function used by cmAudDsp to send messages to the client.
- cmAdRC_t cmAudDspAlloc( cmCtx_t* ctx, cmAdH_t* hp, cmMsgSendFuncPtr_t cbPtr, void* cbDataPtr );
- cmAdRC_t cmAudDspFree( cmAdH_t* hp );
-
- // Send the setup to the UI (device list,system cfg list, DSP programs)
- cmAdRC_t cmAudDspSendSetup( cmAdH_t h );
-
- bool cmAudDspIsValid( cmAdH_t h );
-
- // This function provides the primary interface for communication from the
- // client program to the aud_dsp system.
- cmAdRC_t cmAudDspReceiveClientMsg( cmAdH_t h, unsigned msgBytecnt, const void* msg );
-
- //)
-
-
- #ifdef __cplusplus
- }
- #endif
-
-
- #endif
|