mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Remove now unused Editor reference
This commit is contained in:
@@ -271,9 +271,8 @@ intptr_t PluginBridge::dispatch_wrapper(AEffect* plugin,
|
|||||||
class HostCallbackDataConverter : DefaultDataConverter {
|
class HostCallbackDataConverter : DefaultDataConverter {
|
||||||
public:
|
public:
|
||||||
HostCallbackDataConverter(AEffect* plugin,
|
HostCallbackDataConverter(AEffect* plugin,
|
||||||
Editor& editor,
|
|
||||||
std::optional<VstTimeInfo>& time_info)
|
std::optional<VstTimeInfo>& time_info)
|
||||||
: plugin(plugin), editor(editor), time_info(time_info) {}
|
: plugin(plugin), time_info(time_info) {}
|
||||||
|
|
||||||
std::optional<EventPayload> read(const int opcode,
|
std::optional<EventPayload> read(const int opcode,
|
||||||
const int index,
|
const int index,
|
||||||
@@ -350,8 +349,6 @@ class HostCallbackDataConverter : DefaultDataConverter {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
AEffect* plugin;
|
AEffect* plugin;
|
||||||
// TODO: Clean up
|
|
||||||
Editor& editor;
|
|
||||||
std::optional<VstTimeInfo>& time_info;
|
std::optional<VstTimeInfo>& time_info;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -361,7 +358,7 @@ intptr_t PluginBridge::host_callback(AEffect* effect,
|
|||||||
intptr_t value,
|
intptr_t value,
|
||||||
void* data,
|
void* data,
|
||||||
float option) {
|
float option) {
|
||||||
HostCallbackDataConverter converter(effect, editor, time_info);
|
HostCallbackDataConverter converter(effect, time_info);
|
||||||
return send_event(vst_host_callback, host_callback_semaphore, converter,
|
return send_event(vst_host_callback, host_callback_semaphore, converter,
|
||||||
std::nullopt, opcode, index, value, data, option);
|
std::nullopt, opcode, index, value, data, option);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user