From 0efe931df26da43198b03972ed50b4c3c88b2662 Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Fri, 3 Mar 2017 19:27:17 +0000 Subject: [PATCH] Bug 290 - (Mac) LAME: Audacity looks for LAME in a restricted folder that Mac no longer supports --- src/export/ExportMP3.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/export/ExportMP3.cpp b/src/export/ExportMP3.cpp index 18bec14fd..b4348a061 100644 --- a/src/export/ExportMP3.cpp +++ b/src/export/ExportMP3.cpp @@ -1451,7 +1451,21 @@ wxString MP3Exporter::GetLibraryTypeString() wxString MP3Exporter::GetLibraryPath() { - return wxT("/usr/local/lib/audacity"); + wxString path; + + path = wxT("/Library/Application Support/audacity/libs"); + if (wxFileExists(path + wxT("/") + GetLibraryName())) + { + return path; + } + + path = wxT("/usr/local/lib/audacity"); + if (wxFileExists(path + wxT("/") + GetLibraryName())) + { + return path; + } + + return wxT("/Library/Application Support/audacity/libs"); } wxString MP3Exporter::GetLibraryName()