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

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

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: