mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-10 22:32:10 +02:00
Add the base for a debug log
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user