Audacity 3.2.0
|
Public Member Functions | |
bool | Initialize (AudacityProject &project, const Parameters ¶meters, const wxFileNameWrapper &filename, double t0, double t1, bool selectedOnly, double rate, 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 std::vector< char > | GetMetaChunk (const Tags *metadata) |
Private Attributes | |
struct { | |
TranslatableString status | |
double t0 | |
double t1 | |
unsigned channels | |
wxString cmd | |
bool showOutput | |
std::unique_ptr< Mixer > mixer | |
wxString output | |
std::unique_ptr< ExportCLProcess > process | |
} | context |
Additional Inherited Members | |
Public Types inherited from ExportProcessor | |
using | Parameters = std::vector< std::tuple< ExportOptionID, ExportValue > > |
Definition at line 418 of file ExportCL.cpp.
|
staticprivate |
Definition at line 748 of file ExportCL.cpp.
References Tags::GetRange(), name, TAG_ALBUM, TAG_ARTIST, TAG_COMMENTS, TAG_GENRE, TAG_TITLE, TAG_TRACK, TAG_YEAR, and wxT().
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 491 of file ExportCL.cpp.
References channels, CLOptionIDCommand, CLOptionIDShowOutput, context, ExportPluginHelpers::CreateMixer(), floatSample, Tags::Get(), GetMetaChunk(), ExportPluginHelpers::GetParameterValue(), lrint, process, project, SAMPLE_SIZE, anonymous_namespace{ClipSegmentTest.cpp}::sampleRate, t0, t1, wxT(), and XO().
|
overridevirtual |
Implements ExportProcessor.
Definition at line 642 of file ExportCL.cpp.
References BasicUI::CallAfter(), cmd, context, anonymous_namespace{ExportCL.cpp}::Drain(), Error, floatSample, output, process, SAMPLE_SIZE, ExportProcessorDelegate::SetStatusString(), Success, ExportPluginHelpers::UpdateProgress(), and BasicUI::Yield().
unsigned CLExportProcessor::channels |
Definition at line 425 of file ExportCL.cpp.
Referenced by Initialize().
wxString CLExportProcessor::cmd |
Definition at line 426 of file ExportCL.cpp.
Referenced by Process().
struct { ... } CLExportProcessor::context |
Referenced by Initialize(), and Process().
std::unique_ptr<Mixer> CLExportProcessor::mixer |
Definition at line 428 of file ExportCL.cpp.
wxString CLExportProcessor::output |
Definition at line 429 of file ExportCL.cpp.
Referenced by Process().
std::unique_ptr<ExportCLProcess> CLExportProcessor::process |
Definition at line 430 of file ExportCL.cpp.
Referenced by Initialize(), and Process().
bool CLExportProcessor::showOutput |
Definition at line 427 of file ExportCL.cpp.
TranslatableString CLExportProcessor::status |
Definition at line 422 of file ExportCL.cpp.
double CLExportProcessor::t0 |
Definition at line 423 of file ExportCL.cpp.
Referenced by Initialize().
double CLExportProcessor::t1 |
Definition at line 424 of file ExportCL.cpp.
Referenced by Initialize().