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.

cmSyncRecd.h 1002B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef cmSyncRecd_h
  2. #define cmSyncRecd_h
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. enum
  7. {
  8. kOkSyRC,
  9. kFileFailSyRC,
  10. kAudioFileFailSyRC,
  11. kInvalidOpSyRC
  12. };
  13. typedef cmHandle_t cmSyncRecdH_t;
  14. typedef cmRC_t cmSyRC_t;
  15. extern cmSyncRecdH_t cmSyncRecdNullHandle;
  16. cmSyRC_t cmSyncRecdCreate( cmCtx_t* ctx, cmSyncRecdH_t* hp, const cmChar_t* srFn, const cmChar_t* audioFn, double srate, unsigned chCnt, unsigned bits );
  17. cmSyRC_t cmSyncRecdOpen( cmCtx_t* ctx, cmSyncRecdH_t* hp, const cmChar_t* srFn );
  18. cmSyRC_t cmSyncRecdFinal( cmSyncRecdH_t* hp );
  19. bool cmSyncRecdIsValid( cmSyncRecdH_t h );
  20. cmSyRC_t cmSyncRecdMidiWrite( cmSyncRecdH_t h, const cmTimeSpec_t* timestamp, unsigned status, unsigned d0, unsigned d1 );
  21. cmSyRC_t cmSyncRecdAudioWrite( cmSyncRecdH_t h, const cmTimeSpec_t* timestamp, unsigned smpIdx, const cmSample_t* ch[], unsigned chCnt, unsigned frmCnt );
  22. cmSyRC_t cmSyncRecdTest( cmCtx_t* ctx );
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif