libcm is a C development framework with an emphasis on audio signal processing applications.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

cmAudioPortFile.h 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef cmAudioPortFile_h
  2. #define cmAudioPortFile_h
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. cmApRC_t cmApFileAllocate( cmRpt_t* rpt );
  7. cmApRC_t cmApFileFree();
  8. cmApRC_t cmApFileInitialize( cmRpt_t* rpt, unsigned baseApDevIdx );
  9. cmApRC_t cmApFileFinalize();
  10. bool cmApFileIsValid();
  11. unsigned cmApFileDeviceCreate(
  12. const cmChar_t* devLabel,
  13. const cmChar_t* iFn,
  14. const cmChar_t* oFn,
  15. unsigned oBits,
  16. unsigned oChCnt );
  17. cmApRC_t cmApFileDeviceDestroy( unsigned devIdx );
  18. unsigned cmApFileDeviceCount();
  19. const char* cmApFileDeviceLabel( unsigned devIdx );
  20. unsigned cmApFileDeviceChannelCount( unsigned devIdx, bool inputFl );
  21. double cmApFileDeviceSampleRate( unsigned devIdx );
  22. unsigned cmApFileDeviceFramesPerCycle( unsigned devIdx, bool inputFl );
  23. cmApRC_t cmApFileDeviceSetup(
  24. unsigned devIdx,
  25. double srate,
  26. unsigned framesPerCycle,
  27. cmApCallbackPtr_t callbackPtr,
  28. void* userCbPtr );
  29. cmApRC_t cmApFileDeviceStart( unsigned devIdx );
  30. cmApRC_t cmApFileDeviceStop( unsigned devIdx );
  31. bool cmApFileDeviceIsStarted( unsigned devIdx );
  32. void cmApFileReport( cmRpt_t* rpt );
  33. void cmApFileTest( cmRpt_t* rpt );
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. #endif