Collection of tools useful for audio production
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.

39 lines
832B

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