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.

cmAudioPortFile.h 1.3KB

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