Audacity 3.2.0
|
Public Member Functions | |
~WavPackExportProcessor () | |
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 | WriteBlock (void *id, void *data, int32_t length) |
Private Attributes | |
struct { | |
TranslatableString status | |
double t0 | |
double t1 | |
unsigned numChannels | |
wxFileNameWrapper fName | |
sampleFormat format | |
WriteId outWvFile | |
WriteId outWvcFile | |
WavpackContext * wpc {} | |
std::unique_ptr< Mixer > mixer | |
std::unique_ptr< Tags > metadata | |
} | context |
Static Private Attributes | |
static constexpr size_t | SAMPLES_PER_RUN = 8192u |
Additional Inherited Members | |
Public Types inherited from ExportProcessor | |
using | Parameters = std::vector< std::tuple< ExportOptionID, ExportValue > > |
Definition at line 244 of file ExportWavPack.cpp.
WavPackExportProcessor::~WavPackExportProcessor | ( | ) |
Definition at line 373 of file ExportWavPack.cpp.
References context.
|
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 379 of file ExportWavPack.cpp.
References _, context, ExportPluginHelpers::CreateMixer(), WriteId::file, floatSample, fName, Tags::Get(), int16Sample, int24Sample, metadata, numChannels, anonymous_namespace{ExportWavPack.cpp}::OptionIDBitDepth, anonymous_namespace{ExportWavPack.cpp}::OptionIDBitRate, anonymous_namespace{ExportWavPack.cpp}::OptionIDCreateCorrection, anonymous_namespace{ExportWavPack.cpp}::OptionIDHybridMode, anonymous_namespace{ExportWavPack.cpp}::OptionIDQuality, outWvcFile, outWvFile, project, anonymous_namespace{ClipSegmentTest.cpp}::sampleRate, SAMPLES_PER_RUN, t0, t1, WriteBlock(), and XO().
|
overridevirtual |
Implements ExportProcessor.
Definition at line 493 of file ExportWavPack.cpp.
References context, Error, int16Sample, SAMPLES_PER_RUN, ExportProcessorDelegate::SetStatusString(), Success, and ExportPluginHelpers::UpdateProgress().
|
staticprivate |
Definition at line 583 of file ExportWavPack.cpp.
References WriteId::bytesWritten, WriteId::file, WriteId::firstBlockSize, and id.
Referenced by Initialize().
struct { ... } WavPackExportProcessor::context |
Referenced by Initialize(), Process(), and ~WavPackExportProcessor().
wxFileNameWrapper WavPackExportProcessor::fName |
Definition at line 255 of file ExportWavPack.cpp.
Referenced by Initialize().
sampleFormat WavPackExportProcessor::format |
Definition at line 256 of file ExportWavPack.cpp.
std::unique_ptr<Tags> WavPackExportProcessor::metadata |
Definition at line 260 of file ExportWavPack.cpp.
Referenced by Initialize().
std::unique_ptr<Mixer> WavPackExportProcessor::mixer |
Definition at line 259 of file ExportWavPack.cpp.
unsigned WavPackExportProcessor::numChannels |
Definition at line 254 of file ExportWavPack.cpp.
Referenced by Initialize().
WriteId WavPackExportProcessor::outWvcFile |
Definition at line 257 of file ExportWavPack.cpp.
Referenced by Initialize().
WriteId WavPackExportProcessor::outWvFile |
Definition at line 257 of file ExportWavPack.cpp.
Referenced by Initialize().
|
staticconstexprprivate |
Definition at line 247 of file ExportWavPack.cpp.
Referenced by Initialize(), and Process().
TranslatableString WavPackExportProcessor::status |
Definition at line 251 of file ExportWavPack.cpp.
double WavPackExportProcessor::t0 |
Definition at line 252 of file ExportWavPack.cpp.
Referenced by Initialize().
double WavPackExportProcessor::t1 |
Definition at line 253 of file ExportWavPack.cpp.
Referenced by Initialize().
WavpackContext* WavPackExportProcessor::wpc {} |
Definition at line 258 of file ExportWavPack.cpp.