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.2KB

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