X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwx%2Ffilm_viewer.cc;h=4ea2a8b006b4a1fee6cac30e4c04fda735d00d52;hb=6693132ed6fb863fdff496f42028d25f55eb8bc4;hp=8805d1311c0ad9da1b0fd39dee168b4dad8e3369;hpb=3339d3bce70afe9ae2ca10e9fcfc4b54b748fbf4;p=dcpomatic.git diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 8805d1311..4ea2a8b00 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -350,7 +350,15 @@ FilmViewer::start () */ if (_audio.isStreamOpen()) { _audio.setStreamTime (_video_view->position().seconds()); - _audio.startStream (); + try { + _audio.startStream (); + } catch (RtAudioError& e) { + _audio_channels = 0; + error_dialog ( + _video_view->get(), + _("There was a problem starting audio playback. Please try another audio output device in Preferences."), std_to_wx(e.what()) + ); + } } _playing = true;