Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
anonymous_namespace{ExportCL.cpp}::ExtendPath Struct Reference

Public Member Functions

 ExtendPath ()
 
 ~ExtendPath ()
 

Public Attributes

wxString opath
 

Detailed Description

Definition at line 72 of file ExportCL.cpp.

Constructor & Destructor Documentation

◆ ExtendPath()

anonymous_namespace{ExportCL.cpp}::ExtendPath::ExtendPath ( )
inline

Definition at line 77 of file ExportCL.cpp.

78 {
79 // Give Windows a chance at finding lame command in the default location.
80 wxString paths[] = {wxT("HKEY_LOCAL_MACHINE\\Software\\Lame for Audacity"),
81 wxT("HKEY_LOCAL_MACHINE\\Software\\FFmpeg for Audacity")};
82 wxString npath;
83 wxRegKey reg;
84
85 wxGetEnv(wxT("PATH"), &opath);
86 npath = opath;
87
88 for (int i = 0; i < WXSIZEOF(paths); i++) {
89 reg.SetName(paths[i]);
90
91 if (reg.Exists()) {
92 wxString ipath;
93 reg.QueryValue(wxT("InstallPath"), ipath);
94 if (!ipath.empty()) {
95 npath += wxPATH_SEP + ipath;
96 }
97 }
98 }
99
100 wxSetEnv(wxT("PATH"),npath);
101 };
wxT("CloseDown"))
BuiltinCommandsModule::Registration< CompareAudioCommand > reg

References anonymous_namespace{CompareAudioCommand.cpp}::reg, and wxT().

Here is the call graph for this function:

◆ ~ExtendPath()

anonymous_namespace{ExportCL.cpp}::ExtendPath::~ExtendPath ( )
inline

Definition at line 103 of file ExportCL.cpp.

104 {
105 if (!opath.empty())
106 {
107 wxSetEnv(wxT("PATH"),opath);
108 }
109 }

References wxT().

Here is the call graph for this function:

Member Data Documentation

◆ opath

wxString anonymous_namespace{ExportCL.cpp}::ExtendPath::opath

Definition at line 75 of file ExportCL.cpp.


The documentation for this struct was generated from the following file: