Audacity 3.2.0
|
Public Member Functions | |
ExportMP3 () | |
bool | CheckFileName (wxFileName &filename, int format) const override |
int | GetFormatCount () const override |
FormatInfo | GetFormatInfo (int) const override |
Returns FormatInfo structure for given index if it's valid, or a default one. FormatInfo::format isn't guaranteed to be unique. More... | |
std::unique_ptr< ExportOptionsEditor > | CreateOptionsEditor (int, ExportOptionsEditor::Listener *listener) const override |
Creates format-dependent options editor, that is used to create a valid set of parameters to be used in exporting. More... | |
std::unique_ptr< ExportProcessor > | CreateProcessor (int format) const override |
std::vector< std::string > | GetMimeTypes (int) const override |
bool | ParseConfig (int formatIndex, const rapidjson::Value &document, ExportProcessor::Parameters ¶meters) const override |
Attempt to parse configuration JSON object and produce a suitable set of parameters. Configuration is format dependent. More... | |
Public Member Functions inherited from ExportPlugin | |
ExportPlugin () | |
virtual | ~ExportPlugin () |
virtual int | GetFormatCount () const =0 |
virtual FormatInfo | GetFormatInfo (int index) const =0 |
Returns FormatInfo structure for given index if it's valid, or a default one. FormatInfo::format isn't guaranteed to be unique. More... | |
virtual std::unique_ptr< ExportOptionsEditor > | CreateOptionsEditor (int formatIndex, ExportOptionsEditor::Listener *listener) const =0 |
Creates format-dependent options editor, that is used to create a valid set of parameters to be used in exporting. More... | |
virtual std::vector< std::string > | GetMimeTypes (int formatIndex) const |
virtual bool | ParseConfig (int formatIndex, const rapidjson::Value &config, ExportProcessor::Parameters ¶meters) const |
Attempt to parse configuration JSON object and produce a suitable set of parameters. Configuration is format dependent. More... | |
virtual bool | CheckFileName (wxFileName &filename, int format=0) const |
virtual std::unique_ptr< ExportProcessor > | CreateProcessor (int format) const =0 |
Definition at line 1631 of file ExportMP3.cpp.
|
default |
|
overridevirtual |
Reimplemented from ExportPlugin.
Definition at line 1753 of file ExportMP3.cpp.
References BasicUI::Error, audacity::BasicSettings::Flush(), gPrefs, MP3Exporter::LoadLibrary(), MP3Exporter::Maybe, BasicUI::ShowMessageBox(), audacity::BasicSettings::Write(), wxT(), and XO().
|
overridevirtual |
Creates format-dependent options editor, that is used to create a valid set of parameters to be used in exporting.
listener | Option listener object that could be used by the editor to report on option changes. |
Implements ExportPlugin.
Definition at line 1668 of file ExportMP3.cpp.
|
overridevirtual |
format | Control which of the multiple formats this exporter is capable of exporting should be used. Used where a single export plug-in handles a number of related formats, but they have separate entries in the Format drop-down list box. For example, the options to export to "Other PCM", "AIFF 16 Bit" and "WAV 16 Bit" are all the same libsndfile export plug-in, but with subformat set to 0, 1, and 2 respectively. |
Implements ExportPlugin.
Definition at line 1673 of file ExportMP3.cpp.
|
overridevirtual |
|
overridevirtual |
Returns FormatInfo structure for given index if it's valid, or a default one. FormatInfo::format isn't guaranteed to be unique.
index | Should not exceed the number of formats provided by GetFormatCount() |
Implements ExportPlugin.
Definition at line 1660 of file ExportMP3.cpp.
|
overridevirtual |
Reimplemented from ExportPlugin.
Definition at line 1678 of file ExportMP3.cpp.
|
overridevirtual |
Attempt to parse configuration JSON object and produce a suitable set of parameters. Configuration is format dependent.
formatIndex | Internal format index |
config | Configuration JSON object |
parameters | Where to put parameters |
Reimplemented from ExportPlugin.
Definition at line 1683 of file ExportMP3.cpp.
References fixRateValues, MP3OptionIDMode, MP3OptionIDQualityABR, MP3OptionIDQualityCBR, MP3OptionIDQualitySET, and MP3OptionIDQualityVBR.