1 |
/* |
/* |
2 |
Copyright (C) 2010 - 2012 Christian Schoenebeck |
Copyright (C) 2010 - 2014 Christian Schoenebeck |
3 |
*/ |
*/ |
4 |
|
|
5 |
#include "LadspaEffect.h" |
#include "LadspaEffect.h" |
378 |
char* pcLadspaPath = getenv("LADSPA_PATH"); |
char* pcLadspaPath = getenv("LADSPA_PATH"); |
379 |
String ladspaDir = pcLadspaPath ? pcLadspaPath : defaultLadspaDir(); |
String ladspaDir = pcLadspaPath ? pcLadspaPath : defaultLadspaDir(); |
380 |
|
|
381 |
try { |
std::istringstream ss(ladspaDir); |
382 |
std::istringstream ss(ladspaDir); |
std::string path; |
383 |
std::string path; |
while (std::getline(ss, path, File::PathSeparator)) { |
384 |
while (std::getline(ss, path, File::PathSeparator)) { |
if (!path.empty()) { |
385 |
if (!path.empty()) { |
try { |
386 |
DynamicLibrariesSearch(path.c_str(), "ladspa_descriptor", _foundLadspaDll, &v); |
DynamicLibrariesSearch(path.c_str(), "ladspa_descriptor", _foundLadspaDll, &v); |
387 |
|
} catch (Exception e) { |
388 |
|
std::cerr << "Could not scan LADSPA effects: " << e.Message() |
389 |
|
<< std::endl << std::flush; |
390 |
|
} catch (...) { |
391 |
|
std::cerr << "Could not scan LADSPA effects: unknown exception\n" |
392 |
|
<< std::flush; |
393 |
} |
} |
394 |
} |
} |
|
} catch (Exception e) { |
|
|
std::cerr << "Could not scan LADSPA effects: " << e.Message() |
|
|
<< std::endl << std::flush; |
|
|
} catch (...) { |
|
|
std::cerr << "Could not scan LADSPA effects: unknown exception\n" |
|
|
<< std::flush; |
|
395 |
} |
} |
396 |
|
|
397 |
return v; |
return v; |