Audacity 3.2.0
Public Member Functions | List of all members
anonymous_namespace{ImportMP3_MPG123.cpp}::MP3ImportPlugin Class Referencefinal
Inheritance diagram for anonymous_namespace{ImportMP3_MPG123.cpp}::MP3ImportPlugin:
[legend]
Collaboration diagram for anonymous_namespace{ImportMP3_MPG123.cpp}::MP3ImportPlugin:
[legend]

Public Member Functions

 MP3ImportPlugin ()
 
wxString GetPluginStringID () override
 
TranslatableString GetPluginFormatDescription () override
 
std::unique_ptr< ImportFileHandleOpen (const FilePath &Filename, AudacityProject *) override
 
- Public Member Functions inherited from ImportPlugin
virtual wxString GetPluginStringID ()=0
 
virtual TranslatableString GetPluginFormatDescription ()=0
 
virtual FileExtensions GetSupportedExtensions ()
 
virtual TranslatableString FailureHint () const
 User visible message suggesting what to do when a file type isn't recognized; default empty string. More...
 
bool SupportsExtension (const FileExtension &extension)
 
virtual std::unique_ptr< ImportFileHandleOpen (const FilePath &Filename, AudacityProject *)=0
 
virtual ~ImportPlugin ()
 

Additional Inherited Members

- Protected Member Functions inherited from ImportPlugin
 ImportPlugin (FileExtensions supportedExtensions)
 
- Protected Attributes inherited from ImportPlugin
const FileExtensions mExtensions
 

Detailed Description

Definition at line 97 of file ImportMP3_MPG123.cpp.

Constructor & Destructor Documentation

◆ MP3ImportPlugin()

anonymous_namespace{ImportMP3_MPG123.cpp}::MP3ImportPlugin::MP3ImportPlugin ( )
inline

Definition at line 100 of file ImportMP3_MPG123.cpp.

101 : ImportPlugin(
102 FileExtensions(exts.begin(), exts.end()))
103 {
104#if MPG123_API_VERSION < 46
105 // Newer versions of the library don't need that anymore, but it is safe
106 // to have the no-op call present for compatibility with old versions.
107 mpg123_init();
108#endif
109 }
wxArrayStringEx FileExtensions
Definition: Identifier.h:225
ImportPlugin(FileExtensions supportedExtensions)

Member Function Documentation

◆ GetPluginFormatDescription()

TranslatableString anonymous_namespace{ImportMP3_MPG123.cpp}::MP3ImportPlugin::GetPluginFormatDescription ( )
inlineoverridevirtual

Implements ImportPlugin.

Definition at line 116 of file ImportMP3_MPG123.cpp.

117 {
118 return DESC;
119 }
#define DESC

References DESC.

◆ GetPluginStringID()

wxString anonymous_namespace{ImportMP3_MPG123.cpp}::MP3ImportPlugin::GetPluginStringID ( )
inlineoverridevirtual

Implements ImportPlugin.

Definition at line 111 of file ImportMP3_MPG123.cpp.

112 {
113 return wxT("libmpg123");
114 }
wxT("CloseDown"))

References wxT().

Here is the call graph for this function:

◆ Open()

std::unique_ptr< ImportFileHandle > MP3ImportPlugin::Open ( const FilePath Filename,
AudacityProject  
)
overridevirtual

Implements ImportPlugin.

Definition at line 167 of file ImportMP3_MPG123.cpp.

169{
170 auto handle = std::make_unique<MP3ImportFileHandle>(Filename);
171
172 if (!handle->Open())
173 return nullptr;
174
175 return handle;
176}

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