mirror of
				https://github.com/cookiengineer/audacity
				synced 2025-11-03 23:53:55 +01:00 
			
		
		
		
	Exploration of mod-nyq-bench load issue. Needs someone else to look at this further.
This commit is contained in:
		@@ -273,6 +273,7 @@ void ModuleManager::Initialize()
 | 
			
		||||
   wxString pathVar;
 | 
			
		||||
   size_t i;
 | 
			
		||||
 | 
			
		||||
   // JKC: Is this code duplicating LoadModules() ????
 | 
			
		||||
   // Code from LoadLadspa that might be useful in load modules.
 | 
			
		||||
   pathVar = wxGetenv(wxT("AUDACITY_MODULES_PATH"));
 | 
			
		||||
   if (pathVar != wxT("")) {
 | 
			
		||||
@@ -294,13 +295,16 @@ void ModuleManager::Initialize()
 | 
			
		||||
   #endif
 | 
			
		||||
 | 
			
		||||
   for (i = 0; i < files.GetCount(); i++) {
 | 
			
		||||
      Module *module = new Module(files[i]);
 | 
			
		||||
      if( IsAllowedModule( files[i] ) )
 | 
			
		||||
      {
 | 
			
		||||
         Module *module = new Module(files[i]);
 | 
			
		||||
 | 
			
		||||
      if (module->Load()) {
 | 
			
		||||
         mInstance->mModules.Add(module);
 | 
			
		||||
      }
 | 
			
		||||
      else {
 | 
			
		||||
         delete module;
 | 
			
		||||
         if (module->Load()) {
 | 
			
		||||
            mInstance->mModules.Add(module);
 | 
			
		||||
         }
 | 
			
		||||
         else {
 | 
			
		||||
            delete module;
 | 
			
		||||
         }
 | 
			
		||||
      }
 | 
			
		||||
   }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user