mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 20:40:03 +02:00
Split VST2 specific functionality into Vst2Logger
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
#include <bitsery/adapter/buffer.h>
|
||||
#include <bitsery/bitsery.h>
|
||||
#include <bitsery/traits/vector.h>
|
||||
|
||||
#ifdef __WINE__
|
||||
#include "../wine-host/boost-fix.h"
|
||||
|
||||
@@ -18,7 +18,8 @@
|
||||
|
||||
#include <atomic>
|
||||
|
||||
#include "../logging/common.h"
|
||||
#include "../logging/vst2.h"
|
||||
#include "../serialization/vst2.h"
|
||||
#include "common.h"
|
||||
|
||||
/**
|
||||
@@ -151,7 +152,7 @@ class EventHandler : public AdHocSocketHandler<Thread> {
|
||||
*/
|
||||
template <typename D>
|
||||
intptr_t send_event(D& data_converter,
|
||||
std::optional<std::pair<Logger&, bool>> logging,
|
||||
std::optional<std::pair<Vst2Logger&, bool>> logging,
|
||||
int opcode,
|
||||
int index,
|
||||
intptr_t value,
|
||||
@@ -226,7 +227,7 @@ class EventHandler : public AdHocSocketHandler<Thread> {
|
||||
* @relates passthrough_event
|
||||
*/
|
||||
template <typename F>
|
||||
void receive_events(std::optional<std::pair<Logger&, bool>> logging,
|
||||
void receive_events(std::optional<std::pair<Vst2Logger&, bool>> logging,
|
||||
F callback) {
|
||||
// Reading, processing, and writing back event data from the sockets
|
||||
// works in the same way regardless of which socket we're using
|
||||
|
||||
Reference in New Issue
Block a user