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.

42 lines
719B

  1. #ifndef __AsioDrivers__
  2. #define __AsioDrivers__
  3. #include "ginclude.h"
  4. #if MAC
  5. #include "CodeFragments.hpp"
  6. class AsioDrivers : public CodeFragments
  7. #elif WINDOWS
  8. #include <windows.h>
  9. #include "asiolist.h"
  10. class AsioDrivers : public AsioDriverList
  11. #elif SGI || BEOS
  12. #include "asiolist.h"
  13. class AsioDrivers : public AsioDriverList
  14. #else
  15. #error implement me
  16. #endif
  17. {
  18. public:
  19. AsioDrivers();
  20. ~AsioDrivers();
  21. bool getCurrentDriverName(char *name);
  22. long getDriverNames(char **names, long maxDrivers);
  23. bool loadDriver(char *name);
  24. void removeCurrentDriver();
  25. long getCurrentDriverIndex() {return curIndex;}
  26. protected:
  27. unsigned long connID;
  28. long curIndex;
  29. };
  30. #endif