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 */
}
}
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;
-#ifdef DCPOMATIC_USE_RTERROR
- } catch (RtError&) {
-#else
} catch (RtAudioError&) {
-#endif
/* Probably no audio devices at all */
}
}
if (info.name == *configured_so && info.outputChannels > 0) {
channels = info.outputChannels;
}
-#ifdef DCPOMATIC_USE_RTERROR
- } catch (RtError&) {
-#else
} catch (RtAudioError&) {
-#endif
/* Never mind */
}
}
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;
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(),
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)