![]() |
Audacity 3.2.0
|
#include "ExportMP3.h"
#include <wx/app.h>
#include <wx/defs.h>
#include <wx/choice.h>
#include <wx/checkbox.h>
#include <wx/dynlib.h>
#include <wx/ffile.h>
#include <wx/log.h>
#include <wx/mimetype.h>
#include <wx/radiobut.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/window.h>
#include "FileNames.h"
#include "float_cast.h"
#include "Mix.h"
#include "Prefs.h"
#include "ProjectRate.h"
#include "../ProjectSettings.h"
#include "../ProjectWindow.h"
#include "SelectFile.h"
#include "ShuttleGui.h"
#include "Tags.h"
#include "Track.h"
#include "HelpSystem.h"
#include "AudacityMessageBox.h"
#include "ProgressDialog.h"
#include "wxFileNameWrapper.h"
#include "Project.h"
#include "Export.h"
#include <lame/lame.h>
Go to the source code of this file.
Classes | |
class | ExportMP3Options |
class | FindDialog |
struct | be_version |
class | MP3Exporter |
Class used to export MP3 files. More... | |
class | ExportMP3 |
Namespaces | |
namespace | anonymous_namespace{ExportMP3.cpp} |
Macros | |
#define | ID_SET 7000 |
#define | ID_VBR 7001 |
#define | ID_ABR 7002 |
#define | ID_CBR 7003 |
#define | ID_QUALITY 7004 |
#define | ID_MONO 7005 |
#define | ID_BROWSE 5000 |
#define | ID_DLOAD 5001 |
Enumerations | |
enum | MP3ChannelMode : unsigned { CHANNEL_JOINT = 0 , CHANNEL_STEREO = 1 , CHANNEL_MONO = 2 } |
enum | : int { QUALITY_2 = 2 , PRESET_INSANE = 0 , PRESET_EXTREME = 1 , PRESET_STANDARD = 2 , PRESET_MEDIUM = 3 } |
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< int > | fixRateValues |
static const TranslatableStrings | varRateNames |
static const TranslatableStrings | setRateNames |
static const TranslatableStrings | setRateNamesShort |
static const std::vector< int > | sampRates |
EnumSetting< MP3RateMode > | MP3RateModeSetting |
static EnumSetting< MP3ChannelMode > | MP3ChannelModeSetting |
static Exporter::RegisteredExportPlugin | sRegisteredPlugin |
#define ID_ABR 7002 |
Definition at line 219 of file ExportMP3.cpp.
#define ID_BROWSE 5000 |
Definition at line 581 of file ExportMP3.cpp.
#define ID_CBR 7003 |
Definition at line 220 of file ExportMP3.cpp.
#define ID_DLOAD 5001 |
Definition at line 582 of file ExportMP3.cpp.
#define ID_MONO 7005 |
Definition at line 222 of file ExportMP3.cpp.
#define ID_QUALITY 7004 |
Definition at line 221 of file ExportMP3.cpp.
#define ID_SET 7000 |
Definition at line 217 of file ExportMP3.cpp.
#define ID_VBR 7001 |
Definition at line 218 of file ExportMP3.cpp.
typedef void beVersion_t(be_version *) |
Definition at line 797 of file ExportMP3.cpp.
typedef unsigned long beWriteInfoTag_t(lame_global_flags *, char *) |
Definition at line 765 of file ExportMP3.cpp.
typedef const char * get_lame_version_t(void) |
Definition at line 719 of file ExportMP3.cpp.
typedef int lame_close_t(lame_global_flags *) |
Definition at line 741 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 721 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 729 of file ExportMP3.cpp.
typedef int lame_encode_flush_t(lame_global_flags *gf, unsigned char *mp3buf, int size) |
Definition at line 736 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 756 of file ExportMP3.cpp.
typedef int lame_init_params_t(lame_global_flags *) |
Definition at line 718 of file ExportMP3.cpp.
typedef lame_global_flags * lame_init_t(void) |
Definition at line 717 of file ExportMP3.cpp.
typedef void lame_mp3_tags_fid_t(lame_global_flags *, FILE *) |
Definition at line 757 of file ExportMP3.cpp.
typedef int lame_set_brate_t(lame_global_flags *, int) |
Definition at line 747 of file ExportMP3.cpp.
typedef int lame_set_bWriteVbrTag_t(lame_global_flags *, int) |
Definition at line 755 of file ExportMP3.cpp.
typedef int lame_set_disable_reservoir_t(lame_global_flags *, int) |
Definition at line 754 of file ExportMP3.cpp.
typedef int lame_set_error_protection_t(lame_global_flags *, int) |
Definition at line 753 of file ExportMP3.cpp.
typedef int lame_set_in_samplerate_t(lame_global_flags *, int) |
Definition at line 743 of file ExportMP3.cpp.
typedef int lame_set_mode_t(lame_global_flags *, MPEG_mode) |
Definition at line 751 of file ExportMP3.cpp.
typedef int lame_set_num_channels_t(lame_global_flags *, int) |
Definition at line 745 of file ExportMP3.cpp.
typedef int lame_set_out_samplerate_t(lame_global_flags *, int) |
Definition at line 744 of file ExportMP3.cpp.
typedef int lame_set_preset_t(lame_global_flags *, int) |
Definition at line 752 of file ExportMP3.cpp.
typedef int lame_set_quality_t(lame_global_flags *, int) |
Definition at line 746 of file ExportMP3.cpp.
typedef int lame_set_VBR_min_bitrate_kbps_t(lame_global_flags *, int) |
Definition at line 750 of file ExportMP3.cpp.
typedef int lame_set_VBR_q_t(lame_global_flags *, int) |
Definition at line 749 of file ExportMP3.cpp.
typedef int lame_set_VBR_t(lame_global_flags *, vbr_mode) |
Definition at line 748 of file ExportMP3.cpp.
anonymous enum : int |
Enumerator | |
---|---|
QUALITY_2 | |
PRESET_INSANE | |
PRESET_EXTREME | |
PRESET_STANDARD | |
PRESET_MEDIUM |
Definition at line 114 of file ExportMP3.cpp.
enum MP3ChannelMode : unsigned |
Enumerator | |
---|---|
CHANNEL_JOINT | |
CHANNEL_STEREO | |
CHANNEL_MONO |
Definition at line 108 of file ExportMP3.cpp.
TranslatableString GetMP3Version | ( | wxWindow * | parent, |
bool | prompt | ||
) |
Definition at line 2252 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 127 of file ExportMP3.cpp.
References XO().
|
static |
Definition at line 129 of file ExportMP3.cpp.
Referenced by ExportMP3Options::OnABR(), ExportMP3Options::OnCBR(), and ExportMP3Options::PopulateOrExchange().
|
static |
Definition at line 150 of file ExportMP3.cpp.
Referenced by ExportMP3::Export(), ExportMP3Options::OnABR(), ExportMP3Options::OnCBR(), ExportMP3Options::OnQuality(), and ExportMP3Options::PopulateOrExchange().
|
static |
Definition at line 311 of file ExportMP3.cpp.
Referenced by ExportMP3::Export(), and ExportMP3Options::PopulateOrExchange().
EnumSetting< MP3RateMode > MP3RateModeSetting |
Definition at line 294 of file ExportMP3.cpp.
Referenced by ExportMP3::Export(), and ExportMP3Options::PopulateOrExchange().
|
static |
Definition at line 205 of file ExportMP3.cpp.
Referenced by ExportMP3::AskResample(), ExportFFmpeg::AskResample(), ExportFFmpeg::CheckSampleRate(), and ExportMP3::Export().
|
static |
Definition at line 189 of file ExportMP3.cpp.
Referenced by ExportMP3::Export(), ExportMP3Options::OnSET(), and ExportMP3Options::PopulateOrExchange().
|
static |
Definition at line 197 of file ExportMP3.cpp.
Referenced by ExportMP3::Export().
|
static |
Definition at line 2244 of file ExportMP3.cpp.
|
static |
Definition at line 171 of file ExportMP3.cpp.
Referenced by ExportMP3::Export(), ExportMP3Options::OnVBR(), and ExportMP3Options::PopulateOrExchange().