|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #ifndef NIO_H
- #define NIO_H
- #include <string>
- #include <set>
-
- class WavFile;
- class Master;
- struct SYNTH_T;
- class oss_devs_t;
-
- /**Interface to Nio Subsystem
- *
- * Should be only externally included header */
- namespace Nio
- {
- void init(const SYNTH_T &synth, const oss_devs_t &oss_devs, Master *master);
- bool start(void);
- void stop(void);
-
- void setDefaultSource(std::string name);
- void setDefaultSink(std::string name);
-
- bool setSource(std::string name);
- bool setSink(std::string name);
-
- void setPostfix(std::string post);
- std::string getPostfix(void);
-
- std::set<std::string> getSources(void);
- std::set<std::string> getSinks(void);
-
- std::string getSource(void);
- std::string getSink(void);
-
- //Get the prefered sample rate from jack (if running)
- void preferedSampleRate(unsigned &rate);
-
- //Complete Master Swaps to ONLY BE CALLED FROM RT CONTEXT
- void masterSwap(Master *master);
-
- //Wave writing
- void waveNew(class WavFile *wave);
- void waveStart(void);
- void waveStop(void);
- void waveEnd(void);
-
- extern bool autoConnect;
- extern bool pidInClientName;
- extern std::string defaultSource;
- extern std::string defaultSink;
- };
-
- #endif
|