Audacity 3.2.0
|
Public Member Functions | |
~MP2ExportProcessor () override | |
bool | Initialize (AudacityProject &project, const Parameters ¶meters, const wxFileNameWrapper &filename, double t0, double t1, bool selectedOnly, double sampleRate, unsigned channels, MixerOptions::Downmix *mixerSpec, const Tags *tags) override |
Called before start processing. More... | |
ExportResult | Process (ExportProcessorDelegate &delegate) override |
Public Member Functions inherited from ExportProcessor | |
ExportProcessor (const ExportProcessor &)=delete | |
ExportProcessor & | operator= (const ExportProcessor &)=delete |
ExportProcessor ()=default | |
virtual | ~ExportProcessor () |
virtual bool | Initialize (AudacityProject &project, const Parameters ¶meters, const wxFileNameWrapper &filename, double t0, double t1, bool selectedOnly, double rate, unsigned channels, MixerOptions::Downmix *mixerSpec=nullptr, const Tags *tags=nullptr)=0 |
Called before start processing. More... | |
virtual ExportResult | Process (ExportProcessorDelegate &delegate)=0 |
Static Private Member Functions | |
static int | AddTags (ArrayOf< char > &buffer, bool *endOfFile, const Tags *tags) |
Private Attributes | |
struct { | |
TranslatableString status | |
double t0 | |
double t1 | |
wxFileNameWrapper fName | |
std::unique_ptr< Mixer > mixer | |
ArrayOf< char > id3buffer | |
int id3len | |
twolame_options * encodeOptions {} | |
std::unique_ptr< FileIO > outFile | |
} | context |
Static Private Attributes | |
static constexpr size_t | pcmBufferSize = 9216 / 2 |
static constexpr size_t | mp2BufferSize = 16384u |
Additional Inherited Members | |
Public Types inherited from ExportProcessor | |
using | Parameters = std::vector< std::tuple< ExportOptionID, ExportValue > > |
Definition at line 243 of file ExportMP2.cpp.
|
override |
Definition at line 326 of file ExportMP2.cpp.
References context.
|
staticprivate |
Definition at line 481 of file ExportMP2.cpp.
References Tags::GetRange(), name, ArrayOf< X >::reinit(), TAG_ALBUM, TAG_ARTIST, TAG_COMMENTS, TAG_GENRE, TAG_TITLE, TAG_TRACK, and TAG_YEAR.
Referenced by Initialize().
|
overridevirtual |
Called before start processing.
project | Processor may access project data, take care to exclude any data race |
parameters | A format-dependent set of parameters used in exporting |
selectedOnly | Set to true if all tracks should be mixed, to false if only the selected tracks should be mixed and exported. |
tags | A Tags object that will over-ride the one in *project and be used to tag the file that is exported. @retern Implementations may simply return false without any error reporting. This is to temporarily preserve old behavior, which is to be removed in the nearest future. |
Implements ExportProcessor.
Definition at line 333 of file ExportMP2.cpp.
References _, AddTags(), context, ExportPluginHelpers::CreateMixer(), encodeOptions, fName, Tags::Get(), ExportPluginHelpers::GetParameterValue(), int16Sample, anonymous_namespace{ExportMP2.cpp}::MP2OptionIDBitRateMPEG1, anonymous_namespace{ExportMP2.cpp}::MP2OptionIDBitRateMPEG2, anonymous_namespace{ExportMP2.cpp}::MP2OptionIDVersion, FileIO::Output, pcmBufferSize, project, anonymous_namespace{ClipSegmentTest.cpp}::sampleRate, t0, t1, and XO().
|
overridevirtual |
Implements ExportProcessor.
Definition at line 407 of file ExportMP2.cpp.
References context, mp2BufferSize, ExportProcessorDelegate::SetStatusString(), Success, and ExportPluginHelpers::UpdateProgress().
struct { ... } MP2ExportProcessor::context |
Referenced by Initialize(), Process(), and ~MP2ExportProcessor().
twolame_options* MP2ExportProcessor::encodeOptions {} |
Definition at line 258 of file ExportMP2.cpp.
Referenced by Initialize().
wxFileNameWrapper MP2ExportProcessor::fName |
Definition at line 254 of file ExportMP2.cpp.
Referenced by Initialize().
ArrayOf<char> MP2ExportProcessor::id3buffer |
Definition at line 256 of file ExportMP2.cpp.
int MP2ExportProcessor::id3len |
Definition at line 257 of file ExportMP2.cpp.
std::unique_ptr<Mixer> MP2ExportProcessor::mixer |
Definition at line 255 of file ExportMP2.cpp.
|
staticconstexprprivate |
Definition at line 247 of file ExportMP2.cpp.
Referenced by Process().
std::unique_ptr<FileIO> MP2ExportProcessor::outFile |
Definition at line 259 of file ExportMP2.cpp.
|
staticconstexprprivate |
Definition at line 246 of file ExportMP2.cpp.
Referenced by Initialize().
TranslatableString MP2ExportProcessor::status |
Definition at line 251 of file ExportMP2.cpp.
double MP2ExportProcessor::t0 |
Definition at line 252 of file ExportMP2.cpp.
Referenced by Initialize().
double MP2ExportProcessor::t1 |
Definition at line 253 of file ExportMP2.cpp.
Referenced by Initialize().