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.

Nio.h 983B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef NIO_H
  2. #define NIO_H
  3. #include <string>
  4. #include <set>
  5. class WavFile;
  6. /**Interface to Nio Subsystem
  7. *
  8. * Should be only externally included header */
  9. namespace Nio
  10. {
  11. void init(void);
  12. bool start(void);
  13. void stop(void);
  14. void setDefaultSource(std::string name);
  15. void setDefaultSink(std::string name);
  16. bool setSource(std::string name);
  17. bool setSink(std::string name);
  18. void setPostfix(std::string post);
  19. std::string getPostfix(void);
  20. std::set<std::string> getSources(void);
  21. std::set<std::string> getSinks(void);
  22. std::string getSource(void);
  23. std::string getSink(void);
  24. //Get the prefered sample rate from jack (if running)
  25. void preferedSampleRate(unsigned &rate);
  26. //Wave writing
  27. void waveNew(class WavFile *wave);
  28. void waveStart(void);
  29. void waveStop(void);
  30. void waveEnd(void);
  31. extern bool autoConnect;
  32. extern std::string defaultSource;
  33. extern std::string defaultSink;
  34. };
  35. #endif