logo
Main Page | Namespaces | Classes | Compounds | Files | Compound Members | Related

SynthEngine.h

00001 //
00002 //  SYNTOPIA. See http://Syntopia.sourceforge.net for details and documentation.        
00003 //
00004 //      Author of this file: Mikael Hvidtfeldt Christensen (mikaelc@users.sourceforge.net)
00005 //
00006 
00007 #ifndef __SynthEngine__
00008 #define __SynthEngine__
00009 
00010 
00011 
00012 namespace SynthCore {
00013 
00014 class Synth;
00015 
00018 class SynthEngine {
00019 public:
00020         static long GlobalStep() {return Globalstep;}
00021         static long Globalstep;
00022         float samplerate;
00023         SynthEngine() ;
00024         ~SynthEngine() {};
00025 
00026         static Synth * mySynth;
00027 
00028 
00029         void static setSynth(Synth * S) {mySynth = S;}
00030         
00031         
00032         void static active(bool b) ;
00033         bool static isActive(bool b);
00034 private:        
00035         static SynthEngine * EngineInstance; // The ONLY instance of this class;
00036 
00037 };
00038 
00039 }; // end of namespace: SynthCore
00040 
00041 #endif

Syntopia Project. Visit the web page, or the SourceForge page.
Docs made by Doxygen. Email: Mikael Christensen