summaryrefslogtreecommitdiff
path: root/src/wx/film_viewer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-07-26 12:15:12 +0200
committerCarl Hetherington <cth@carlh.net>2024-07-27 08:28:02 +0200
commit839c9712b0d86e13051acad0b273df24172dc430 (patch)
tree6339e83adeddac520bfd3a5edd2839e7ec5e4174 /src/wx/film_viewer.cc
parent98b7a493933a5a47c6e1abb21ef2710ad2730a0e (diff)
Fix build with RtAudio 6.
Diffstat (limited to 'src/wx/film_viewer.cc')
-rw-r--r--src/wx/film_viewer.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index 1876aac74..7a3d58734 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -602,7 +602,8 @@ FilmViewer::config_changed (Config::Property p)
return;
}
- auto& audio = AudioBackend::instance()->rtaudio();
+ auto backend = AudioBackend::instance();
+ auto& audio = backend->rtaudio();
if (audio.isStreamOpen()) {
audio.closeStream();
@@ -632,7 +633,7 @@ FilmViewer::config_changed (Config::Property p)
_audio_channels = 0;
error_dialog(
_video_view->get(),
- _("Could not set up audio output. There will be no audio during the preview."), std_to_wx(audio.last_rtaudio_error())
+ _("Could not set up audio output. There will be no audio during the preview."), std_to_wx(backend->last_rtaudio_error())
);
}
#else