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.

cmAudLabelFile.h 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef cmAudLabelFile_h
  2. #define cmAudLabelFile_h
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. enum
  7. {
  8. kOkAlfRC = cmOkRC,
  9. kLHeapFailAlfRC,
  10. kFileFailAlfRC,
  11. kSyntaxErrAlfRC,
  12. kAlfFileFailPuRC
  13. };
  14. typedef cmRC_t cmAlfRC_t;
  15. typedef cmHandle_t cmAlfH_t;
  16. extern cmAlfH_t cmAlfNullHandle;
  17. typedef struct
  18. {
  19. cmReal_t begSecs;
  20. cmReal_t endSecs;
  21. const cmChar_t* label;
  22. } cmAlfLabel_t;
  23. cmAlfRC_t cmAudLabelFileAlloc( cmCtx_t* ctx, cmAlfH_t* hp );
  24. cmAlfRC_t cmAudLabelFileAllocOpen( cmCtx_t* ctx, cmAlfH_t* hp, const cmChar_t* fn );
  25. cmAlfRC_t cmAudLabelFileFree( cmAlfH_t* hp );
  26. bool cmAudLabelFileIsValid( cmAlfH_t h );
  27. cmAlfRC_t cmAudLabelFileOpen( cmAlfH_t h, const cmChar_t* fn );
  28. cmAlfRC_t cmAudLabelFileInsert( cmAlfH_t h, cmReal_t begSecs, cmReal_t endSecs, const cmChar_t* label );
  29. unsigned cmAudLabelFileCount( cmAlfH_t h );
  30. const cmAlfLabel_t* cmAudLabelFileLabel( cmAlfH_t h, unsigned idx );
  31. cmAlfRC_t cmAudLabelFileWrite( cmAlfH_t h, const cmChar_t* fn );
  32. void cmAudLabelFileTest( cmCtx_t* ctx );
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif