Update of /cvsroot/audacity/audacity-src/src/effects/ladspa
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv1332/effects/ladspa

Modified Files:
        LoadLadspa.cpp 
Log Message:
1) Rework of XML file writing.
2) Cleaned up old (FROM)FILENAME() macro usage and added OSFILENAME() usage 
only where needed.
3) Removed Mac specific filename encodings as it's handled by WX now.
4) Fixed a couple of missing wxT()s (one resulted in a day or so debugging 
session ;-)).
5) Commented all PACKAGE_* macros in configtemplate.h as they conflict with the 
latest SoundTouch.


Index: LoadLadspa.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/ladspa/LoadLadspa.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- LoadLadspa.cpp      30 Jul 2006 06:18:50 -0000      1.22
+++ LoadLadspa.cpp      23 Sep 2006 02:26:25 -0000      1.23
@@ -38,12 +38,12 @@
    // open other plug-ins, we set the current working
    // directory to be the plug-in's directory.
 
-   wxString saveOldCWD = FROMFILENAME(::wxGetCwd());
+   wxString saveOldCWD = ::wxGetCwd();
    wxString prefix = ::wxPathOnly(fname);
-   ::wxSetWorkingDirectory(FILENAME(prefix));
+   ::wxSetWorkingDirectory(prefix);
 
    wxDynamicLibrary* pDLL = new wxDynamicLibrary();
-   if (pDLL && pDLL->Load(FILENAME(fname), wxDL_LAZY)) {
+   if (pDLL && pDLL->Load(fname, wxDL_LAZY)) {
       mainFn = 
(LADSPA_Descriptor_Function)(pDLL->GetSymbol(wxT(descriptorFnName)));
    }
 
@@ -78,7 +78,7 @@
       wxGetApp().AddMultiPathsToPathList(pathVar, pathList);
 
    #ifdef __WXGTK__
-   wxGetApp().AddUniquePathToPathList(INSTALL_PREFIX wxT("/ladspa"), pathList);
+   wxGetApp().AddUniquePathToPathList(wxT(INSTALL_PREFIX) wxT("/ladspa"), 
pathList);
    wxGetApp().AddUniquePathToPathList(wxT("/usr/local/lib/ladspa"), pathList);
    wxGetApp().AddUniquePathToPathList(wxT("/usr/lib/ladspa"), pathList);
    #endif


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to