Audacity 3.2.0
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 71 of file ExportFFmpegDialogs.h.

Constructor & Destructor Documentation

◆ ExportFFmpegAC3Options()

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

Definition at line 195 of file ExportFFmpegDialogs.cpp.

196: wxPanelWrapper(parent, wxID_ANY)
197{
200
202}
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:46
#define S(N)
Definition: ToChars.cpp:64
bool TransferDataToWindow() override
void PopulateOrExchange(ShuttleGui &S)
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:625

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

Here is the call graph for this function:

◆ ~ExportFFmpegAC3Options()

ExportFFmpegAC3Options::~ExportFFmpegAC3Options ( )
virtual

Definition at line 204 of file ExportFFmpegDialogs.cpp.

205{
207}
bool TransferDataFromWindow() override

References TransferDataFromWindow().

Here is the call graph for this function:

Member Function Documentation

◆ PopulateOrExchange()

void ExportFFmpegAC3Options::PopulateOrExchange ( ShuttleGui S)

Definition at line 211 of file ExportFFmpegDialogs.cpp.

212{
213 IntSetting Setting{ L"/FileFormats/AC3BitRate", 160000 };
214
215 S.StartVerticalLay();
216 {
217 S.StartHorizontalLay(wxCENTER);
218 {
219 S.StartMultiColumn(2, wxCENTER);
220 {
221 S.TieNumberAsChoice(
223 }
224 S.EndMultiColumn();
225 }
226 S.EndHorizontalLay();
227 }
228 S.EndVerticalLay();
229}
XXO("&Cut/Copy/Paste Toolbar")
Specialization of Setting for int.
Definition: Prefs.h:349
Definition: Prefs.h:173

References anonymous_namespace{ExportFFmpegDialogs.cpp}::AC3BitRateNames, anonymous_namespace{ExportFFmpegDialogs.cpp}::AC3BitRateValues, S, 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 240 of file ExportFFmpegDialogs.cpp.

241{
244
245 gPrefs->Flush();
246
247 return true;
248}
FileConfig * gPrefs
Definition: Prefs.cpp:70
@ eIsSavingToPrefs
Definition: ShuttleGui.h:47
virtual bool Flush(bool bCurrentOnly=false) wxOVERRIDE
Definition: FileConfig.cpp:143

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

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 233 of file ExportFFmpegDialogs.cpp.

234{
235 return true;
236}

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 84 of file ExportFFmpegDialogs.h.

Referenced by ExportFFmpeg::InitCodecs().

◆ mBitRateChoice

wxChoice* ExportFFmpegAC3Options::mBitRateChoice
private

Definition at line 88 of file ExportFFmpegDialogs.h.

◆ mBitRateFromChoice

int ExportFFmpegAC3Options::mBitRateFromChoice
private

Definition at line 89 of file ExportFFmpegDialogs.h.


The documentation for this class was generated from the following files: