static void init_fff(void){
  static bool has_started = false;

  if (has_started==false){
          //#if !RADIUM_FAUST_USE_INTERPRETER
    startMTDSPFactories(); // Make faust is thread safe
    //#endif
    g_fff_thread.startit();
    //g_fff_thread2.startit();
    has_started = true;
  }
}
示例#2
0
FaustgenFactory::FaustgenFactory(const String& name, const File& path, const File& svgPath)
: svgThread(this)
{
  fUpdateInstance = 0;
  fName = name;
  fDSPfactory = nullptr;
  fSourceCode = DEFAULT_CODE;
  
  if(gFaustCounter == 0) {
    startMTDSPFactories();
  }
  
  gFaustCounter++;
  fFaustNumber = gFaustCounter;
  
  // Built the complete resource path
  fLibraryPath.add(path);
  fDrawPath = svgPath;
}