#ifndef OUTMGR_H #define OUTMGR_H #include "../Misc/Stereo.h" #include #include #include class AudioOut; class OutMgr { public: static OutMgr &getInstance(); ~OutMgr(); /**Execute a tick*/ const Stereo tick(unsigned int frameSize); /**Request a new set of samples * @param n number of requested samples (defaults to 1) * @return -1 for locking issues 0 for valid request*/ void requestSamples(unsigned int n = 1); /**Gets requested driver * @param name case unsensitive name of driver * @return pointer to Audio Out or NULL */ AudioOut *getOut(std::string name); /**Gets the name of the first running driver * Deprecated * @return if no running output, "" is returned */ std::string getDriver() const; bool setSink(std::string name); std::string getSink() const; class WavEngine * wave; /** priBuf; //buffer for primary drivers Stereo priBuffCurrent; //current array accessor float *outl; float *outr; class Master & master; int stales; }; #endif