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) {
RtAudio audio (DCPOMATIC_RTAUDIO_API);
try {
configured_so = audio.getDeviceInfo(audio.getDefaultOutputDevice()).name;
- } catch (RtAudioError& e) {
+#ifdef DCPOMATIC_USE_RTERROR
+ } catch (RtError&) {
+#else
+ } catch (RtAudioError&) {
+#endif
/* Probably no audio devices at all */
}
}
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;