libcm is a C development framework with an emphasis on audio signal processing applications.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

cmAudioPortFile.h 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef cmAudioPortFile_h
  2. #define cmAudioPortFile_h
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. //( { file_desc:"This is an audio device driver for cmAudioPort which supports reading and writing audio files as though they are real-time devices." kw[audio file rt] }
  7. cmApRC_t cmApFileAllocate( cmRpt_t* rpt );
  8. cmApRC_t cmApFileFree();
  9. cmApRC_t cmApFileInitialize( cmRpt_t* rpt, unsigned baseApDevIdx );
  10. cmApRC_t cmApFileFinalize();
  11. bool cmApFileIsValid();
  12. unsigned cmApFileDeviceCreate(
  13. const cmChar_t* devLabel,
  14. const cmChar_t* iFn,
  15. const cmChar_t* oFn,
  16. unsigned oBits,
  17. unsigned oChCnt );
  18. cmApRC_t cmApFileDeviceDestroy( unsigned devIdx );
  19. unsigned cmApFileDeviceCount();
  20. const char* cmApFileDeviceLabel( unsigned devIdx );
  21. unsigned cmApFileDeviceChannelCount( unsigned devIdx, bool inputFl );
  22. double cmApFileDeviceSampleRate( unsigned devIdx );
  23. unsigned cmApFileDeviceFramesPerCycle( unsigned devIdx, bool inputFl );
  24. cmApRC_t cmApFileDeviceSetup(
  25. unsigned devIdx,
  26. double srate,
  27. unsigned framesPerCycle,
  28. cmApCallbackPtr_t callbackPtr,
  29. void* userCbPtr );
  30. cmApRC_t cmApFileDeviceStart( unsigned devIdx );
  31. cmApRC_t cmApFileDeviceStop( unsigned devIdx );
  32. bool cmApFileDeviceIsStarted( unsigned devIdx );
  33. void cmApFileReport( cmRpt_t* rpt );
  34. void cmApFileTest( cmRpt_t* rpt );
  35. //)
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39. #endif