Update of /cvsroot/audacity/audacity-src/src/export
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv9315

Modified Files:
        ExportMP3.cpp 
Log Message:
Return path to installed LAME library.

Index: ExportMP3.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/export/ExportMP3.cpp,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -d -r1.103 -r1.104
--- ExportMP3.cpp       7 Jan 2009 17:30:46 -0000       1.103
+++ ExportMP3.cpp       9 Jan 2009 06:12:12 -0000       1.104
@@ -1307,7 +1307,14 @@
 
 wxString MP3Exporter::GetLibraryPath()
 {
-   return wxT("");
+   wxRegKey reg(wxT("HKEY_LOCAL_MACHINE\\Software\\Lame for Audacity"));
+   wxString path;
+
+   if (reg.Exists()) {
+      reg.QueryValue(wxT("InstallPath"), path);
+   }
+
+   return path;
 }
 
 wxString MP3Exporter::GetLibraryName()


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to