libcm is a C development framework with an emphasis on audio signal processing applications.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

cmSyncRecd.h 1002B

1234567891011121314151617181920212223242526272829303132333435
  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. kInvalidOpSrRC
  12. };
  13. typedef cmHandle_t cmSyncRecdH_t;
  14. typedef cmRC_t cmSrRC_t;
  15. extern cmSyncRecdH_t cmSyncRecdNullHandle;
  16. cmSrRC_t cmSyncRecdCreate( cmCtx_t* ctx, cmSyncRecdH_t* hp, const cmChar_t* srFn, const cmChar_t* audioFn, double srate, unsigned chCnt, unsigned bits );
  17. cmSrRC_t cmSyncRecdOpen( cmCtx_t* ctx, cmSyncRecdH_t* hp, const cmChar_t* srFn );
  18. cmSrRC_t cmSyncRecdFinal( cmSyncRecdH_t* hp );
  19. bool cmSyncRecdIsValid( cmSyncRecdH_t h );
  20. cmSrRC_t cmSyncRecdMidiWrite( cmSyncRecdH_t h, const cmTimeSpec_t* timestamp, unsigned status, unsigned d0, unsigned d1 );
  21. cmSrRC_t cmSyncRecdAudioWrite( cmSyncRecdH_t h, const cmTimeSpec_t* timestamp, unsigned smpIdx, const cmSample_t* ch[], unsigned chCnt, unsigned frmCnt );
  22. cmSrRC_t cmSyncRecdTest( cmCtx_t* ctx );
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif