Basic and untested export option to bounce down to stereo; add encoder test with...
[dcpomatic.git] / src / wx / export_dialog.cc
index 52aa03c20028841d0d08f3936fc1b834f21ca80b..712ef4a7e9a96cf7b281574da48ccfdbb0f0b1a4 100644 (file)
@@ -48,6 +48,9 @@ ExportDialog::ExportDialog (wxWindow* parent)
        add (_("Format"), true);
        _format = new wxChoice (this, wxID_ANY);
        add (_format);
+       add_spacer ();
+       _mixdown = new wxCheckBox (this, wxID_ANY, _("Mix audio down to stereo"));
+       add (_mixdown, false);
        add (_("Output file"), true);
        _file = new FilePickerCtrl (this, _("Select output file"), format_filters[0], false);
        add (_file);
@@ -82,3 +85,9 @@ ExportDialog::format () const
        DCPOMATIC_ASSERT (_format->GetSelection() >= 0 && _format->GetSelection() < FORMATS);
        return formats[_format->GetSelection()];
 }
+
+bool
+ExportDialog::mixdown_to_stereo () const
+{
+       return _mixdown->GetValue ();
+}