Add unbound audio API selection choice.
[dcpomatic.git] / src / wx / config_dialog.h
index e0d7f15b8447cc1c9f59f35f6ab5113882671a7d..c43d29ff7da25751125076dda1f1321856d520a7 100644 (file)
@@ -50,6 +50,8 @@ LIBDCP_ENABLE_WARNINGS
 
 class AudioMappingView;
 class CheckBox;
+class Choice;
+class FilmViewer;
 
 
 class Page : public wxPreferencesPage
@@ -189,8 +191,9 @@ private:
 class SoundPage : public Page
 {
 public:
-       SoundPage (wxSize panel_size, int border)
+       SoundPage(wxSize panel_size, int border, FilmViewer* viewer)
                : Page (panel_size, border)
+               , _viewer(viewer)
        {}
 
        wxString GetName() const override;
@@ -206,7 +209,8 @@ private:
 
        void setup () override;
        void config_changed () override;
-        boost::optional<std::string> get_sound_output ();
+        boost::optional<std::string> get_sound_api() const;
+        boost::optional<std::string> get_sound_output() const;
        void sound_changed ();
        void sound_output_changed ();
        void setup_sensitivity ();
@@ -214,10 +218,12 @@ private:
        void reset_to_default ();
 
        CheckBox* _sound;
+       Choice* _sound_api;
        wxChoice* _sound_output;
        wxStaticText* _sound_output_details;
        AudioMappingView* _map;
        Button* _reset_to_default;
+       FilmViewer* _viewer;
 };