Remove references to / support for old RtError class (now RtAudioError).
authorCarl Hetherington <cth@carlh.net>
Sun, 8 Nov 2020 21:13:34 +0000 (22:13 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 8 Nov 2020 21:13:34 +0000 (22:13 +0100)
src/wx/config_dialog.cc
src/wx/film_viewer.cc
src/wx/wscript

index 40bb4340761c432fb6a13cb61a5ff00845852e25..957fd32dbd8e4754f6bc8eb32a9cac1b932e0573 100644 (file)
@@ -886,11 +886,7 @@ SoundPage::setup ()
                        if (dev.probed && dev.outputChannels > 0) {
                                _sound_output->Append (std_to_wx (dev.name));
                        }
-#ifdef DCPOMATIC_USE_RTERROR
-               } catch (RtError&) {
-#else
                } catch (RtAudioError&) {
-#endif
                        /* Something went wrong so let's just ignore that device */
                }
        }
@@ -927,11 +923,7 @@ SoundPage::sound_output_changed ()
        string default_device;
        try {
                default_device = audio.getDeviceInfo(audio.getDefaultOutputDevice()).name;
-#ifdef DCPOMATIC_USE_RTERROR
-       } catch (RtError&) {
-#else
        } catch (RtAudioError&) {
-#endif
                /* Never mind */
        }
        if (!so || *so == default_device) {
@@ -958,11 +950,7 @@ SoundPage::config_changed ()
                RtAudio audio (DCPOMATIC_RTAUDIO_API);
                try {
                        configured_so = audio.getDeviceInfo(audio.getDefaultOutputDevice()).name;
-#ifdef DCPOMATIC_USE_RTERROR
-               } catch (RtError&) {
-#else
                } catch (RtAudioError&) {
-#endif
                        /* Probably no audio devices at all */
                }
        }
@@ -1000,11 +988,7 @@ SoundPage::config_changed ()
                                if (info.name == *configured_so && info.outputChannels > 0) {
                                        channels = info.outputChannels;
                                }
-#ifdef DCPOMATIC_USE_RTERROR
-                       } catch (RtError&) {
-#else
                        } catch (RtAudioError&) {
-#endif
                                /* Never mind */
                        }
                }
index 997fe88c8b8c4dba04c7885a79ce54e4261a65ac..20cbb434c009471e5c182c4c150841f86fc7af0d 100644 (file)
@@ -534,11 +534,7 @@ FilmViewer::config_changed (Config::Property p)
                                        if (_audio.getDeviceInfo(st).name == Config::instance()->sound_output().get()) {
                                                break;
                                        }
-#ifdef DCPOMATIC_USE_RTERROR
-                               } catch (RtError&) {
-#else
                                } catch (RtAudioError&) {
-#endif
                                        /* Something went wrong with that device so we don't want to use it anyway */
                                }
                                ++st;
@@ -557,11 +553,7 @@ FilmViewer::config_changed (Config::Property p)
                        sp.nChannels = _audio_channels;
                        sp.firstChannel = 0;
                        _audio.openStream (&sp, 0, RTAUDIO_FLOAT32, 48000, &_audio_block_size, &rtaudio_callback, this);
-#ifdef DCPOMATIC_USE_RTERROR
-               } catch (RtError& e) {
-#else
                } catch (RtAudioError& e) {
-#endif
                        _audio_channels = 0;
                        error_dialog (
                                _video_view->get(),
index d72c209401ec756c64ce52787535d4768402a057..3f0ca2b979e1a32eacefa0df7d34bcff6c8bfd9b 100644 (file)
@@ -263,16 +263,6 @@ def configure(conf):
         conf.env.LIB_RTAUDIO.append('mfuuid')
         conf.env.LIB_RTAUDIO.append('wmcodecdspuuid')
 
-    conf.check_cxx(fragment="""
-                            #include <RtAudio.h>\n
-                            int main() { throw RtError("Hello"); }
-                           """,
-                   msg='Checking for RtError class',
-                   use='RTAUDIO',
-                   uselib_store='',
-                   define_name='DCPOMATIC_USE_RTERROR',
-                   mandatory=False)
-
     if conf.env.TARGET_WINDOWS or conf.env.TARGET_LINUX:
         conf.check_cfg(package='gl', args='--cflags --libs', uselib_store='GL', mandatory=True)
         conf.check_cfg(package='glu', args='--cflags --libs', uselib_store='GLU', mandatory=True)