Audacity 3.2.0
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
ExportFFmpegWMAOptions Class Referencefinal

Options dialog for FFmpeg exporting of WMA format. More...

#include <ExportFFmpegDialogs.h>

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

Public Member Functions

 ExportFFmpegWMAOptions (wxWindow *parent, int format)
 
 ~ExportFFmpegWMAOptions ()
 
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 iWMASampleRates []
 

Private Attributes

wxChoice * mBitRateChoice
 
int mBitRateFromChoice
 

Detailed Description

Options dialog for FFmpeg exporting of WMA format.

Definition at line 155 of file ExportFFmpegDialogs.h.

Constructor & Destructor Documentation

◆ ExportFFmpegWMAOptions()

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

Definition at line 702 of file ExportFFmpegDialogs.cpp.

703: wxPanelWrapper(parent, wxID_ANY)
704{
707
709}
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:46
#define S(N)
Definition: ToChars.cpp:64
void PopulateOrExchange(ShuttleGui &S)
bool TransferDataToWindow() override
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:

◆ ~ExportFFmpegWMAOptions()

ExportFFmpegWMAOptions::~ExportFFmpegWMAOptions ( )

Definition at line 711 of file ExportFFmpegDialogs.cpp.

712{
714}
bool TransferDataFromWindow() override

References TransferDataFromWindow().

Here is the call graph for this function:

Member Function Documentation

◆ PopulateOrExchange()

void ExportFFmpegWMAOptions::PopulateOrExchange ( ShuttleGui S)

Definition at line 718 of file ExportFFmpegDialogs.cpp.

719{
720 IntSetting Setting{ L"/FileFormats/WMABitRate", 128000 };
721 S.StartVerticalLay();
722 {
723 S.StartHorizontalLay(wxCENTER);
724 {
725 S.StartMultiColumn(2, wxCENTER);
726 {
727 S.TieNumberAsChoice(XXO("Bit Rate:"),
729 }
730 S.EndMultiColumn();
731 }
732 S.EndHorizontalLay();
733 }
734 S.EndVerticalLay();
735}
XXO("&Cut/Copy/Paste Toolbar")
Specialization of Setting for int.
Definition: Prefs.h:349
Definition: Prefs.h:173
const TranslatableStrings WMABitRateNames
Bit Rates supported by WMA encoder. Setting bit rate to other values will not result in different fil...

References S, anonymous_namespace{ExportFFmpegDialogs.cpp}::WMABitRateNames, anonymous_namespace{ExportFFmpegDialogs.cpp}::WMABitRateValues, and XXO().

Referenced by ExportFFmpegWMAOptions(), and TransferDataFromWindow().

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

◆ TransferDataFromWindow()

bool ExportFFmpegWMAOptions::TransferDataFromWindow ( )
override

Definition at line 746 of file ExportFFmpegDialogs.cpp.

747{
750
751 gPrefs->Flush();
752
753 return true;
754}
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 ~ExportFFmpegWMAOptions().

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

◆ TransferDataToWindow()

bool ExportFFmpegWMAOptions::TransferDataToWindow ( )
override

Definition at line 739 of file ExportFFmpegDialogs.cpp.

740{
741 return true;
742}

Referenced by ExportFFmpegWMAOptions().

Here is the caller graph for this function:

Member Data Documentation

◆ iWMASampleRates

const int ExportFFmpegWMAOptions::iWMASampleRates
static
Initial value:
=
{ 8000, 11025, 16000, 22050, 44100, 0}

Definition at line 166 of file ExportFFmpegDialogs.h.

Referenced by ExportFFmpeg::InitCodecs().

◆ mBitRateChoice

wxChoice* ExportFFmpegWMAOptions::mBitRateChoice
private

Definition at line 170 of file ExportFFmpegDialogs.h.

◆ mBitRateFromChoice

int ExportFFmpegWMAOptions::mBitRateFromChoice
private

Definition at line 171 of file ExportFFmpegDialogs.h.


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