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 2243 of file ExportMP3.cpp.

2244{
2245 MP3Exporter exporter;
2246 auto versionString = XO("MP3 export library not found");
2247
2248#ifndef DISABLE_DYNAMIC_LOADING_LAME
2249 if (prompt) {
2250 exporter.FindLibrary(parent);
2251 }
2252
2253 if (exporter.LoadLibrary(parent, prompt ? MP3Exporter::Yes : MP3Exporter::No)) {
2254#endif // DISABLE_DYNAMIC_LOADING_LAME
2255 versionString = Verbatim( exporter.GetLibraryVersion() );
2256#ifdef MP3_EXPORT_BUILT_IN
2257 versionString.Join( XO("(Built-in)"), " " );
2258#endif
2259
2260#ifndef DISABLE_DYNAMIC_LOADING_LAME
2261 }
2262#endif // DISABLE_DYNAMIC_LOADING_LAME
2263
2264 return versionString;
2265}
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:695
wxString GetLibraryVersion()
Definition: ExportMP3.cpp:1161
bool FindLibrary(wxWindow *parent)
Definition: ExportMP3.cpp:853
bool LoadLibrary(wxWindow *parent, AskUser askuser)
Definition: ExportMP3.cpp:888

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: