#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;
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);
}
{
#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;
}
return;
}
- auto& audio = AudioBackend::instance()->rtaudio();
+ auto backend = AudioBackend::instance();
+ auto& audio = backend->rtaudio();
if (audio.isStreamOpen()) {
audio.closeStream();
_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