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.

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