Audacity  3.0.3
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
ExportFFmpegAC3Options Class Referencefinal

AC3 export options dialog. More...

#include <ExportFFmpegDialogs.h>

Inheritance diagram for ExportFFmpegAC3Options:
[legend]
Collaboration diagram for ExportFFmpegAC3Options:
[legend]

Public Member Functions

 ExportFFmpegAC3Options (wxWindow *parent, int format)
 
virtual ~ExportFFmpegAC3Options ()
 
void PopulateOrExchange (ShuttleGui &S)
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
- Public Member Functions inherited from wxPanelWrapper
 wxPanelWrapper ()
 
 wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel"))
 
bool Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel"))
 
void SetLabel (const TranslatableString &label)
 
void SetName (const TranslatableString &name)
 
void SetToolTip (const TranslatableString &toolTip)
 
void SetName ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxPanel >
 wxTabTraversalWrapper (Args &&... args)
 
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Static Public Attributes

static const int iAC3SampleRates [] = { 32000, 44100, 48000, 0 }
 

Private Attributes

wxChoice * mBitRateChoice
 
int mBitRateFromChoice
 

Detailed Description

AC3 export options dialog.

Options dialog for FFmpeg exporting of AC3 format.

Definition at line 72 of file ExportFFmpegDialogs.h.

Constructor & Destructor Documentation

◆ ExportFFmpegAC3Options()

ExportFFmpegAC3Options::ExportFFmpegAC3Options ( wxWindow *  parent,
int  format 
)

Definition at line 196 of file ExportFFmpegDialogs.cpp.

197 : wxPanelWrapper(parent, wxID_ANY)
198 {
201 
203 }

References eIsCreatingFromPrefs, PopulateOrExchange(), and TransferDataToWindow().

Here is the call graph for this function:

◆ ~ExportFFmpegAC3Options()

ExportFFmpegAC3Options::~ExportFFmpegAC3Options ( )
virtual

Definition at line 205 of file ExportFFmpegDialogs.cpp.

206 {
208 }

References TransferDataFromWindow().

Here is the call graph for this function:

Member Function Documentation

◆ PopulateOrExchange()

void ExportFFmpegAC3Options::PopulateOrExchange ( ShuttleGui S)

Definition at line 212 of file ExportFFmpegDialogs.cpp.

213 {
214  S.StartVerticalLay();
215  {
216  S.StartHorizontalLay(wxCENTER);
217  {
218  S.StartMultiColumn(2, wxCENTER);
219  {
221  XXO("Bit Rate:"),
222  {wxT("/FileFormats/AC3BitRate"),
223  160000},
226  );
227  }
228  S.EndMultiColumn();
229  }
230  S.EndHorizontalLay();
231  }
232  S.EndVerticalLay();
233 }

References anonymous_namespace{ExportFFmpegDialogs.cpp}::AC3BitRateNames, anonymous_namespace{ExportFFmpegDialogs.cpp}::AC3BitRateValues, ShuttleGuiBase::EndHorizontalLay(), ShuttleGuiBase::EndMultiColumn(), ShuttleGuiBase::EndVerticalLay(), ShuttleGuiBase::StartHorizontalLay(), ShuttleGuiBase::StartMultiColumn(), ShuttleGuiBase::StartVerticalLay(), ShuttleGuiBase::TieNumberAsChoice(), and XXO.

Referenced by ExportFFmpegAC3Options(), and TransferDataFromWindow().

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

◆ TransferDataFromWindow()

bool ExportFFmpegAC3Options::TransferDataFromWindow ( )
override

Definition at line 244 of file ExportFFmpegDialogs.cpp.

245 {
246  ShuttleGui S(this, eIsSavingToPrefs);
248 
249  gPrefs->Flush();
250 
251  return true;
252 }

References eIsSavingToPrefs, FileConfig::Flush(), gPrefs, and PopulateOrExchange().

Referenced by ~ExportFFmpegAC3Options().

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

◆ TransferDataToWindow()

bool ExportFFmpegAC3Options::TransferDataToWindow ( )
override

Definition at line 237 of file ExportFFmpegDialogs.cpp.

238 {
239  return true;
240 }

Referenced by ExportFFmpegAC3Options().

Here is the caller graph for this function:

Member Data Documentation

◆ iAC3SampleRates

const int ExportFFmpegAC3Options::iAC3SampleRates = { 32000, 44100, 48000, 0 }
static

Sample Rates supported by AC3 encoder (must end with zero-element) It is not used in dialog anymore, but will be required later

Definition at line 85 of file ExportFFmpegDialogs.h.

Referenced by ExportFFmpeg::InitCodecs().

◆ mBitRateChoice

wxChoice* ExportFFmpegAC3Options::mBitRateChoice
private

Definition at line 89 of file ExportFFmpegDialogs.h.

◆ mBitRateFromChoice

int ExportFFmpegAC3Options::mBitRateFromChoice
private

Definition at line 90 of file ExportFFmpegDialogs.h.


The documentation for this class was generated from the following files:
ShuttleGuiBase::StartVerticalLay
void StartVerticalLay(int iProp=1)
Definition: ShuttleGui.cpp:1184
ExportFFmpegAC3Options::TransferDataToWindow
bool TransferDataToWindow() override
Definition: ExportFFmpegDialogs.cpp:237
gPrefs
FileConfig * gPrefs
Definition: Prefs.cpp:70
ShuttleGuiBase::TieNumberAsChoice
virtual wxChoice * TieNumberAsChoice(const TranslatableString &Prompt, const IntSetting &Setting, const TranslatableStrings &Choices, const std::vector< int > *pInternalChoices=nullptr, int iNoMatchSelector=0)
Definition: ShuttleGui.cpp:2011
ShuttleGuiBase::EndMultiColumn
void EndMultiColumn()
Definition: ShuttleGui.cpp:1238
XXO
#define XXO(s)
Definition: Internat.h:44
ShuttleGuiBase::EndHorizontalLay
void EndHorizontalLay()
Definition: ShuttleGui.cpp:1177
ShuttleGuiBase::StartHorizontalLay
void StartHorizontalLay(int PositionFlags=wxALIGN_CENTRE, int iProp=1)
Definition: ShuttleGui.cpp:1167
ShuttleGuiBase::StartMultiColumn
void StartMultiColumn(int nCols, int PositionFlags=wxALIGN_LEFT)
Definition: ShuttleGui.cpp:1229
ShuttleGuiBase::EndVerticalLay
void EndVerticalLay()
Definition: ShuttleGui.cpp:1203
ExportFFmpegAC3Options::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S)
Definition: ExportFFmpegDialogs.cpp:212
eIsSavingToPrefs
@ eIsSavingToPrefs
Definition: ShuttleGui.h:48
FileConfig::Flush
virtual bool Flush(bool bCurrentOnly=false) wxOVERRIDE
Definition: FileConfig.cpp:143
ExportFFmpegAC3Options::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition: ExportFFmpegDialogs.cpp:244
wxPanelWrapper::wxPanelWrapper
wxPanelWrapper()
Definition: wxPanelWrapper.h:44
anonymous_namespace{ExportFFmpegDialogs.cpp}::AC3BitRateValues
const std::vector< int > AC3BitRateValues
Definition: ExportFFmpegDialogs.cpp:170
anonymous_namespace{ExportFFmpegDialogs.cpp}::AC3BitRateNames
const TranslatableStrings AC3BitRateNames
Definition: ExportFFmpegDialogs.cpp:148
eIsCreatingFromPrefs
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:47
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:631