Audacity 3.2.0
|
Public Member Functions | |
~OGGExportProcessor () 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 void | FillComment (AudacityProject *project, vorbis_comment *comment, const Tags *metadata) |
Private Attributes | |
struct { | |
TranslatableString status | |
double t0 | |
double t1 | |
unsigned numChannels | |
std::unique_ptr< Mixer > mixer | |
std::unique_ptr< FileIO > outFile | |
wxFileNameWrapper fName | |
ogg_stream_state stream | |
ogg_page page | |
ogg_packet packet | |
vorbis_info info | |
vorbis_comment comment | |
vorbis_dsp_state dsp | |
vorbis_block block | |
bool stream_ok {false} | |
bool analysis_state_ok {false} | |
} | context |
Additional Inherited Members | |
Public Types inherited from ExportProcessor | |
using | Parameters = std::vector< std::tuple< ExportOptionID, ExportValue > > |
Definition at line 102 of file ExportOGG.cpp.
|
override |
Definition at line 172 of file ExportOGG.cpp.
References context.
|
staticprivate |
Definition at line 379 of file ExportOGG.cpp.
References comment, Tags::Get(), Tags::GetRange(), project, 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 188 of file ExportOGG.cpp.
References _, context, ExportPluginHelpers::CreateMixer(), FillComment(), floatSample, fName, ExportPluginHelpers::GetParameterValue(), numChannels, FileIO::Output, project, anonymous_namespace{ClipSegmentTest.cpp}::sampleRate, SAMPLES_PER_RUN, t0, t1, and XO().
|
overridevirtual |
Implements ExportProcessor.
Definition at line 282 of file ExportOGG.cpp.
References context, SAMPLES_PER_RUN, ExportProcessorDelegate::SetStatusString(), Success, and ExportPluginHelpers::UpdateProgress().
bool OGGExportProcessor::analysis_state_ok {false} |
Definition at line 124 of file ExportOGG.cpp.
vorbis_block OGGExportProcessor::block |
Definition at line 122 of file ExportOGG.cpp.
vorbis_comment OGGExportProcessor::comment |
Definition at line 120 of file ExportOGG.cpp.
Referenced by FillComment().
struct { ... } OGGExportProcessor::context |
Referenced by Initialize(), Process(), and ~OGGExportProcessor().
vorbis_dsp_state OGGExportProcessor::dsp |
Definition at line 121 of file ExportOGG.cpp.
wxFileNameWrapper OGGExportProcessor::fName |
Definition at line 112 of file ExportOGG.cpp.
Referenced by Initialize().
vorbis_info OGGExportProcessor::info |
Definition at line 119 of file ExportOGG.cpp.
std::unique_ptr<Mixer> OGGExportProcessor::mixer |
Definition at line 110 of file ExportOGG.cpp.
unsigned OGGExportProcessor::numChannels |
Definition at line 109 of file ExportOGG.cpp.
Referenced by Initialize().
std::unique_ptr<FileIO> OGGExportProcessor::outFile |
Definition at line 111 of file ExportOGG.cpp.
ogg_packet OGGExportProcessor::packet |
Definition at line 117 of file ExportOGG.cpp.
ogg_page OGGExportProcessor::page |
Definition at line 116 of file ExportOGG.cpp.
TranslatableString OGGExportProcessor::status |
Definition at line 106 of file ExportOGG.cpp.
ogg_stream_state OGGExportProcessor::stream |
Definition at line 115 of file ExportOGG.cpp.
bool OGGExportProcessor::stream_ok {false} |
Definition at line 123 of file ExportOGG.cpp.
double OGGExportProcessor::t0 |
Definition at line 107 of file ExportOGG.cpp.
Referenced by Initialize().
double OGGExportProcessor::t1 |
Definition at line 108 of file ExportOGG.cpp.
Referenced by Initialize().