Audacity 3.2.0
|
#include "ExportMP3.h"
#include <wx/app.h>
#include <wx/defs.h>
#include <wx/dynlib.h>
#include <wx/ffile.h>
#include <wx/log.h>
#include <wx/mimetype.h>
#include <wx/textctrl.h>
#include <wx/choice.h>
#include <rapidjson/document.h>
#include "FileNames.h"
#include "float_cast.h"
#include "HelpSystem.h"
#include "Mix.h"
#include "Prefs.h"
#include "Tags.h"
#include "Track.h"
#include "wxFileNameWrapper.h"
#include "wxPanelWrapper.h"
#include "Project.h"
#include "Export.h"
#include "BasicUI.h"
#include <lame/lame.h>
#include "ExportOptionsEditor.h"
#include "ExportPluginHelpers.h"
#include "ExportPluginRegistry.h"
#include "SelectFile.h"
#include "ShuttleGui.h"
Go to the source code of this file.
Classes | |
class | MP3ExportOptionsEditor |
class | FindDialog |
struct | be_version |
class | MP3Exporter |
Class used to export MP3 files. More... | |
class | MP3ExportProcessor |
class | ExportMP3 |
Namespaces | |
namespace | anonymous_namespace{ExportMP3.cpp} |
Macros | |
#define | ID_BROWSE 5000 |
#define | ID_DLOAD 5001 |
Enumerations | |
enum | : int { QUALITY_2 = 2 , PRESET_INSANE = 0 , PRESET_EXTREME = 1 , PRESET_STANDARD = 2 , PRESET_MEDIUM = 3 } |
enum | MP3OptionID : int { MP3OptionIDMode = 0 , MP3OptionIDQualitySET , MP3OptionIDQualityVBR , MP3OptionIDQualityABR , MP3OptionIDQualityCBR } |
Functions | |
TranslatableString | n_kbps (int n) |
int | anonymous_namespace{ExportMP3.cpp}::ValidateValue (int nValues, int value, int defaultValue) |
int | anonymous_namespace{ExportMP3.cpp}::ValidateValue (const std::vector< int > &values, int value, int defaultValue) |
int | anonymous_namespace{ExportMP3.cpp}::ValidateIndex (const std::vector< int > &values, int value, int defaultIndex) |
TranslatableString | GetMP3Version (wxWindow *parent, bool prompt) |
Variables | |
static const TranslatableStrings | fixRateNames |
static const std::vector< ExportValue > | fixRateValues |
static const TranslatableStrings | varRateNames |
static const TranslatableStrings | setRateNames |
static const TranslatableStrings | setRateNamesShort |
static const std::vector< int > | sampRates |
const std::initializer_list< ExportOption > | MP3Options |
static ExportPluginRegistry::RegisteredPlugin | sRegisteredPlugin |
#define ID_BROWSE 5000 |
Definition at line 471 of file ExportMP3.cpp.
#define ID_DLOAD 5001 |
Definition at line 472 of file ExportMP3.cpp.
typedef void beVersion_t(be_version *) |
Definition at line 687 of file ExportMP3.cpp.
typedef unsigned long beWriteInfoTag_t(lame_global_flags *, char *) |
Definition at line 655 of file ExportMP3.cpp.
typedef const char * get_lame_version_t(void) |
Definition at line 609 of file ExportMP3.cpp.
typedef int lame_close_t(lame_global_flags *) |
Definition at line 631 of file ExportMP3.cpp.
typedef int CDECL lame_encode_buffer_ieee_float_t(lame_t gfp, const float pcm_l[], const float pcm_r[], const int nsamples, unsigned char *mp3buf, const int mp3buf_size) |
Definition at line 611 of file ExportMP3.cpp.
typedef int CDECL lame_encode_buffer_interleaved_ieee_float_t(lame_t gfp, const float pcm[], const int nsamples, unsigned char *mp3buf, const int mp3buf_size) |
Definition at line 619 of file ExportMP3.cpp.
typedef int lame_encode_flush_t(lame_global_flags *gf, unsigned char *mp3buf, int size) |
Definition at line 626 of file ExportMP3.cpp.
typedef size_t lame_get_lametag_frame_t(const lame_global_flags *, unsigned char *buffer, size_t size) |
Definition at line 646 of file ExportMP3.cpp.
typedef int lame_init_params_t(lame_global_flags *) |
Definition at line 608 of file ExportMP3.cpp.
typedef lame_global_flags * lame_init_t(void) |
Definition at line 607 of file ExportMP3.cpp.
typedef void lame_mp3_tags_fid_t(lame_global_flags *, FILE *) |
Definition at line 647 of file ExportMP3.cpp.
typedef int lame_set_brate_t(lame_global_flags *, int) |
Definition at line 637 of file ExportMP3.cpp.
typedef int lame_set_bWriteVbrTag_t(lame_global_flags *, int) |
Definition at line 645 of file ExportMP3.cpp.
typedef int lame_set_disable_reservoir_t(lame_global_flags *, int) |
Definition at line 644 of file ExportMP3.cpp.
typedef int lame_set_error_protection_t(lame_global_flags *, int) |
Definition at line 643 of file ExportMP3.cpp.
typedef int lame_set_in_samplerate_t(lame_global_flags *, int) |
Definition at line 633 of file ExportMP3.cpp.
typedef int lame_set_mode_t(lame_global_flags *, MPEG_mode) |
Definition at line 641 of file ExportMP3.cpp.
typedef int lame_set_num_channels_t(lame_global_flags *, int) |
Definition at line 635 of file ExportMP3.cpp.
typedef int lame_set_out_samplerate_t(lame_global_flags *, int) |
Definition at line 634 of file ExportMP3.cpp.
typedef int lame_set_preset_t(lame_global_flags *, int) |
Definition at line 642 of file ExportMP3.cpp.
typedef int lame_set_quality_t(lame_global_flags *, int) |
Definition at line 636 of file ExportMP3.cpp.
typedef int lame_set_VBR_min_bitrate_kbps_t(lame_global_flags *, int) |
Definition at line 640 of file ExportMP3.cpp.
typedef int lame_set_VBR_q_t(lame_global_flags *, int) |
Definition at line 639 of file ExportMP3.cpp.
typedef int lame_set_VBR_t(lame_global_flags *, vbr_mode) |
Definition at line 638 of file ExportMP3.cpp.
anonymous enum : int |
Enumerator | |
---|---|
QUALITY_2 | |
PRESET_INSANE | |
PRESET_EXTREME | |
PRESET_STANDARD | |
PRESET_MEDIUM |
Definition at line 108 of file ExportMP3.cpp.
enum MP3OptionID : int |
Enumerator | |
---|---|
MP3OptionIDMode | |
MP3OptionIDQualitySET | |
MP3OptionIDQualityVBR | |
MP3OptionIDQualityABR | |
MP3OptionIDQualityCBR |
Definition at line 209 of file ExportMP3.cpp.
TranslatableString GetMP3Version | ( | wxWindow * | parent, |
bool | prompt | ||
) |
Definition at line 2234 of file ExportMP3.cpp.
References MP3Exporter::FindLibrary(), MP3Exporter::GetLibraryVersion(), MP3Exporter::LoadLibrary(), MP3Exporter::No, Verbatim(), XO(), and MP3Exporter::Yes.
Referenced by anonymous_namespace{MP3Prefs.cpp}::AddControls().
|
inline |
Definition at line 121 of file ExportMP3.cpp.
References XO().
|
static |
|
static |
Definition at line 144 of file ExportMP3.cpp.
Referenced by ExportMP3::ParseConfig().
const std::initializer_list<ExportOption> MP3Options |
Definition at line 218 of file ExportMP3.cpp.
|
static |
Definition at line 197 of file ExportMP3.cpp.
Referenced by MP3ExportProcessor::AskResample(), FFmpegExporter::AskResample(), FFmpegExporter::CheckSampleRate(), MP3ExportOptionsEditor::GetSampleRateList(), and MP3ExportProcessor::Initialize().
|
static |
|
static |
Definition at line 190 of file ExportMP3.cpp.
Referenced by MP3ExportProcessor::Initialize().
|
static |
Definition at line 2226 of file ExportMP3.cpp.
|
static |
Definition at line 165 of file ExportMP3.cpp.
Referenced by MP3ExportProcessor::Initialize().