Audacity  2.2.2
Functions
ExportMP3.h File Reference
#include "../MemoryX.h"

Go to the source code of this file.

Functions

std::unique_ptr< ExportPluginNew_ExportMP3 ()
 
wxString GetMP3Version (wxWindow *parent, bool prompt)
 

Function Documentation

wxString GetMP3Version ( wxWindow *  parent,
bool  prompt 
)

Definition at line 2170 of file ExportMP3.cpp.

References _(), MP3Exporter::FindLibrary(), MP3Exporter::GetLibraryVersion(), MP3Exporter::LoadLibrary(), MP3Exporter::No, and MP3Exporter::Yes.

Referenced by LibraryPrefs::SetMP3VersionText().

2171 {
2172  MP3Exporter exporter;
2173  wxString versionString = _("MP3 export library not found");
2174 
2175 #ifndef DISABLE_DYNAMIC_LOADING_LAME
2176  if (prompt) {
2177  exporter.FindLibrary(parent);
2178  }
2179 
2180  if (exporter.LoadLibrary(parent, prompt ? MP3Exporter::Yes : MP3Exporter::No)) {
2181 #endif // DISABLE_DYNAMIC_LOADING_LAME
2182  versionString = exporter.GetLibraryVersion();
2183 #ifndef DISABLE_DYNAMIC_LOADING_LAME
2184  }
2185 #endif // DISABLE_DYNAMIC_LOADING_LAME
2186 
2187  return versionString;
2188 }
bool LoadLibrary(wxWindow *parent, AskUser askuser)
Definition: ExportMP3.cpp:981
wxString GetLibraryVersion()
Definition: ExportMP3.cpp:1198
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
bool FindLibrary(wxWindow *parent)
Definition: ExportMP3.cpp:946
Class used to export MP3 files.
Definition: ExportMP3.cpp:797
std::unique_ptr<ExportPlugin> New_ExportMP3 ( )

Factory method New_ExportMP3() which creates a NEW ExportMP3 object and returns a pointer to it. The rest of the class declaration is in ExportMP3.cpp

Definition at line 2161 of file ExportMP3.cpp.

Referenced by Exporter::Exporter().

2162 {
2163  return std::make_unique<ExportMP3>();
2164 }