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 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef cmSyncRecd_h
  2. #define cmSyncRecd_h
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. //( { file_desc:"Generate time-alignment data between an audio and MIDI file. See cmDspSyncRecd_t." kw[proc] }
  7. enum
  8. {
  9. kOkSyRC,
  10. kFileFailSyRC,
  11. kAudioFileFailSyRC,
  12. kInvalidOpSyRC
  13. };
  14. typedef cmHandle_t cmSyncRecdH_t;
  15. typedef cmRC_t cmSyRC_t;
  16. extern cmSyncRecdH_t cmSyncRecdNullHandle;
  17. cmSyRC_t cmSyncRecdCreate( cmCtx_t* ctx, cmSyncRecdH_t* hp, const cmChar_t* srFn, const cmChar_t* audioFn, double srate, unsigned chCnt, unsigned bits );
  18. cmSyRC_t cmSyncRecdOpen( cmCtx_t* ctx, cmSyncRecdH_t* hp, const cmChar_t* srFn );
  19. cmSyRC_t cmSyncRecdFinal( cmSyncRecdH_t* hp );
  20. bool cmSyncRecdIsValid( cmSyncRecdH_t h );
  21. cmSyRC_t cmSyncRecdMidiWrite( cmSyncRecdH_t h, const cmTimeSpec_t* timestamp, unsigned status, unsigned d0, unsigned d1 );
  22. cmSyRC_t cmSyncRecdAudioWrite( cmSyncRecdH_t h, const cmTimeSpec_t* timestamp, unsigned smpIdx, const cmSample_t* ch[], unsigned chCnt, unsigned frmCnt );
  23. cmSyRC_t cmSyncRecdTest( cmCtx_t* ctx );
  24. //)
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif