/[svn]/linuxsampler/trunk/src/effects/LadspaEffect.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/effects/LadspaEffect.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2508 by persson, Sat Mar 17 06:19:01 2012 UTC revision 2509 by schoenebeck, Sat Jan 18 18:10:49 2014 UTC
# Line 1  Line 1 
1  /*  /*
2      Copyright (C) 2010 - 2012 Christian Schoenebeck      Copyright (C) 2010 - 2014 Christian Schoenebeck
3  */  */
4    
5  #include "LadspaEffect.h"  #include "LadspaEffect.h"
# Line 378  std::vector<EffectInfo*> LadspaEffect::A Line 378  std::vector<EffectInfo*> LadspaEffect::A
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;

Legend:
Removed from v.2508  
changed lines
  Added in v.2509

  ViewVC Help
Powered by ViewVC