Add the base for a debug log

This commit is contained in:
Robbert van der Helm
2020-03-06 15:31:31 +01:00
parent 46b08530ae
commit 1d2c3d4d75
6 changed files with 130 additions and 2 deletions
+2
View File
@@ -39,6 +39,8 @@
#include <boost/algorithm/string/predicate.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/local/stream_protocol.hpp>
#include <boost/process/environment.hpp>
#include <fstream>
#pragma pop_macro("WIN32")
#pragma pop_macro("_WIN32")
+1
View File
@@ -58,6 +58,7 @@ PluginBridge::PluginBridge(std::string plugin_dll_path,
host_vst_parameters(io_context),
host_vst_process_replacing(io_context),
vst_host_aeffect(io_context),
logger(Logger::create_from_environment("[WINE] ")),
process_buffer(std::make_unique<AudioBuffers::buffer_type>()) {
// Got to love these C APIs
if (plugin_handle == nullptr) {
+3
View File
@@ -27,6 +27,7 @@
#include <thread>
#include "../common/communication.h"
#include "../common/logging.h"
/**
* This handles the communication between the Linux native VST plugin and the
@@ -106,6 +107,8 @@ class PluginBridge {
*/
std::thread process_replacing_handler;
Logger logger;
/**
* A scratch buffer for sending and receiving data during `process` and
* `processReplacing` calls.