mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-07 15:05:38 +01:00
This should fix bug #1111
In addition it adds an option to open the full FFmpeg options dialog.
This commit is contained in:
@@ -86,8 +86,11 @@ class ExportMP2Options : public wxPanel
|
||||
{
|
||||
public:
|
||||
ExportMP2Options(wxWindow *parent, int format);
|
||||
virtual ~ExportMP2Options();
|
||||
|
||||
void PopulateOrExchange(ShuttleGui & S);
|
||||
bool TransferDataToWindow();
|
||||
bool TransferDataFromWindow();
|
||||
|
||||
private:
|
||||
wxArrayString mBitRateNames;
|
||||
@@ -107,6 +110,15 @@ ExportMP2Options::ExportMP2Options(wxWindow *parent, int WXUNUSED(format))
|
||||
|
||||
ShuttleGui S(this, eIsCreatingFromPrefs);
|
||||
PopulateOrExchange(S);
|
||||
|
||||
TransferDataToWindow();
|
||||
}
|
||||
|
||||
///
|
||||
///
|
||||
ExportMP2Options::~ExportMP2Options()
|
||||
{
|
||||
TransferDataFromWindow();
|
||||
}
|
||||
|
||||
///
|
||||
@@ -129,6 +141,25 @@ void ExportMP2Options::PopulateOrExchange(ShuttleGui & S)
|
||||
S.EndVerticalLay();
|
||||
}
|
||||
|
||||
///
|
||||
///
|
||||
bool ExportMP2Options::TransferDataToWindow()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
///
|
||||
///
|
||||
bool ExportMP2Options::TransferDataFromWindow()
|
||||
{
|
||||
ShuttleGui S(this, eIsSavingToPrefs);
|
||||
PopulateOrExchange(S);
|
||||
|
||||
gPrefs->Flush();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// ExportMP2
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user