libcm is a C development framework with an emphasis on audio signal processing applications.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cmDspCtx.h 983B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef cmDspCtx_h
  2. #define cmDspCtx_h
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef cmHandle_t cmDspSysH_t;
  7. struct cmAudioSysCtx_str;
  8. // DSP system context passed to many DSP instance functions
  9. typedef struct
  10. {
  11. cmDspSysH_t dspH;
  12. cmRpt_t* rpt;
  13. cmCtx_t* cmCtx; // global pgm context
  14. struct cmCtx_str* cmProcCtx; // context used by cmProc objects
  15. struct cmAudioSysCtx_str* ctx; // audio sub-system context this DSP program is executing within
  16. cmLHeapH_t lhH;
  17. cmJsonH_t jsH;
  18. cmSymTblH_t stH;
  19. cmJsonH_t rsrcJsH;
  20. unsigned cycleCnt; // count of DSP execution cycles (multiply by cmDspSamplesPerCycle() to get time since start of DSP system in samples)
  21. unsigned _disableSymId;
  22. unsigned _enableSymId;
  23. unsigned execDurUsecs;
  24. } cmDspCtx_t;
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif