iasiodrv.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //------------------------------------------------------------------------
  2. // Project : ASIO SDK
  3. //
  4. // Category : Interfaces
  5. // Filename : common/iasiodrv.h
  6. // Created by : Steinberg, 05/1996
  7. // Description : Steinberg Audio Stream I/O API v2.3
  8. //
  9. //-----------------------------------------------------------------------------
  10. // This file is part of a Steinberg SDK. It is subject to the license terms
  11. // in the LICENSE file found in the top-level directory of this distribution
  12. // and at www.steinberg.net/sdklicenses.
  13. // No part of the SDK, including this file, may be copied, modified, propagated,
  14. // or distributed except according to the terms contained in the LICENSE file.
  15. //-----------------------------------------------------------------------------
  16. #include "asiosys.h"
  17. #include "asio.h"
  18. /* Forward Declarations */
  19. #ifndef __ASIODRIVER_FWD_DEFINED__
  20. #define __ASIODRIVER_FWD_DEFINED__
  21. typedef interface IASIO IASIO;
  22. #endif /* __ASIODRIVER_FWD_DEFINED__ */
  23. interface IASIO : public IUnknown
  24. {
  25. virtual ASIOBool init(void *sysHandle) = 0;
  26. virtual void getDriverName(char *name) = 0;
  27. virtual long getDriverVersion() = 0;
  28. virtual void getErrorMessage(char *string) = 0;
  29. virtual ASIOError start() = 0;
  30. virtual ASIOError stop() = 0;
  31. virtual ASIOError getChannels(long *numInputChannels, long *numOutputChannels) = 0;
  32. virtual ASIOError getLatencies(long *inputLatency, long *outputLatency) = 0;
  33. virtual ASIOError getBufferSize(long *minSize, long *maxSize,
  34. long *preferredSize, long *granularity) = 0;
  35. virtual ASIOError canSampleRate(ASIOSampleRate sampleRate) = 0;
  36. virtual ASIOError getSampleRate(ASIOSampleRate *sampleRate) = 0;
  37. virtual ASIOError setSampleRate(ASIOSampleRate sampleRate) = 0;
  38. virtual ASIOError getClockSources(ASIOClockSource *clocks, long *numSources) = 0;
  39. virtual ASIOError setClockSource(long reference) = 0;
  40. virtual ASIOError getSamplePosition(ASIOSamples *sPos, ASIOTimeStamp *tStamp) = 0;
  41. virtual ASIOError getChannelInfo(ASIOChannelInfo *info) = 0;
  42. virtual ASIOError createBuffers(ASIOBufferInfo *bufferInfos, long numChannels,
  43. long bufferSize, ASIOCallbacks *callbacks) = 0;
  44. virtual ASIOError disposeBuffers() = 0;
  45. virtual ASIOError controlPanel() = 0;
  46. virtual ASIOError future(long selector,void *opt) = 0;
  47. virtual ASIOError outputReady() = 0;
  48. };