Audacity 3.2.0
Macros | Enumerations | Functions
ExportMP3.h File Reference
#include <memory>
Include dependency graph for ExportMP3.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MP3_EXPORT_BUILT_IN   1
 

Enumerations

enum  MP3RateMode : unsigned { MODE_SET = 0 , MODE_VBR , MODE_ABR , MODE_CBR }
 

Functions

TranslatableString GetMP3Version (wxWindow *parent, bool prompt)
 

Macro Definition Documentation

◆ MP3_EXPORT_BUILT_IN

#define MP3_EXPORT_BUILT_IN   1

Definition at line 26 of file ExportMP3.h.

Enumeration Type Documentation

◆ MP3RateMode

enum MP3RateMode : unsigned
Enumerator
MODE_SET 
MODE_VBR 
MODE_ABR 
MODE_CBR 

Definition at line 18 of file ExportMP3.h.

18 : unsigned {
19 MODE_SET = 0,
23};
@ MODE_SET
Definition: ExportMP3.h:19
@ MODE_ABR
Definition: ExportMP3.h:21
@ MODE_VBR
Definition: ExportMP3.h:20
@ MODE_CBR
Definition: ExportMP3.h:22

Function Documentation

◆ GetMP3Version()

TranslatableString GetMP3Version ( wxWindow *  parent,
bool  prompt 
)

Definition at line 2234 of file ExportMP3.cpp.

2235{
2236 MP3Exporter exporter;
2237 auto versionString = XO("MP3 export library not found");
2238
2239#ifndef DISABLE_DYNAMIC_LOADING_LAME
2240 if (prompt) {
2241 exporter.FindLibrary(parent);
2242 }
2243
2244 if (exporter.LoadLibrary(parent, prompt ? MP3Exporter::Yes : MP3Exporter::No)) {
2245#endif // DISABLE_DYNAMIC_LOADING_LAME
2246 versionString = Verbatim( exporter.GetLibraryVersion() );
2247#ifdef MP3_EXPORT_BUILT_IN
2248 versionString.Join( XO("(Built-in)"), " " );
2249#endif
2250
2251#ifndef DISABLE_DYNAMIC_LOADING_LAME
2252 }
2253#endif // DISABLE_DYNAMIC_LOADING_LAME
2254
2255 return versionString;
2256}
XO("Cut/Copy/Paste")
TranslatableString Verbatim(wxString str)
Require calls to the one-argument constructor to go through this distinct global function name.
Class used to export MP3 files.
Definition: ExportMP3.cpp:691
wxString GetLibraryVersion()
Definition: ExportMP3.cpp:1157
bool FindLibrary(wxWindow *parent)
Definition: ExportMP3.cpp:849
bool LoadLibrary(wxWindow *parent, AskUser askuser)
Definition: ExportMP3.cpp:884

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

Referenced by anonymous_namespace{MP3Prefs.cpp}::AddControls().

Here is the call graph for this function:
Here is the caller graph for this function: