Audio plugin host https://kx.studio/carla
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.

iasiodrv.h 1.6KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #include "asiosys.h"
  2. #include "asio.h"
  3. /* Forward Declarations */
  4. #ifndef __ASIODRIVER_FWD_DEFINED__
  5. #define __ASIODRIVER_FWD_DEFINED__
  6. typedef interface IASIO IASIO;
  7. #endif /* __ASIODRIVER_FWD_DEFINED__ */
  8. interface IASIO : public IUnknown
  9. {
  10. virtual ASIOBool init(void *sysHandle) = 0;
  11. virtual void getDriverName(char *name) = 0;
  12. virtual long getDriverVersion() = 0;
  13. virtual void getErrorMessage(char *string) = 0;
  14. virtual ASIOError start() = 0;
  15. virtual ASIOError stop() = 0;
  16. virtual ASIOError getChannels(long *numInputChannels, long *numOutputChannels) = 0;
  17. virtual ASIOError getLatencies(long *inputLatency, long *outputLatency) = 0;
  18. virtual ASIOError getBufferSize(long *minSize, long *maxSize,
  19. long *preferredSize, long *granularity) = 0;
  20. virtual ASIOError canSampleRate(ASIOSampleRate sampleRate) = 0;
  21. virtual ASIOError getSampleRate(ASIOSampleRate *sampleRate) = 0;
  22. virtual ASIOError setSampleRate(ASIOSampleRate sampleRate) = 0;
  23. virtual ASIOError getClockSources(ASIOClockSource *clocks, long *numSources) = 0;
  24. virtual ASIOError setClockSource(long reference) = 0;
  25. virtual ASIOError getSamplePosition(ASIOSamples *sPos, ASIOTimeStamp *tStamp) = 0;
  26. virtual ASIOError getChannelInfo(ASIOChannelInfo *info) = 0;
  27. virtual ASIOError createBuffers(ASIOBufferInfo *bufferInfos, long numChannels,
  28. long bufferSize, ASIOCallbacks *callbacks) = 0;
  29. virtual ASIOError disposeBuffers() = 0;
  30. virtual ASIOError controlPanel() = 0;
  31. virtual ASIOError future(long selector,void *opt) = 0;
  32. virtual ASIOError outputReady() = 0;
  33. };