Audacity 3.2.0
|
Utility class that provides helper functions for ExportPlugin. More...
#include <ExportPluginHelpers.h>
Static Public Member Functions | |
static std::unique_ptr< Mixer > | CreateMixer (const AudacityProject &project, bool selectionOnly, double startTime, double stopTime, unsigned numOutChannels, size_t outBufferSize, bool outInterleaved, double outRate, sampleFormat outFormat, MixerOptions::Downmix *mixerSpec) |
static ExportResult | UpdateProgress (ExportProcessorDelegate &delegate, Mixer &mixer, double t0, double t1) |
Sends progress update to delegate and retrieves state update from it. Typically used inside each export iteration. More... | |
template<typename T > | |
static T | GetParameterValue (const ExportProcessor::Parameters ¶meters, int id, T defaultValue=T()) |
Utility class that provides helper functions for ExportPlugin.
Definition at line 31 of file ExportPluginHelpers.h.
|
static |
Definition at line 23 of file ExportPluginHelpers.cpp.
References StretchingSequence::Create(), ExportUtils::FindExportWaveTracks(), TrackList::Get(), GetEffectStages(), GetMasterEffectStages(), DownmixStage::MapChannels, DownmixStage::Mixdown, project, and tracks.
Referenced by FFmpegExporter::CreateMixer(), CLExportProcessor::Initialize(), FLACExportProcessor::Initialize(), MP2ExportProcessor::Initialize(), MP3ExportProcessor::Initialize(), OGGExportProcessor::Initialize(), OpusExportProcessor::Initialize(), PCMExportProcessor::Initialize(), and WavPackExportProcessor::Initialize().
|
inlinestatic |
Definition at line 45 of file ExportPluginHelpers.h.
Referenced by FFmpegExporter::InitCodecs(), CLExportProcessor::Initialize(), MP2ExportProcessor::Initialize(), MP3ExportProcessor::Initialize(), OGGExportProcessor::Initialize(), and PCMExportProcessor::Initialize().
|
static |
Sends progress update to delegate and retrieves state update from it. Typically used inside each export iteration.
Definition at line 59 of file ExportPluginHelpers.cpp.
References Cancelled, anonymous_namespace{ExportPluginHelpers.cpp}::EvalExportProgress(), ExportProcessorDelegate::IsCancelled(), ExportProcessorDelegate::IsStopped(), ExportProcessorDelegate::OnProgress(), Stopped, and Success.
Referenced by CLExportProcessor::Process(), FFmpegExportProcessor::Process(), FLACExportProcessor::Process(), MP2ExportProcessor::Process(), MP3ExportProcessor::Process(), OGGExportProcessor::Process(), OpusExportProcessor::Process(), PCMExportProcessor::Process(), and WavPackExportProcessor::Process().