1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Exploration of mod-nyq-bench load issue. Needs someone else to look at this further.

This commit is contained in:
james.k.crook@gmail.com 2012-07-31 09:34:31 +00:00
parent f0f1d3ef4c
commit a1b02e5dbe

View File

@ -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;
}
}
}
}