From e9f4e040fcad377debfcf6c849bb8f8778b08591 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 26 Jul 2024 12:15:12 +0200 Subject: Fix build. --- src/wx/audio_backend.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/wx/audio_backend.cc') diff --git a/src/wx/audio_backend.cc b/src/wx/audio_backend.cc index 9c8b1c386..68bc06004 100644 --- a/src/wx/audio_backend.cc +++ b/src/wx/audio_backend.cc @@ -20,11 +20,15 @@ #include "audio_backend.h" +#include using std::string; using std::vector; using boost::optional; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif AudioBackend* AudioBackend::_instance = nullptr; @@ -86,8 +90,8 @@ AudioBackend::output_device_names() vector names; #if (RTAUDIO_VERSION_MAJOR >= 6) - for (auto device_id: audio.getDeviceIds()) { - auto dev = audio.getDeviceInfo(device_id); + for (auto device_id: _rtaudio.getDeviceIds()) { + auto dev = _rtaudio.getDeviceInfo(device_id); if (dev.outputChannels > 0) { names.push_back(dev.name); } @@ -130,7 +134,7 @@ AudioBackend::device_output_channels(string name) { #if (RTAUDIO_VERSION_MAJOR >= 6) for (auto device_id: _rtaudio.getDeviceIds()) { - auto info = audio.getDeviceInfo(device_id); + auto info = _rtaudio.getDeviceInfo(device_id); if (info.name == name) { return info.outputChannels; } -- cgit v1.2.3