![]() |
Audacity 3.2.0
|
Public Member Functions | |
ExportOGG () | |
void | OptionsCreate (ShuttleGui &S, int format) override |
ProgressResult | Export (AudacityProject *project, std::unique_ptr< BasicUI::ProgressDialog > &pDialog, unsigned channels, const wxFileNameWrapper &fName, bool selectedOnly, double t0, double t1, MixerSpec *mixerSpec=NULL, const Tags *metadata=NULL, int subformat=0) override |
called to export audio into a file. More... | |
![]() | |
ExportPlugin () | |
virtual | ~ExportPlugin () |
int | AddFormat () |
Add a NEW entry to the list of formats this plug-in can export. More... | |
void | SetFormat (const wxString &format, int index) |
void | SetDescription (const TranslatableString &description, int index) |
void | AddExtension (const FileExtension &extension, int index) |
void | SetExtensions (FileExtensions extensions, int index) |
void | SetMask (FileNames::FileTypes mask, int index) |
void | SetMaxChannels (unsigned maxchannels, unsigned index) |
void | SetCanMetaData (bool canmetadata, int index) |
virtual int | GetFormatCount () |
virtual wxString | GetFormat (int index) |
TranslatableString | GetDescription (int index) |
virtual FileExtension | GetExtension (int index=0) |
Return the (first) file name extension for the sub-format. More... | |
virtual FileExtensions | GetExtensions (int index=0) |
Return all the file name extensions used for the sub-format. More... | |
FileNames::FileTypes | GetMask (int index) |
virtual unsigned | GetMaxChannels (int index) |
virtual bool | GetCanMetaData (int index) |
virtual bool | IsExtension (const FileExtension &ext, int index) |
virtual bool | DisplayOptions (wxWindow *parent, int format=0) |
virtual void | OptionsCreate (ShuttleGui &S, int format)=0 |
virtual bool | CheckFileName (wxFileName &filename, int format=0) |
virtual int | SetNumExportChannels () |
Exporter plug-ins may override this to specify the number of channels in exported file. -1 for unspecified. More... | |
virtual ProgressResult | Export (AudacityProject *project, std::unique_ptr< BasicUI::ProgressDialog > &pDialog, unsigned channels, const wxFileNameWrapper &fName, bool selectedOnly, double t0, double t1, MixerSpec *mixerSpec=NULL, const Tags *metadata=NULL, int subformat=0)=0 |
called to export audio into a file. More... | |
Private Member Functions | |
bool | FillComment (AudacityProject *project, vorbis_comment *comment, const Tags *metadata) |
Additional Inherited Members | |
![]() | |
using | ProgressResult = BasicUI::ProgressResult |
![]() | |
std::unique_ptr< Mixer > | CreateMixer (const TrackList &tracks, bool selectionOnly, double startTime, double stopTime, unsigned numOutChannels, size_t outBufferSize, bool outInterleaved, double outRate, sampleFormat outFormat, MixerSpec *mixerSpec) |
![]() | |
static void | InitProgress (std::unique_ptr< BasicUI::ProgressDialog > &pDialog, const TranslatableString &title, const TranslatableString &message) |
static void | InitProgress (std::unique_ptr< BasicUI::ProgressDialog > &pDialog, const wxFileNameWrapper &title, const TranslatableString &message) |
Definition at line 123 of file ExportOGG.cpp.
ExportOGG::ExportOGG | ( | ) |
Definition at line 148 of file ExportOGG.cpp.
References ExportPlugin::AddExtension(), ExportPlugin::AddFormat(), ExportPlugin::SetCanMetaData(), ExportPlugin::SetDescription(), ExportPlugin::SetFormat(), ExportPlugin::SetMaxChannels(), wxT(), and XO().
|
overridevirtual |
called to export audio into a file.
pDialog | To be initialized with pointer to a NEW ProgressDialog if it was null, otherwise gives an existing dialog to be reused (working around a problem in wxWidgets for Mac; see bug 1600) |
selectedOnly | Set to true if all tracks should be mixed, to false if only the selected tracks should be mixed and exported. |
metadata | A Tags object that will over-ride the one in *project and be used to tag the file that is exported. |
subformat | Control which of the multiple formats this exporter is capable of exporting should be used. Used where a single export plug-in handles a number of related formats, but they have separate entries in the Format drop-down list box. For example, the options to export to "Other PCM", "AIFF 16 Bit" and "WAV 16 Bit" are all the same libsndfile export plug-in, but with subformat set to 0, 1, and 2 respectively. |
Implements ExportPlugin.
Definition at line 159 of file ExportOGG.cpp.
References AudacityMessageBox(), RefreshCode::Cancelled, FileIO::Close(), ExportPlugin::CreateMixer(), FillComment(), floatSample, ProjectRate::Get(), TrackList::Get(), ProjectRate::GetRate(), gPrefs, ExportPlugin::InitProgress(), FileIO::IsOpened(), FileIO::Output, SAMPLES_PER_RUN, ShowDiskFullExportErrorDialog(), ShowExportErrorDialog(), BasicUI::Success, FileIO::Write(), wxT(), and XO().
|
private |
Definition at line 372 of file ExportOGG.cpp.
References Tags::Get(), Tags::GetRange(), TAG_YEAR, and wxT().
Referenced by Export().
|
overridevirtual |
Implements ExportPlugin.
Definition at line 367 of file ExportOGG.cpp.