Audacity 3.2.0
Enumerations | Functions | Variables
anonymous_namespace{ExportAudioDialog.cpp} Namespace Reference

Enumerations

enum  {
  ExportFilePanelID = 10000 , ExportRangeProjectID , ExportRangeSelectionID , ExportRangeSplitID ,
  TrimBlankSpaceBeforeFirstClipID , ExportModeTracksID , ExportModeLabelsID , IncludeAudioBeforeFirstLabelID ,
  ExportSplitNamePolicyTrackNameID , ExportSplitNamePolicyNumberingBeforeNameID , ExportSplitNamePolicyNumberingAfterPrefixID , FileNamePrefixID ,
  OverwriteExistingFilesID , EditMetadataID
}
 

Functions

unsigned GetNumExportChannels (const TrackList &tracks)
 

Variables

ChoiceSetting ExportAudioExportRange
 
ChoiceSetting ExportAudioSplitMode
 
ChoiceSetting ExportAudioSplitNamePolicy
 
BoolSetting ExportAudioIncludeAudioBeforeFirstLabel { L"/ExportAudioDialog/IncludeAudioBeforeFirstLabel", false }
 
BoolSetting ExportAudioOverwriteExisting { L"/ExportAudioDialog/OverwriteExisting", false }
 
BoolSetting ExportAudioSkipSilenceAtBeginning { L"/ExportAudioDialog/SkipSilenceAtBeginning", false }
 
StringSetting ExportAudioDefaultFormat { L"/ExportAudioDialog/Format", L"WAV" }
 
StringSetting ExportAudioDefaultPath { L"ExportAudioDialog/DefaultPath", L"" }
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ExportFilePanelID 
ExportRangeProjectID 
ExportRangeSelectionID 
ExportRangeSplitID 
TrimBlankSpaceBeforeFirstClipID 
ExportModeTracksID 
ExportModeLabelsID 
IncludeAudioBeforeFirstLabelID 
ExportSplitNamePolicyTrackNameID 
ExportSplitNamePolicyNumberingBeforeNameID 
ExportSplitNamePolicyNumberingAfterPrefixID 
FileNamePrefixID 
OverwriteExistingFilesID 
EditMetadataID 

Definition at line 89 of file ExportAudioDialog.cpp.

89 {
90 ExportFilePanelID = 10000,//to avoid IDs collision with ExportFilePanel items
91
95
97
100
102
106
108
110
112};

Function Documentation

◆ GetNumExportChannels()

unsigned anonymous_namespace{ExportAudioDialog.cpp}::GetNumExportChannels ( const TrackList tracks)

Definition at line 667 of file ExportAudioDialog.cpp.

668{
669 bool anySolo =
670 !((tracks.Any<const WaveTrack>() + &WaveTrack::GetSolo).empty());
671
672 // Want only unmuted wave tracks.
673 const auto range = tracks.Any<const WaveTrack>() -
675 return std::all_of(range.begin(), range.end(),
676 [](auto *pTrack){ return IsMono(*pTrack); }
677 )
678 ? 1
679 : 2;
680}
const auto tracks
bool GetNotSolo() const
Definition: PlayableTrack.h:50
A Track that contains audio waveform data.
Definition: WaveTrack.h:227
bool GetMute() const override
May vary asynchronously.
Definition: WaveTrack.cpp:2830
bool GetSolo() const override
May vary asynchronously.
Definition: WaveTrack.cpp:2835

References WaveTrack::GetMute(), PlayableTrack::GetNotSolo(), WaveTrack::GetSolo(), and tracks.

Referenced by ExportAudioDialog::UpdateLabelExportSettings().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ExportAudioDefaultFormat

StringSetting anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioDefaultFormat { L"/ExportAudioDialog/Format", L"WAV" }

◆ ExportAudioDefaultPath

StringSetting anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioDefaultPath { L"ExportAudioDialog/DefaultPath", L"" }

◆ ExportAudioExportRange

ChoiceSetting anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioExportRange
Initial value:
{ L"/ExportAudioDialog/ExportRange",
{
{ "project", XO("Entire &Project") },
{ "split", XO("M&ultiple Files") },
{ "selection", XO("Curren&t Selection") }
},
0,
}
XO("Cut/Copy/Paste")

Definition at line 52 of file ExportAudioDialog.cpp.

Referenced by ExportAudioDialog::ExportAudioDialog(), and ExportAudioDialog::PopulateOrExchange().

◆ ExportAudioIncludeAudioBeforeFirstLabel

BoolSetting anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioIncludeAudioBeforeFirstLabel { L"/ExportAudioDialog/IncludeAudioBeforeFirstLabel", false }

Definition at line 79 of file ExportAudioDialog.cpp.

Referenced by ExportAudioDialog::PopulateOrExchange().

◆ ExportAudioOverwriteExisting

BoolSetting anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioOverwriteExisting { L"/ExportAudioDialog/OverwriteExisting", false }

Definition at line 81 of file ExportAudioDialog.cpp.

Referenced by ExportAudioDialog::PopulateOrExchange().

◆ ExportAudioSkipSilenceAtBeginning

BoolSetting anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioSkipSilenceAtBeginning { L"/ExportAudioDialog/SkipSilenceAtBeginning", false }

Definition at line 83 of file ExportAudioDialog.cpp.

Referenced by ExportAudioDialog::PopulateOrExchange().

◆ ExportAudioSplitMode

ChoiceSetting anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioSplitMode
Initial value:
{ L"/ExportAudioDialog/SplitMode",
{
{ "tracks", XO("Tracks") },
{ "labels", XO("Labels") }
},
0
}

Definition at line 62 of file ExportAudioDialog.cpp.

Referenced by ExportAudioDialog::PopulateOrExchange().

◆ ExportAudioSplitNamePolicy

ChoiceSetting anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioSplitNamePolicy
Initial value:
{ L"/ExportAudioDialog/SplitNamePolicy",
{
{ "name", XO("Using Label/Track Name") },
{ "num_and_name", XO("Numbering before Label/Track Name") },
{ "num_and_prefix", XO("Numbering after File name prefix") }
},
0
}

Definition at line 70 of file ExportAudioDialog.cpp.

Referenced by ExportAudioDialog::ExportAudioDialog(), and ExportAudioDialog::PopulateOrExchange().