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 96 of file ImportMP3_MPG123.cpp.

Constructor & Destructor Documentation

◆ MP3ImportPlugin()

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

Definition at line 99 of file ImportMP3_MPG123.cpp.

100 : ImportPlugin(
101 FileExtensions(exts.begin(), exts.end()))
102 {
103#if MPG123_API_VERSION < 46
104 // Newer versions of the library don't need that anymore, but it is safe
105 // to have the no-op call present for compatibility with old versions.
106 mpg123_init();
107#endif
108 }
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 115 of file ImportMP3_MPG123.cpp.

116 {
117 return DESC;
118 }
#define DESC

References DESC.

◆ GetPluginStringID()

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

Implements ImportPlugin.

Definition at line 110 of file ImportMP3_MPG123.cpp.

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

References wxT().

Here is the call graph for this function:

◆ Open()

std::unique_ptr< ImportFileHandle > anonymous_namespace{ImportMP3_MPG123.cpp}::MP3ImportPlugin::Open ( const FilePath Filename,
AudacityProject  
)
overridevirtual

Implements ImportPlugin.

Definition at line 165 of file ImportMP3_MPG123.cpp.

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

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