X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fwx_util.h;h=e36a35e1e336e4c83ca0bee8354d1bc5b8b026d6;hb=f1dbcec7552052856369631e77c5eb160badd619;hp=54552e3cbc407d69b62893e1e6886bf4baa071b6;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/wx/wx_util.h b/src/wx/wx_util.h index 54552e3cb..e36a35e1e 100644 --- a/src/wx/wx_util.h +++ b/src/wx/wx_util.h @@ -39,6 +39,7 @@ class FilePickerCtrl; class wxSpinCtrl; class wxSpinCtrlDouble; class wxGridBagSizer; +class wxSplashScreen; #define DCPOMATIC_SIZER_X_GAP 8 #define DCPOMATIC_SIZER_Y_GAP 8 @@ -52,13 +53,23 @@ class wxGridBagSizer; #define DCPOMATIC_BUTTON_STACK_GAP 0 #endif +#ifdef DCPOMATIC_LINUX +#define DCPOMATIC_RTAUDIO_API RtAudio::LINUX_PULSE +#endif +#ifdef DCPOMATIC_WINDOWS +#define DCPOMATIC_RTAUDIO_API RtAudio::WINDOWS_DS +#endif +#ifdef DCPOMATIC_OSX +#define DCPOMATIC_RTAUDIO_API RtAudio::MACOSX_CORE +#endif + /** i18n macro to support strings like Context|String * so that `String' can be translated to different things * in different contexts. */ #define S_(x) context_translation(x) -extern void error_dialog (wxWindow *, wxString); +extern void error_dialog (wxWindow *, wxString, boost::optional e = boost::optional()); extern void message_dialog (wxWindow *, wxString); extern bool confirm_dialog (wxWindow *, wxString); extern wxStaticText* add_label_to_sizer (wxSizer *, wxWindow *, wxString, bool left, int prop = 0); @@ -69,6 +80,9 @@ extern void dcpomatic_setup_i18n (); extern wxString context_translation (wxString); extern std::string string_client_data (wxClientData* o); extern wxString time_to_timecode (DCPTime t, double fps); +extern void setup_audio_channels_choice (wxChoice* choice, int minimum); +extern wxSplashScreen* maybe_show_splash (); +extern boost::filesystem::path path_from_file_dialog (wxFileDialog* dialog, std::string extension); extern void checked_set (FilePickerCtrl* widget, boost::filesystem::path value); extern void checked_set (wxSpinCtrl* widget, int value);