sp.firstChannel = 0;
try {
_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
error_dialog (
_panel,
_("Could not set up audio output. There will be no audio during the preview."), std_to_wx(e.what())
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)
-
-
def build(bld):
if bld.env.STATIC_DCPOMATIC: