summaryrefslogtreecommitdiff
path: root/src/wx/audio_backend.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:26:55 +0200
commite9f4e040fcad377debfcf6c849bb8f8778b08591 (patch)
treed96fd9fcc24cd434a8932ea339c998de25e01264 /src/wx/audio_backend.cc
parentb607a42e43df747007b6e0c3663ac39eaa0b4742 (diff)
Fix build.rtaudio6
Diffstat (limited to 'src/wx/audio_backend.cc')
-rw-r--r--src/wx/audio_backend.cc10
1 files changed, 7 insertions, 3 deletions
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 <boost/bind/bind.hpp>
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<string> 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;
}